C++/Simple program C++ one small problem
Expert: Zlatko - 10/20/2009
QuestionIm putting through this program and its running but it ends with this "error"
The thread 'Win32 Thread' (0x15b8) has exited with code -1073741510 (0xc000013a).
The program '[1536] redoneproject1.exe: Native' has exited with code -1073741510 (0xc000013a).
heres the code, thanks for any help.
/*****************************************************/
/* File: Project 1 */
/* */
/* Created by: Andrew */
/* Date: 9/29/2009 */
/* */
/* Program to compute the weekly wages */
/* */
/* Inputs: (keyboard) */
/* 1. No. of hours worked during a week (integer) */
/* 2. Pay rate (dollars per hour) (float) */
/* */
/* Output: */
/* weekly wages displayed on screen as a float */
/* */
/* Algorithm: wages = hours worked * pay rate */
/* */
/****************************************************/
#include <iostream>
using namespace std ;
int main()
{
float hours_worked; //No. of hrs worked during week
float pay_rate; //Pay rate: dollars per hour
float wages; //Weekly wages
// read in the hours worked
cout << endl ;
cout << "Number of hours worked during"
<< " the week (integer) = " ;
cin >> hours_worked ;
cout << endl ;
// read in the pay rate
cout << "Hourly pay rate (specify two digits "
<< "after the decimal point) = " ;
cin >> pay_rate ;
// compute wages
wages = hours_worked*pay_rate
// display the result
;cout << "The weekly wages are: $" << wages << endl ;
return (0); // terminate with success
}
AnswerAndrew, I'm not getting that behavior. I see
The program '[1208] Test.exe: Native' has exited with code 0 (0x0).
Try doing a clean and rebuild.
What compiler are you using?
If you are using visual studio or g++, then send me the command lines for the compiler and linker and maybe I can help you more.
If using visual studio, the command lines come from the Properties of the project.
Best regards.