Error message after debugging

When i debug i get this error :"there would build errors. Would you like to continue and run the last successful build?"

How can i compile my program?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  #include <iostream>
#include <string>
using namespace std;
int main()
{
	string name;
	double pounds, kg;
	cout <<"what is your name(first name only)?";
	cin >> name;
	cout << "how many pounds do you weigh?";
	cin >> name;
	cout << "how many pounds do you weigh?";
	cin >> pounds;
	kg = pounds / 2.205;
	cout <<name<<", you weigh"<<kg<<"kilograms."<<endl;
	system ("pause");
}
When I debug your script, i didn't get a error. Maybe it's your debugger?


There are some pieces that I don't understand. Why would you do this:
1
2
3
4
	cout <<"what is your name(first name only)?";
	cin >> name;
	cout << "how many pounds do you weigh?";
	cin >> name; 

I would delete the underlined part.
> there would build errors
your program didn't generate an executable
read the error messages, and fix them

> run the last successful build?"
an outdated program, which code you may not have
Topic archived. No new replies allowed.