why doesnt getch() ,cin , cout etc work...?

Recommended Answers

All 2 Replies

why doesnt getch() ,cin , cout etc work...?

They work great when you include the correct header files.

Member Avatar for v3ga

Include iostream, don't forget using namespace std (happens with me coz i used turbo c++ which doesn't need us to specify namespace std)

Be a part of the DaniWeb community

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