我想寫一本線(包括空格)的文件中的一個去與下面的代碼: - 上面代碼的 //in main
char ch[40];
FILE *p;
char choice;
p=fopen("textfile.txt","w");
printf("%s\n","you are going to write in the first file");
while (1)
{
gets(ch
我已經用C編寫了一個簡單的程序。一個程序輸入一個字符串並將其與長度一起顯示。 #include<stdio.h>
int main()
{
char a[4];
printf("Enter the name : ");
gets(a);
printf("\nThe name enterd is : %s",a);
printf("\nLength of string is : %