Quote:
Originally Posted by doughyi8u
It's only when I try to use a pointer when I get an error.
|
Your pointer isn't pointing to anything. You might want to learn a bit more about pointers and memory management in C before trying to use other libraries.
A Tutorial on pointers and arrays in C, linked from the
C/C++ Tutorials sticky looks reasonable.
Quote:
i'm not using any spaces.
|
Here you are only reading one value, so there is no issue with whitespace. Whitespace includes newline, which you will need to enter more than one value.