Mar 23, 2016 at 2:16am
I cant figure out what I did wrong. Im pretty new to this
#include <iostream>
using namespace std;
int main()
{
int c = 0;
if ( ( c = cin.get() ) != EOF )
{
main();
cout << c;
}
}
Mar 23, 2016 at 3:12am
What are you trying to do?
Mar 23, 2016 at 4:29am
instead of calling main from the if statement, try using a loop.