Loading...

array string in cpp

Đã đăng 4 năm trước

// extract to string
#include <iostream>
#include <string>
using namespace std;
int main ()
{
      string name[3]; 
    for(int i = 0; i<3; i++){
        getline (cin,name[i]);
    } 
    for(int i = 0; i<3; i++){
        cout<<"hello" << name[i] << endl;
    } 
  return 0;
}

LIÊN KẾT TẢI VỀ

Hashtag phổ biến
#Code x 2
#Sammy x 2