#include <iostream>
#include <conio>
void main ()
{
cout<<"rose mary";
getch();
}
rose_2 0 Junior Poster in Training
Recommended Answers
Jump to Post— Moschops 683Good for you. Well done.
Here are some problems with it:
Line 2 - conio is a non-standard header and using it comes with risks. Modern typical PC systems do NOT come with anything named conio, so by using it you're already restricting yourself. Don't use it.
Line 3 - …
Jump to Post— Learner010 99so what should i use instead of <conio> ??
I think nothing.Because in your code you use
coniofor justgetch()function.I never realized the need of usingconioand i think will never realize because i use standardize c++.And there is no need to …
Jump to Post— Moschops 683What compiler are you using? Is it from before about 1998? C++ has moved on in the last twenty years.
All 9 Replies
Moschops 683 Practically a Master Poster Featured Poster
rose_2 0 Junior Poster in Training
Learner010 99 Posting Whiz in Training
ddanbe commented: Nice! +15
rose_2 0 Junior Poster in Training
Moschops 683 Practically a Master Poster Featured Poster
rose_2 0 Junior Poster in Training
tinstaafl 1,209 Posting Maven
rose_2 0 Junior Poster in Training
tinstaafl 1,209 Posting Maven
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.