#1790: 答案


1750246-2@g.puiching.edu.mo (P5A09林霆晞)

School : No School
ID : 2944
IP address : [192.168.120.33]
Last Login :
2025-06-04 17:02:19
a001. 哈囉 -- Brian Kernighan | From: [192.168.120.33] | Post Date : 2025-03-07 17:41

#include <iostream>

using namespace std;

int main() {

string s;

 while(cin >> s){

cout << "hello, "<< s << endl;

}

 return 0;

}

 
#1793: Re:答案


2158319-6@g.puiching.edu.mo (who)

School : No School
ID : 2935
IP address : [192.168.120.33]
Last Login :
2025-06-05 10:13:38
a001. 哈囉 -- Brian Kernighan | From: [192.168.120.33] | Post Date : 2025-03-11 09:07

#include

using namespace std;

int main() {

string s;

 while(cin >> s){

cout << "hello, "<< s << endl;

}

 return 0;

}


都有 範例程式碼了,還要post嗎

 
#1794: Re:答案


2158319-6@g.puiching.edu.mo (who)

School : No School
ID : 2935
IP address : [192.168.120.33]
Last Login :
2025-06-05 10:13:38
a001. 哈囉 -- Brian Kernighan | From: [192.168.120.33] | Post Date : 2025-03-11 09:09

#include

using namespace std;

int main() {

string s;

 while(cin >> s){

cout << "hello, "<< s << endl;

}

 return 0;

}


你也不記得在#include加<iostream>

 
ZeroJudge Forum