The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
asf
Posted by: asd | May 2, 2011 @ 1:49pm
C++ Code
[
Download
]
// B // 8. // Podle p�ede�l�ho sedm�ho p��kladu napi�te tu ��st zdrojov�ho k�du nez�visl� knihovny albums.cpp s celou funkc� na smaz�n� star�ho/nenab�zen�ho alba. // ------------------------------------- // ------------------------------------- // ------------------------------------- int smaz_album(int index){ if( ALBUM[index]!=nullptr ) free(ALBUM[index]); } // A // 3. // V �et�zci char num[10] je ulo�en aritmetick� v�raz sest�vaj�c� ze dvou celo��sel // 4. // Vytvo�te funkcib int num_digits(char *text), kter� vr�t� po�et ��slic/cifer obsa�en�ch v �et�zci text. Funkci num_digits volejte v halvn� ��sti programu a v�sledek zobrazte v konzolov�m okn�. 3b. unsigned int num_digits(char *text){ int i=0; unsigned int cifer=0; char nula = '0'; char devet = '9'; while(text[i++]!=NULL) if(nula < text[i] && text[i] < devet ) cifer++; return cifer; } //main char text[40]="9ASD9AF0097SA"; printf("v %s je %u ciferq\n", text, num_digits(text)); // -------------------------------------
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.58 / 8
36 Votes
http://codebin.yi.org/1245
page generated in 0.01 seconds