|
|
back to boardwhats wrong and whats test 10 Posted by garra 30 May 2012 23:15 #include<stdio.h> #include<stdlib.h> #include<string.h> int main() { int n,i,j=0; char a[100][4]; char b; scanf("%d",&n); for(i=0;i<=n;i++) { gets(a[i]); } scanf("%c",&b); for(i=0;i<=n;i++) { if(a[i][j]==b) { puts(a[i]); } } return 0; } Re: whats wrong and whats test 10 there can be more than 100 hieroglyphs Re: whats wrong and whats test 10 Posted by garra 31 May 2012 21:47 thanks got an ac |
|
|