Could Some One Please Help?
Hello every one, i just this morning, ive been working one it all god dang night. . . AND still on the first chapter (sad huh?).
Any way, i am getting this error the says as follows:
"Program exit code: -1 (0xffffffff)" Can some one that knows MS-DOS and/or C++ for dummies help me?
Thanks in advance
i mean i just got a copy of C++ for dummies, sorry, extreamly sleepy, thanks again.
January 06, 2003 09:51 PM
You''re not posting any code or anything we can help you with. How are we supposed to help you!?
exit codes are NOT a way to understand the error. give the code, we give the help.
- To learn, we share... Give some to take some -
Firstly, is it void main() ?
"after many years of singularity, i'm still searching on the event horizon"
maybe the program is just exiting when it is done
try adding this to the end of main()
(you might need to write std::cin and std::coutinstead of cin and cout)
[edited by - googlyeyes on January 6, 2003 12:19:28 AM]
try adding this to the end of main()
cout << "press any key to continue !!!!!!!!";char bob;cin >> bob;
(you might need to write std::cin and std::coutinstead of cin and cout)
[edited by - googlyeyes on January 6, 2003 12:19:28 AM]
theres an edit button to edit your posts. read the forum faq as well.
and look for this:
return -1;
[edited by - LuckyNewbie on January 6, 2003 12:48:28 AM]
and look for this:
return -1;
[edited by - LuckyNewbie on January 6, 2003 12:48:28 AM]
"Let me just ejaculate some ideas"
use " source] [/source]" tags to show the your code on the forum
[edited by - kappa the imp on January 7, 2003 10:07:50 AM]
[edited by - kappa the imp on January 7, 2003 10:08:27 AM]
[edited by - kappa the imp on January 7, 2003 10:07:50 AM]
[edited by - kappa the imp on January 7, 2003 10:08:27 AM]
Oh, ok, didnt know you needed the code (sorry).
the is as follows:
//
// Program to convert tenperature from Celsius degree
// units into Fahrenheit degree units:
// Fahrenheit = Celsius * (212 - 32)/100 + 32
//
#include <stdio.h>
#include <iostream.h>
int main(int nNimberifArgs, char* pszArgs[])
{
// enter the temerature in Celsius
int celsius;
cout <<"Enter the temperature in Celsius;";
cin >> celsius;
// calculate conversion factor for Celsius
// to Fahrenheit
int factor;
factor = 212 - 32;
// use conversion factor to convert Celsius
// into Fahrenheit values
int fahrenheit;
fahrenheit = factor * celsius/100 + 32;
// output the results
cout << "Fahrenheit value is:";
cout << fahrenheit;
return 0;
}
And thats the code, thats what you need right? thanks for your help .
Nope, that didnt work, i tryed adding the ; but still the same error. . . . thanks though.
[edited by - Forgotten on January 7, 2003 1:52:01 PM]
the is as follows:
//
// Program to convert tenperature from Celsius degree
// units into Fahrenheit degree units:
// Fahrenheit = Celsius * (212 - 32)/100 + 32
//
#include <stdio.h>
#include <iostream.h>
int main(int nNimberifArgs, char* pszArgs[])
{
// enter the temerature in Celsius
int celsius;
cout <<"Enter the temperature in Celsius;";
cin >> celsius;
// calculate conversion factor for Celsius
// to Fahrenheit
int factor;
factor = 212 - 32;
// use conversion factor to convert Celsius
// into Fahrenheit values
int fahrenheit;
fahrenheit = factor * celsius/100 + 32;
// output the results
cout << "Fahrenheit value is:";
cout << fahrenheit;
return 0;
}
And thats the code, thats what you need right? thanks for your help .
Nope, that didnt work, i tryed adding the ; but still the same error. . . . thanks though.
[edited by - Forgotten on January 7, 2003 1:52:01 PM]
January 07, 2003 12:48 PM
Try adding semicolons to those 2 lines (you had a colon in the first one, and nothing in the next one)
cout <<"Enter the temperature in Celsius:";
cin >> celsius;
cout <<"Enter the temperature in Celsius:";
cin >> celsius;
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement