#5781: c為什麼拿零分


znrbdcd (李益昌)


#include <iostream>
using namespace std;
int main()
{
const int size = 20;
char v[size] ;
cout <<"請輸入指定的字串"<< endl;
cin.getline(v,20) ;
cout <<"您輸入的字串是:"<< v << endl;
system("pause");
return 0;
}
#5784: Re:c為什麼拿零分


lfs92002 (GMan每日殺水題1.6449340668482264364...)


#include
using namespace std;
int main()
{
const int size = 20;
char v[size] ;
cout <<"請輸入指定的字串"<< endl;
cin.getline(v,20) ;
cout <<"您輸入的字串是:"<< v << endl;
system("pause");
return 0;
}


不需要額外的字喔@@