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;
}
}
What are you trying to do?
instead of calling main from the if statement, try using a loop.