{"id":124,"date":"2012-02-27T12:20:24","date_gmt":"2012-02-27T11:20:24","guid":{"rendered":"http:\/\/csipet.web.elte.hu\/?p=124"},"modified":"2012-02-27T12:20:24","modified_gmt":"2012-02-27T11:20:24","slug":"2-ora","status":"publish","type":"post","link":"https:\/\/peter.csonka.hu\/hu\/blog\/2012\/02\/2-ora\/","title":{"rendered":"2. \u00f3ra"},"content":{"rendered":"<p>\u00c1tt\u00e9rt\u00fcnk a C-re.<br \/>\nA jegyzet: <a href=\"https:\/\/docs.google.com\/document\/d\/1vAZ-p2yapQcnIQUr_0WKtGQxz0lb7pI6yB6-Z2qkT4c\/edit\">https:\/\/docs.google.com\/document\/d\/1vAZ-p2yapQcnIQUr_0WKtGQxz0lb7pI6yB6-Z2qkT4c\/edit<\/a><\/p>\n<pre lang=\"c\" line=\"1\">#include &lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\n#include &lt;string.h&gt;\nint main(int AGC, char * ARGV[]){\nchar s1[20]; char s[200]; int egy;\nstrcpy(s,\" \");\ndo{\nprintf(\"Kerem a szovegeket: \");\nscanf(\"%s\", &amp;s1);\negy=strcmp(s1, \"vege\");\nif(egy!=0){\nstrcat(s,s1);\n}\n} while (egy!=0);\nprintf(\"Az osszemasolt szoveg: %sn\", s);\nreturn 0;\n}<\/pre>\n<pre lang=\"c\">#include &lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\n#include &lt;string.h&gt;\nint main(int AGC, char * ARGV[]){\nchar s1[20]; char s[200]; int egy; char ch[2]; int db=0;\nstrcpy(s,\" \");\nprintf(\"Kerem a vizsgalando szoveget: \");\ngets(ch);\ndo{\nprintf(\"Kerem a szovegeket: \");\nscanf(\"%s\", &amp;s1);\negy=strcmp(s1, \"vege\");\nif(egy!=0){\nstrcat(s,s1);\n}\nif(s1[0]==ch[0]){\ndb=db+1;\n}\n} while (egy!=0);\n\/\/\u00a0\u00a0\u00a0 printf(\"Az osszemasolt szoveg: %sn\", s);\nprintf(\"A keresett elemek szama: %dn\", db);\nreturn 0;\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u00c1tt\u00e9rt\u00fcnk a C-re. A jegyzet: https:\/\/docs.google.com\/document\/d\/1vAZ-p2yapQcnIQUr_0WKtGQxz0lb7pI6yB6-Z2qkT4c\/edit #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;string.h&gt; int main(int AGC, char * ARGV[]){ char s1[20]; char s[200]; int egy; strcpy(s,&#8221; &#8222;); do{ printf(&#8222;Kerem a szovegeket: &#8222;); scanf(&#8222;%s&#8221;, &amp;s1); egy=strcmp(s1, &#8222;vege&#8221;); if(egy!=0){ strcat(s,s1); } } while (egy!=0); printf(&#8222;Az osszemasolt szoveg: %sn&#8221;, s); return 0; } #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;string.h&gt; int main(int AGC, char * ARGV[]){ char s1[20]; char s[200]; int egy; char ch[2]; int db=0; strcpy(s,&#8221; &#8222;); printf(&#8222;Kerem a vizsgalando szoveget: &#8222;); gets(ch); do{ printf(&#8222;Kerem a szovegeket: &#8222;); scanf(&#8222;%s&#8221;, &amp;s1); egy=strcmp(s1, &#8222;vege&#8221;); if(egy!=0){ strcat(s,s1); } if(s1[0]==ch[0]){ db=db+1; } } while (egy!=0); \/\/\u00a0\u00a0\u00a0 printf(&#8222;Az osszemasolt&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-124","post","type-post","status-publish","format-standard","hentry","category-szamitogepes-alapismeretek-2"],"_links":{"self":[{"href":"https:\/\/peter.csonka.hu\/hu\/wp-json\/wp\/v2\/posts\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peter.csonka.hu\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peter.csonka.hu\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peter.csonka.hu\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peter.csonka.hu\/hu\/wp-json\/wp\/v2\/comments?post=124"}],"version-history":[{"count":0,"href":"https:\/\/peter.csonka.hu\/hu\/wp-json\/wp\/v2\/posts\/124\/revisions"}],"wp:attachment":[{"href":"https:\/\/peter.csonka.hu\/hu\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peter.csonka.hu\/hu\/wp-json\/wp\/v2\/categories?post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peter.csonka.hu\/hu\/wp-json\/wp\/v2\/tags?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}