07 2013 档案
实现ls命令,错误在哪儿
摘要:#include #include int main(){ DIR *d1; struct dirent *dir1; const int maxline = 100; char buf[maxline]; printf("please input command\n"); scanf("%s",buf); int i = 0; char c; for(i = 0;i d_name); closedir(d1); ...
阅读全文
学习
摘要:typedef int(*a)(int b);typedef int(c)(int a);int f1(int i){ return i * i;}int f2(a a1,c c1){ int i = 99; printf("%5d %5d\n",a1(i),c1(i)); return a1(i) + c1(i);}int main(){ int j = 199; c c2 = f1; printf("%d\n",c2(j)); printf("%d\n",f2(f1,f1)); return 0;}
阅读全文
浙公网安备 33010602011771号