测试一些C特性

This commit is contained in:
nonstriater
2014-05-18 13:02:39 +08:00
parent 7fc950aa3b
commit 98ed4336bc
33 changed files with 618 additions and 47 deletions
+31
View File
@@ -0,0 +1,31 @@
// FROM:http://www.gowrikumar.com/c/
#include <stdio.h>
int main()
{
char str[80];
scanf("%[^/n]",str);
printf("%s\n",str);
return 0;
char c;
scanf("%c",&c);
printf("%c\n",c);
scanf("%c",&c);
printf("%c\n",c);
return 0;
}
/*
scanf("%c",&c) 和 scanf(" %c",&c) 区别
*/