Hi i am trying to start doing C++ programming
when i write a simple hello programm
it is compiling correctly and the out put window is not staying on the screen , i am unable to see it
it is suddenly disappearing
can any one help me

Recommended Answers

All 5 Replies

You need to do it in dos. First you open up the dos program and find the directory and the file. Then press enter when you found the program. This will make it stay open. Or you can open dos and drag the .exe into the dos program itself and press enter.

Add to the end of the program, just before the closing bracket

getchar ();

Aha...C++...
It should be something like

...
using namespace std;
...
//your code
...
cin.get();
//end program

thanks a lot
i will appreciate it


also if i want to do image processing , will C++ allow me to do that job

thanks a lot
i will appreciate it


also if i want to do image processing , will C++ allow me to do that job

Sure it will...with your help :cheesy:

thanks a lot
i will appreciate it


also if i want to do image processing , will C++ allow me to do that job

Just read the image file as a binary file into a buffer and go at it. This means, change some of the bytes mildly, in a somewhat organized manner. Make sure you don't ruin the header part. There is a website that gives you all the image file constructs. I think it is http://www.wotsit.org/default.asp

Can't do much harm, write the buffer back to a file (hopefully with a different filename) and look at the image with a viewer. Observe the results!

Luck -- in the picture your girlfriend now has a mustache.
No luck -- no picture, you clobbered the header!

Seriously, experiment, but first read up on the picture format a little.

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.