fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. char name1[50], name2[50]; //宣告name1和name2是字元陣列
  6. cin >> name1 >> name2; //輸入
  7. cout << "################################" << endl;
  8. cout << "Dear "<< name1 << endl;
  9. cout << " TWICE is the best!" << endl;
  10. cout << " Fighting!" << endl;
  11. cout << " Sincerely, " << name2 << endl;
  12. cout << "################################" << endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 4548KB
stdin
Standard input is empty
stdout
################################
Dear  �*
  TWICE is the best!
  Fighting!
                Sincerely, 
################################