Ok Heres My function program woking
Now That works perfectly But When I try to Get an Int from it...Code:#include<iostream> #include<string> using namespace std; int myfunc(); int main() { myfunc(); system("PAUSE"); return 0; } int myfunc() { cout << "Function worked" << endl; return 0; }
Now this doesnt even compile.....It says"Too Few Argument Functions"Code:#include<iostream> #include<string> using namespace std; int myfunc(int myInteger); int main() { int = 10; myfunc(); system("PAUSE"); return 0; } int myfunc(int x) { cout << "Function worked" << endl; return 0; }
Anyone see the problem?
By the way im using dev C++.



LinkBack URL
About LinkBacks



