#13295: 為什麼這樣不能過? <C> 我自己的編譯器可以過...


unknown111 (unknown111)


#include "stdafx.h"
#include "stdio.h"

int main()
{
while (true) {
char word[20];
gets_s(word);
printf("hello, %s\n",word);
}
return 0;
}

#13418: Re:為什麼這樣不能過? <C> 我自己的編譯器可以過...


aa890421 (Kotori)


#include "stdafx.h"
#include "stdio.h"

int main()
{
while (true) {
char word[20];
gets_s(word);
printf("hello, %s\n",word);
}
return 0;
}



因為你放了while (true) {} 他會一直等你再輸入東西 這樣對評分系統來說 你超時了