Using CodeLite c++14, mingw-32. I'm fairly new and learning from a course to program in the languge, but i've encounterd a problem in the last couple of days i couldn't figure out. For some reason, the command line prompt shows only the last row of my output code. this happens in all types of code that i've done so far. Something that might be connected is that sometimes on the first building & executing of code (after a clean) i'm getting an error:
mingw32-make.exe: *** [All] Error 2
It's just an inconvinice though, a second build is solving this problem for some reason. But it might be connected some how.
Any way here's an example for a code:
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main() {
char vowels[] {'a','e','i','o','u'};
cout << "\nThe first vowel is " << vowels[0] << endl;
cout << "\nThe last vowel is " << vowels[4] << endl;
return 0;
}
The output that shows is only "The last vowel is u", it goes to basiclly any code i create.
Thanks!