Found in Cache

I am trying to write my first program that is supposed to solve the combined resistance of 3 resistors but every time I run the program I have errors and I do not know what they mean,

//This program calculates the combined resistance when the three resistors are attached in parallel
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;

int main()
{
double combinedResistance, R1, R2, R3;

R1 = 1000;
R2 = 1000;
R3 = 1000;
combinedResistance = 1/(1/R1 + 1/R2 + 1/R3);

cout << setprecision(2) << fixed;
cout << "The combined resistance is" <<combinedResistance<< "ohms" << endl;

system("pause");
return 0;
}

When I try to run the program this is what comes up:
Application "\??\C:\Windows\system32\cmd.exe" found in cache
The thread 0x197c has exited with code 0 (0x0).
The program '[6364] glavin_lab2.exe' has exited with code 0 (0x0).
Program gives me the correct answer in VS2010.
1
2
The combined resistance is333.33ohms
Press any key to continue . . .

Topic archived. No new replies allowed.