Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
need help C++ dev sorta easy
Name: Justin Date: April 2, 2003 at 07:25:15 Pacific OS: - CPU/Ram: --
There were 2 lines containing that and I tried altering both, and each one way or another and that didn't work... (i mean with the reference, with or without)...
??
thanks tho for responderin =] if you can compile it and work, on DEV C++ 4 do tell how :)!!
0
Response Number 3
Name: egkenny Date: April 2, 2003 at 10:56:07 Pacific
Reply:
There were a couple of syntax errors: #include <iostream.h> #include <stdlib.h>
void getTEMP(int & ); void printACTIVITY( int );
int main() { int temperature; getTEMP(temperature); printACTIVITY(temperature); system("PAUSE"); return 0; }
void getTEMP(int & temp) { cout << "Enter the temperature: "; cin >> temp; cout << "The current temperature is " << temp << endl; }
void printACTIVITY(int temp) { cout << "The recommended activity is " ; if (temp > 85) cout << "swimming." << endl; else if (temp > 70) cout << "tennis" << endl; else if (temp > 32) cout << "golf" << endl; else if (temp > 0) cout << "skiing" << endl; else cout << "dancing" <<endl; }
Summary: Hi, Thank you for your response, but here when I am using Crystal Report for VS.NET I have to use a specific crystal syntax which by the way is different for each programming language i.e., VB, C# etc...
Summary: Need help with a C++ program? But anyone you ask doesn't have the slightest idea what your talking about, let alone doing? Then visit http://www.subduck.com for the greatest C++ experience you'll ever...