luar_soll: (Компьютерный кот)
[personal profile] luar_soll
был найден такой пример:

#include < stdio.h >
#include < string.h >

int main ()
{
char str[][5] = { "R2D2" , "C3PO" , "R2A6" };
int n;
puts ("Looking for R2 astromech droids...");
for (n=0 ; n<3 ; n++)
if (strncmp (str[n],"R2xx",2) == 0)
{
printf ("found %s\n",str[n]);
}
return 0;
}

Мне понравился. А вам?
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

November 2017

S M T W T F S
   1234
567 891011
12131415161718
19202122232425
2627282930  

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 6th, 2026 06:02 am
Powered by Dreamwidth Studios