c 闲人 请教你一个问题
c语言吧
全部回复
仅看楼主
level 1
阿凡提 楼主
如果 输入一个数字然后要立即从该行输出这个数字(注:不能从下一行输出)这个语句应该怎么写啊你能告诉我吗??谢谢
2004年10月17日 07点10分 1
level 1
不可能.
2004年10月17日 10点10分 2
level 0
main(){char a;cscanf("%c",&a);printf("%c",a);}
2004年10月17日 11点10分 3
level 0
main(){char a;while(a!='0'){cscanf("%c",&a);printf("%c",a);}} //改了一下。
2004年10月17日 13点10分 4
level 1
阿凡提 楼主
谢谢楼上的朋友我觉得问题就在 cscanf();把它换成 scanf();就不行了你能告诉我他们的区别 吗???非常感谢!!!!
2004年10月18日 03点10分 5
level 9
http://post.baidu.com/f?kz=5305522
2004年10月18日 09点10分 9
level 9
以后不要用这样的题目,题目应该尽量表达你的中心思想.
2004年10月18日 09点10分 10
level 1
阿凡提 楼主
好的谢谢您的指教能告诉我您的qq吗??我想以后编程的道路还会遇到很多问题希望您能多多指教
2004年10月18日 14点10分 11
level 9
我现在在用free bsd系统,暂时没打算用QQ.以后就在这里问吧,我尽量回答.建议你使用DEVCPP(它使用GCC这个编译器),这样我可以帮你更多(因为我现在也是在用GCC)
2004年10月18日 14点10分 12
level 0
main(){ char ch; ch = getche (); puchar (ch);}
2007年12月11日 08点12分 13
level 0
from CUIT
2007年12月11日 08点12分 14
level 1
printf("\n 输入: ");scanf(%d,&i);
2007年12月11日 13点12分 16
level 0
13楼太强了
2007年12月12日 16点12分 17
level 0
C语言的编写讲究风格和习惯用法,像这样的程序最好不要想,浪费时间 和精力,真正优秀的程序员除了创意外,必须遵循习惯用法!输出也是,本来就有一般用法,就用一般用法。
2008年05月13日 04点05分 18
level 0
C语言考试,有时过分强调语法,其实,学C语言本质是编写好的程序,他要求风格上的一至,远行时间,各种资源的有效应用,我以前同学C靠满分,结果最后搞两周的程序设计,根本不会编程序,程序无法运行。
2008年05月13日 04点05分 19
level 5
putchar(getchar());
2010年04月12日 04点04分 20
level 4
main()
{
char a,b;
scanf("%d",&a);
printf("%d",a);
getch();
}
2010年04月12日 12点04分 21
level 4
好象错了 呵呵
2010年04月12日 12点04分 22
level 6
挖坟精英?!
2010年04月12日 12点04分 23
level 6
。。。。。。。。。。。。。。。。。。。
2010年04月12日 14点04分 24
1 2 尾页