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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -