Hi guys :)
I want to read the console output in a string. Is there a easy way to do this ?
Something like:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
#include <iostream>
#include <string>
using namespace std;
int main(){
cout<<"blablup";
string fromConsole=getFromConsole(); //some magic function
cout<<fromConsole; //this should print blablup
cin.sync();
cin.ignore();
return 0;
}
|
Last edited on
Last edited on
Thanks JockX,I ment the second task.I will take a look at those links :)