Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
C++ programming problem(novice)
yours31f wrote: #include <iostream> using namespace std; int main{ char Hello [5]; cin >> Hello; if (hello == hello) cout << "Good!" << endl; else cout << "Why not?"; }
so the program makes you type hello then it says good or why not, based on what you typed.
C++ is case sensitive, so 'hello' isn't the same as 'Hello'. And probably you want to do 'if(Hello == "hello")' ;)
And the main function should return some value.