字符串长度问题!
如何能给char类型树组输入超过127个字符,请指教.
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int main(void)
{
char str[500];
scanf("%s",str);
printf("%s\n",str);
getch();
exit(0);
}
如何能给char类型树组输入超过127个字符,请指教.
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int main(void)
{
char str[500];
scanf("%s",str);
printf("%s\n",str);
getch();
exit(0);
}
2006-04-11 22:33
bian cheng zhong guo lian zhe dian wen ti dou gao bu ding 

2006-04-11 22:53

2006-04-11 22:56
bian cheng zhong guo lian zhe dian wen ti dou gao bu ding 
有人逼你来这里吗? 别人要是回答你的(那是好心),不回答你(因为没这个义务)
[此贴子已经被作者于2006-4-11 23:01:06编辑过]

2006-04-11 22:58
2006-04-11 23:03

2006-04-11 23:05