For this program we basically wrote our own "cout" and "cin" that does what we want it to do. It needs a Console object on the left of the operator and it returns a console object so that you can cascade.#include"console.h"int main(){ cio::Console cout; cio::Console cin; int test; cin >> test; cout << test;}
For this program we basically wrote our own "cout" and "cin" that does what we want it to do. It needs a Console object on the left of the operator and it returns a console object so that you can cascade.
ReplyDelete#include"console.h"
int main()
{
cio::Console cout;
cio::Console cin;
int test;
cin >> test;
cout << test;
}