View Single Post
Old Feb 17th, 2005, 2:11 PM   #8
Hockeyman
Programmer
 
Hockeyman's Avatar
 
Join Date: Jan 2005
Location: Vancouver, Canada
Posts: 60
Rep Power: 4 Hockeyman is on a distinguished road
Send a message via MSN to Hockeyman
scanf will accept anything that is typed as input...might not interpret it like you think it's going to though.

Assuming you've included the correct libraries etc, that code should work.
There may be a problem somewhere else in your code.

In an earlier post you said it wasn't accepting numbers, your last post said letters - which isn't it accepting? What exactly is the error message you're getting? Does it compile and give a run-time error, or will it not even compile?
__________________
~ You know, Hobbes, some days even my lucky rocketship underpants don't help. ~

Hockeyman is offline   Reply With Quote