|
this code compiles fine but doesn''t work
thanks.
InFerN0Not all who wander are lost...
At a quick glance, the first thing I can see is that you are passing a character pointer to GetInput that doesn''t have any memory allocated for it. This will make gets() write into a bad memory address and probably cause a GPF.
Try char string[100] (or whatever) instead. Or allocate the memory dynamically.
Try char string[100] (or whatever) instead. Or allocate the memory dynamically.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement