All pastes #104498 Raw Edit

Untitled

public cpp v1 · immutable
#104498 ·published 2006-07-28 22:35 UTC
rendered paste body
Error log:Compiling...c:\docume~1\coding\desktop\mycodi~1\sample.cppc:\docume~1\coding\desktop\mycodi~1\sample.cpp(6) : error C2065: 'pythag' : undeclared identifierc:\docume~1\coding\desktop\mycodi~1\sample.cpp(6) : error C2064: term does not evaluate to a functionc:\docume~1\coding\desktop\mycodi~1\sample.cpp(7) : error C2143: syntax error : missing ';' before '{'c:\docume~1\coding\desktop\mycodi~1\sample.cpp(25) : error C2061: syntax error : identifier 'varA'c:\docume~1\coding\desktop\mycodi~1\sample.cpp(28) : error C2061: syntax error : identifier 'varB'c:\docume~1\coding\desktop\mycodi~1\sample.cpp(30) : warning C4508: 'main' : function should return a value; 'void' return type assumedc:\docume~1\coding\desktop\mycodi~1\sample.cpp(31) : error C2143: syntax error : missing ';' before 'if'c:\docume~1\coding\desktop\mycodi~1\sample.cpp(33) : error C2143: syntax error : missing ';' before '}'c:\docume~1\coding\desktop\mycodi~1\sample.cpp(35) : error C2143: syntax error : missing ';' before '}'c:\docume~1\coding\desktop\mycodi~1\sample.cpp(43) : error C2143: syntax error : missing ';' before '}' CL returned error code 2.SAMPLE.EXE - 9 error(s), 1 warning(s)===========#include <iostream.h>int main(){         	pythag()	{		int varA;	int varB;	int varC;	int a2;	int b2;	int c2;	int variable;	cout << "Enter the variables for A, B, and C. If you don't have a unit for a variable, enter -0.";	cout << "A=?";	cin >> varA;     		cout << "B=?";	cin >> varB;		cout << "C=?";	cin >> varC; 		if varA==-0{		"a" >> variable;		}	if varB==-0{		"b" >> variable;   		}	if varC==-0{		"c" >> variable;		} 		return void; 	}								return 0;}