I am a kid of 15 and just started learning cpp. I want to make a simple programme wherby if i say hi to the computer it must respond by saying hello to me. So please give the coding or programme for it.
Do NOT use the above link ... because, the 'Hello World' example program there does NOT conform to standard C++ ... Standard C++ uses: "int main()"
//using namespace std;
// your code goes here ... for example ...
std::cout << "Hello World" << std::endl;
// keep window open until 'Enter' key pressed ...
// if next line left off, the standard C++ compiler will add code
Note: the C/C++ main() function returns an integer
You may like to see the (pre C++11) examples here: