啊哈磊_编程从这里起步
标题:
为什么不能运行?
[打印本页]
作者:
nana111
时间:
2013-12-24 22:13
标题:
为什么不能运行?
#include<stdio.h>
#include<string.h>
void main()
{ char *s;
char c;
s=&c;
printf("which style do you want to:\n");
printf("Capital (c) or uncapital (a):");
c=getchar();
if(c='c') strcpy(s,"COMPUTER");
else strcpy(s,"computer");
puts(s);
}
复制代码
作者:
超神级
时间:
2013-12-24 23:31
6行S是地址
作者:
4399APPLE
时间:
2013-12-25 09:32
永远不要写void main
作者:
4399APPLE
时间:
2013-12-25 09:32
永远不要写void main
欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/)
Powered by Discuz! X3.2