Playground
#include <iostream> #include <string> using namespace std; int main() { string linija; cout << "Ime i prezime: "; getline(cin, linija); cout << "Tvoeto ime i prezime: " << linija << endl; string str_broj; cout << "Vnesi cel broj: "; getline(cin, str_broj); cout << str_broj << endl; return 0; }
Input data
Program output
Darko Simonovski 5123
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!