I'm just learning c++
I made my first function. oh boi.
my code looks like this.
-----------------------------------------------------------------------
#include <iostream>
using namespace std;
void bleh()
{
string a;
cout << "input text" << endl;
cin >> a;
cout << "thanks, ho. bye bye now." << endl;
}
int main()
{
void bleh();
return 0;
}
------------------------------------------
I build and run it, and the console looks like this:
------------------------------------------------------
Process returned 0 <0x0> execution time : 0.016s
Press any key to continue.
------------------------------------------------------
I made this based on a tutorial on youtube.
I stared at this for 3 hours, trying to find out what I did wrong, and nothing. I did it the exact same way the guy in the video did.
Why is none of the text showing, when he did the same thing, and it worked perfectly?
No errors show in the build log. I'm using version 13.12, and the GNU GCC Compiler.
I wanted to post in the link they told me to, but I got the "page not found" error, so I apologize.