Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

會跳出來耶

0 views
Skip to first unread message

小毛

unread,
Jul 3, 2004, 2:48:50 AM7/3/04
to
下面是我的程式
覺得很怪
跑完
printf("input string A:");
scanf("%s",str);
printf("your string A:%s\n",str);
就會跳開
要再ctrl-F9
才繼續

我沒給跳開條件說

還是我哪邊觀念有錯ㄋ?

========================================================
#include<stdio.h>
#include<conio.h>

main()
{
clrscr();
char str[81];
char name[21];

printf("input string A:");
scanf("%s",str);
printf("your string A:%s\n",str);

printf("input string B:");
scanf("%1s",str);
printf("your string B first 1:%s\n",str);

scanf("%s",str);
printf("your string B others:%s\n",str);
printf("input your name:");

scanf("%s",name);
printf("your first name:%s\n",name);
getch();
return 0;
}
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: 203-71-129-181.reserve.ksut.edu.tw

0 new messages