I wnat to get hello \n world this string as an input and cout \n this part of string as a new line, because when i write \n this in terminal it can compile as a new line.
#include <iostream>
using namespace std;
int main(){
string st;
getline(cin, st);
return 0;
}
Aucun commentaire:
Enregistrer un commentaire