I have wrote this test program for trying different things with c++ and when I pass a character array to a member function, the compiler complains.
Here is the code:
and the error message the compiler gives is:
int changeCustomerInfo(char c);
char s = " This is test";
int num = 8;
num = test.changeCustomerInfo(s);
int changeCustomerInfo(char c)
/tmp/ccy4EJL2.o: In function `main':
.text+0x6e): undefined reference to `Account::changeCustomerInfo(char*)'
collect2: ld returned 1 exit status
I've tried many things, but I can't figure out what is preventing it from compiling properly, can you tell me what my mistake is?