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;
}

Мне понравился. А вам?

Date: 2008-10-12 12:33 pm (UTC)
From: [identity profile] ilmarannen.livejournal.com
Хе-хе-хе, забавно :)

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. 5th, 2026 08:42 pm
Powered by Dreamwidth Studios