Rosetta Code/Count examples: Difference between revisions

→‎{{header|Ada}}: Fixed compilation/run issues.
m (→‎{{header|Wren}}: Minor changes (though see Talk Page re encoding of '+'))
(→‎{{header|Ada}}: Fixed compilation/run issues.)
Line 47:
Page : Aws.Response.Data;
Uri_Xml : constant String :=
"httphttps://rosettacode.org/mww/api.php?action=query&list=categorymembers"
&
"&format=xml&cmlimit=500&cmtitle=Category:";
begin
Page := Client.Get (Uri_Xml & Category, Follow_Redirection => True);
if AWS.Response.Status_Code (Page) not in Messages.Success then
raise Client.Connection_Error;
end if;
Line 85:
Page :=
Client.Get
("httphttps://rosettacode.org/mww/index.php?title=" &
Aws.Url.Encode (Title) &
"&action=raw");,
Follow_Redirection => True);
AWS.Response.Message_Body (Page, File);
while not End_Of_File (File) loop
Resources.Get_Line (File, Buffer, Last);
Line 122 ⟶ 123:
Output :
<pre>
100 doors : 107370 exemples.
Zig-zag100 matrixprisoners : 4990 exemples.
15 puzzle game : 90 exemples.
24 game : 30 exemples.
....
</pre>
Yahoo! search interface : 10 exemples.
Zig-zag matrix : 49 exemples.
Total : 17238 exemples.</pre>
 
=={{header|AutoHotkey}}==
6

edits