From: The_Micea <las...@ad...> - 2000-08-21 14:10:03
|
Yes, I missed the meeting too. My cable modem decided to quit on me, that why I have posted for a couple days. The java idea was simply an idea. I have no problem doing it in c since that seems to be the consensous(probably spelled wrong) . Anyways about parimeters. I do not know how you can change them while the programs running. If you mean "arguements" then using "cin >> " in c++ works. #include <iostream.h> int add (int x, int y) \\ These are the parimeters they just tell what kind of value \\will be passed in. { return (x+y); } int main() { cout << "Please enter a number"; cin >> a; cout << "Please enter a second number"; cin >> b; c = add(a,b); \\ These are the arguements, they are the actual values being \\passed into the program from the prompt. cout << a << "plus" << b << "equals" << c; return 0; } But if you were talking about parimeters let me know how to do it when you find out. |