Ugh.
I am taking a c++ foundations course, and all was well until the moment came where I had to break my prototypes out into .h files. Until this point, all my prototyping has been done with ints, doubles, etc. - char seems to be different and vexing.
test.h
void display(char* str)
---------------------------------------------
int main()
{
#include "test.h"
char str[] = "hello";
display();
}
At this point I get an error on compile and nothing I have done, or none of the reference material I have at my disposal is fixing the prolem.
HELP!
I am taking a c++ foundations course, and all was well until the moment came where I had to break my prototypes out into .h files. Until this point, all my prototyping has been done with ints, doubles, etc. - char seems to be different and vexing.
test.h
void display(char* str)
---------------------------------------------
int main()
{
#include "test.h"
char str[] = "hello";
display();
}
At this point I get an error on compile and nothing I have done, or none of the reference material I have at my disposal is fixing the prolem.
HELP!
Comment