Unable to compile/run a program under MS's visual studio c++ 2010....
when tried to run (Ctrl F5), the black screen appears with ''255.000000/n Press any key to continue'' instruction and suddenly disappears when any key is pressed..
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
Also debugging (F5) it produces a screen which disappears within a sec.
It sounds like your program is actually running. Although, you should change the "/n" to a "\n" in your printf.
yea.. but the output screen doesn't stays for me to input values and see results...
Not the answer you are looking for? Search for more explanations.
Ah, right, so that's because you don't have any functions that take input... hold on one sec....
Look at this:
so can you please write a simple c++ program which I may copy paste that give results...
Well, I'll show you an example program. So gets() reads a string from the input. So you'll want to provide some sort of prompt with printf. So,
printf("Enter a number: ");
Then you'll want to retrieve a number with gets...
gets( &number );
Then you'll want to change that to an integer, which should look something like...
int numberInteger = atoi(number)
You'll still have some stuff to fill in, but after it's a number you'll be able to use it in calculations. Make sense?
This is the error message I get at the end of output The program ' 55.exe: Native' has exited with code 0 (0x0). in both situations.
The code I provided doesn't do everything you need it to do. You need to take the pieces I gave you and stitch them into your program.
yes, I did and with several other programs which do run on TC compiler...
Well, exited with code 0 means the program quit normally. I don't know what else to say. I'm not much use with the Visual Studio world. I exist mostly in the GCC world.