»ªÄÏÅ©Òµ´óѧCÓïÑÔ³ÌÐòÉè¼ÆʵÑéÖ¸µ¼Êé²Î¿¼´ð°¸ ÏÂÔر¾ÎÄ

gets(a); gets(b);

for(i=0;a[i]!='\\0';i++)

{ for(j=0;b[j]!='\\0';j++) if(a[i+j]!=b[j]) break; if(b[j]=='\\0') break; }

if (a[i]!='\\0') printf(\else printf(\}

ʵÑé9 º¯ÊýµÄ»ù±¾Ó¦ÓÃ

Ò»¡¢ÊµÑéÄ¿µÄ

1£©ÕÆÎÕ¶¨Ò庯ÊýµÄ·½·¨¡£

2£©ÕÆÎÕº¯Êýʵ²ÎÓë ²ÎµÄ¶ÔÓ¦¹Øϵ£¬ÒÔ¼°¡°Öµ´«µÝ¡±µÄ·½Ê½¡£ 3£©ÕÆÎÕº¯ÊýµÄǶÌ×µ÷Óú͵ݹéµ÷Óõķ½·¨¡£

4 £©ÕÆÎÕÈ«¾Ö±äÁ¿ºÍ¾Ö²¿±äÁ¿¡¢¶¯Ì¬±äÁ¿¡¢¾²Ì¬±äÁ¿µÄ¸ÅÄîºÍʹÓ÷½·¨¡£

¶þ¡¢ÊµÑéÄÚÈÝ

[ÌâÄ¿1059£ºº¯Êý¶¨Òå]

ÏÂÃæÊÇʹÓÃշתÏà³ý·¨£¬Çó×î´ó¹«Ô¼ÊýµÄ³ÌÐò£¬Çë²¹³äÍêÕû³ÌÐòÖк¯ÊýµÄ¶¨ÒåÓëµ÷Óá£

#include \

int f(int m, int n) {

int r;

while ((r=m%n)!=0) { m=n; n=r; }

return n; }

main() {

int a, b, n;

scanf(\printf(\ f(a, b) );

}

[ÌâÄ¿1083£º±àдº¯Êý¼ÆËã½×³Ë]

ÏÂÃæ³ÌÐòʵÏÖÓɼüÅ̶ÁÈëÕûÊýn£¬¼ÆËã²¢Êä³ön £¡£¬Çë²¹³äÍêÕû¼ÆËã½×³ËµÄº¯Êý¡£

long fanc(int a) { long i,n=1;

for(i=1;i<=a;i++) n=n*i; return n; }

void main() { int n;

scanf(\

printf(\}

[ÌâÄ¿1124£ºº¯ÊýÖеıäÁ¿] д³öÏÂÃæ³ÌÐòµÄÔËÐнá¹û£º int f1(int x)

{ static int z=3,y=0; y++; z++;

return(x+y+z); }

main()

{ int a=1,k;

for(k=0;k<3;k++) printf(\}

³ÌÐòÔËÐнá¹ûΪ£º 6 8 10

£ª[ÌâÄ¿1084£º±àдµÝ¹éµ÷Óú¯Êý£¬ÊµÏÖÊ®½øÖÆÊýת¶þ½øÖÆÊý]

ÏÂÃæ³ÌÐò£¬ÊµÏÖÓɼüÅÌÊäÈëÒ»¸öÕýÕûÊý(²»´óÓÚ100000000)£¬Êä³öÆä¶ÔÓ¦µÄ¶þ½øÖÆÊý Ô­Âë±íʾ£©¡£

ÇëÌî¿Õ£º

#include \void fun( int i ) { if (i>1) fun(i/2) ;

printf(\}

main() { int n;

scanf(\fun(n) ; }

ʵÑé10 Ö¸ÕëÓë½á¹¹Ìå

Ò»¡¢ÊµÑéÄ¿µÄ

1£©Í¨¹ýʵÑé½øÒ»²½ÕÆÎÕÖ¸ÕëµÄ¸ÅÄ»á¶¨ÒåºÍʹÓÃÖ¸Õë±äÁ¿¡£ 2£©ÄÜÕýȷʹÓÃÊý×éµÄÖ¸ÕëºÍÖ¸ÏòÊý×éµÄÖ¸Õë±äÁ¿¡£ 3£©ÄÜÕýȷʹÓÃ×Ö·û´®µÄÖ¸ÕëºÍÖ¸Ïò×Ö·ûÖеÄÖ¸Õë±äÁ¿¡£ 4 £©ÕÆÎսṹÌåÀàÐͱäÁ¿µÄ¶¨ÒåºÍʹÓá£

¶þ¡¢ÊµÑéÄÚÈÝ

[ÌâÄ¿1091£º½»»»Á½Êý£¬ÓÉ´óµ½Ð¡Êä³ö]

ÏÂÃæ³ÌÐò£¬½»»»Á½Êý£¬Ê¹Á½ÊýÓÉ´óµ½Ð¡Êä³ö£¬ÇëÌî¿Õ #include \

void swap( int *p1, int *p2 ) { int temp; temp=*p1; *p1=*p2; *p2=temp; }

int main()

{ int a,b; int *pa,*pb; scanf(\pa=&a; pb=&b;

if(a

[ÌâÄ¿1065£ºÊý×éÖеÄÖ¸Õë] ÉèÓÐÈçÏÂÊý×鶨Ò壺

int a[3][4]={{1,3,5,7},{9,11,13,15},{17,19,21,23}};

¼ÆËãÏÂÃæ¸÷ÏîµÄÖµ ÉèÊý×éa µÄÊ×µØַΪ2000£¬Ò»¸öint ÀàÐÍÊýÕ¼Ëĸö×Ö½Ú£©¡£×¢Ò⣺µØÖ·ÔòÊä³öµØÖ·£¬

±äÁ¿ÔòÊä³ö±äÁ¿Öµ£»ÒªÇóÒ»ÐÐÒ»¸ö´ð°¸£¬²»ÔÊÐí¶àÓà¿ÕÐм°¿Õ¸ñ¡£

1£©a[2][1] 2£©a[1] 3£©a 4 £©a+1

5£©*a+1 6£©*(a+1) 7£©a[2]+1 8£©*(a+1)+1 9£©*(*(a+2)+2 £©

²Î¿¼³ÌÐò£º

#include \main()

{ printf(\printf(\printf(\printf(\printf(\printf(\printf(\printf(\printf(\}

[ÌâÄ¿1092£ºº¯ÊýʵÏÖÇó×Ö·û´®³¤¶È]

ÏÂÃæ³ÌÐòÒÔÖ¸Õ뷽ʽ´«µÝ²ÎÊý£¬Óɺ¯ÊýʵÏÖÇó×Ö·û´®³¤¶È£¬ÇëÌî¿ÕÍê³É #include \#include \int f(char *p)

{ return strlen(p); }

int main()

{ char s[80]; int i;

scanf(\i=f(s);

printf(\}

[ÌâÄ¿1125£º¶¨Òå½á¹¹ÌåÀàÐÍ]

ÒªÇó¶¨ÒåÒ»¸öÃûΪstudent µÄ½á¹¹ÌåÀàÐÍ£¬Æä°üº¬ÈçϳÉÔ±£º 1£©×Ö·ûÊý×éname£¬×î¶à¿É´æ·Å10 ¸ö×Ö·û£» 2£©×Ö·û±äÁ¿sex£¬ÓÃÓڼǼÐÔ±ð£»

3£©ÕûÊýÀàÐͱäÁ¿num£¬ÓÃÓڼǼѧºÅ£» 4 £©float ÀàÐͱäÁ¿score£¬ÓÃÓڼǼ³É¼¨£» ²¢Ê¹ÏÂÁдúÂëÍêÕû¡£ /*¶¨Òå½á¹¹ÌåÀàÐÍ*/ struct student

{ char name[20]; char sex; int num;