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.

Lucaci Andrew commented: This is a basic requirement / homework - we don't provide solutions for homeworks. -2

Recommended Answers

All 2 Replies

You can start learning with a code like this ...

Click Here

And you need to read the tutorials and books that are in internet sites.

Have fun coding :)

Do NOT use the above link ... because, the 'Hello World' example program there does NOT conform to standard C++ ... Standard C++ uses: "int main()"

#include <iostream>

//using namespace std;

int main()
    // 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
    return 0;

Note: the C/C++ main() function returns an integer

You may like to see the (pre C++11) examples here:


If you want to start out with C++14 ... you might like to see this also:


by Ivor Horton

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.