scope - Custom Function not being called -


i've been having trouble calling function in code.

#include <iostream> #include <cmath> #include <cstdlib>  void bunky(int);  int main() {     using namespace std;      bucky(20);      cin.get();     return 0; }   void bucky(int x) {     using namespace std;     cout << "my favorite number " << x << endl; } 

when try compile says, "[error]'bucky' not declared in scope" , great.

function declaration wrong change

 void bunky(int); 

to

  void bucky(int); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -