{"id":2450,"date":"2009-03-04T16:20:21","date_gmt":"2009-03-04T13:20:21","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=2450"},"modified":"2009-03-04T16:20:21","modified_gmt":"2009-03-04T13:20:21","slug":"%d0%bf%d0%b5%d1%80%d0%b5%d0%b4%d0%b0%d1%87%d0%b0-%d1%81%d1%82%d1%80%d1%83%d0%ba%d1%82%d1%83%d1%80%d1%8b-%d0%b2-%d1%84%d1%83%d0%bd%d0%ba%d1%86%d0%b8%d1%8e","status":"publish","type":"post","link":"https:\/\/studentpmr.ru\/?p=2450","title":{"rendered":"\u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e"},"content":{"rendered":"<p>\u0421\u0430\u043c\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<br \/>\n1. \u041c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430. \u0422\u043e\u0433\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430.<br \/>\nstruct funds{<br \/>\nchar* bank;<br \/>\nfloat fonds;<br \/>\nchar* name;<br \/>\nfloat savef;<!--more--><br \/>\n}stan={&#171;\u041f\u0420\u0411&#187;, 1023.87, \u00ab\u0418\u0432\u0430\u043d\u043e\u0432 \u0418.\u0418.\u00bb, 123,45};<br \/>\nfloat sum (float, float);<br \/>\nvoid main(void){<br \/>\nprintf (&#171;\u0423 \u0418\u0432\u0430\u043d\u043e\u0432\u0430 \u0418.\u0418.\u0432\u0441\u0435\u0433\u043e %.2f \u0440\u0443\u0431\u043b.\\n&#187;,<br \/>\nsum(stan.fonds,stan.savef));<br \/>\n}<br \/>\nfloat sum(float x, float y){<br \/>\nreturn(x+y);<br \/>\n}<br \/>\n\u0424\u0443\u043d\u043a\u0446\u0438\u044f sum() \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u0435\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u043e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u0442\u0438\u043f float. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0430 \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.<br \/>\nmodify(&amp;stan.savef);<br \/>\n2. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0447\u0442\u043e \u043e\u043d\u0430 \u0438\u043c\u0435\u0435\u0442 \u0434\u0435\u043b\u043e \u0441\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e<br \/>\n\u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.<br \/>\nstruct funds {&#8230;} stan={&#8230;};<br \/>\nvoid main(void){<br \/>\nfloat sum (struct funds*);<br \/>\nprintf (&#171;\u0423 \u0418\u0432\u0430\u043d\u043e\u0432\u0430 \u0418.\u0418. %.2f \u0440\u0443\u0431\u043b\u0435\u0439\\n&#187;, sum(&amp;stan));<br \/>\n}<br \/>\nfloat sum (stuct funds* money){<br \/>\nreturn(money-&gt;fonds+money-&gt;savef);<br \/>\n}<br \/>\n\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c money \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 funds. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438\u043c\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0435\u0451 \u0430\u0434\u0440\u0435\u0441\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0430\u0434\u0440\u0435\u0441 &amp;stan.<br \/>\n3. \u0418\u043c\u0435\u0435\u0442\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u043c\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u043e\u043c.<br \/>\nstruct funds {&#8230;}stans[2]={{&#8230;},{&#8230;}};<br \/>\nvoid main(void){<br \/>\nfloat sum (struct funds*);<br \/>\nprintf (&#171;\u0412\u0441\u0435\u0433\u043e \u043a\u0430\u043f\u0438\u0442\u0430\u043b\u0430 %.2f \u0440\u0443\u0431\u043b\u0435\u0439\\n&#187;, sum(stans));<br \/>\n}<br \/>\nfloat sum(struct funds* money){<br \/>\nfloat summ;<br \/>\nint i;<br \/>\nfor (i=0, summ=0;i&lt;2; i++, money++)<br \/>\nsumm+=money-&gt;fonds+money-&gt;savef;<br \/>\nreturn (summ);<br \/>\n}<br \/>\nmoney=&amp;stan[0];  \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f money++, \u0441\u0441\u044b\u043b\u0430\u0435\u043c\u0441\u044f \u043d\u0430 stan[1].<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 1. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u043e\u043c\u0435\u0440 \u0434\u043d\u044f \u0432 \u0433\u043e\u0434\u0443.<br \/>\nstruct date { int day; int month;<br \/>\nint year; int yearday;}d={25,3,1999};<br \/>\nint date_tab[2][13]={{ 0,31,28,31,30,31,30,31,31,30,31,30,31},<br \/>\n{ 0,31,29,31,30,31,30,31,31,30,31,30,31}};<br \/>\nint day_of_year(struct date *pd) {<br \/>\nint i, day, l=0;<br \/>\nday = pd-&gt;day;<br \/>\nif(pd-&gt;year%4==0&amp;&amp;pd-&gt;year%100!=0||pd-&gt;year%400==0) \/\/\u0433\u043e\u0434 \u0432\u044b\u0441\u043e\u043a.<br \/>\nl=1;<br \/>\nfor(i=0; i&lt; pd-&gt;month; i++)<br \/>\nday+=date_tab[l][i];<br \/>\nreturn(day);<br \/>\n}<\/p>\n<p>void main(void) {<br \/>\nd.yearday=day_of_year(&amp;d); &#8212; \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<br \/>\nprintf(\u00ab%d\u00bb, d.yearday);<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0430\u043c\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. 1. \u041c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430. \u0422\u043e\u0433\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430. struct funds{ char* bank; float fonds; char* name; float savef;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"_links":{"self":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/2450"}],"collection":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2450"}],"version-history":[{"count":1,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/2450\/revisions"}],"predecessor-version":[{"id":2451,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/2450\/revisions\/2451"}],"wp:attachment":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}