When ever i am entering any code it always succeed but i cannot see out put on screen it just flick for few seconds and then come back to complier.
for example small prog i am writing
#include <iostream.h>
main()
{
cout<<"my name ";
return 0:
}
it should give out put on screen my name but iam not getting can some one help how todo

Try to modify ur code like below

#include <iostream.h>
main()
{
cout<<"my name ";

cin.get();

return 0:
}

Thank you very much my problem is solved

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.