User forums > Help

Scanf.exe Problem

(1/1)

dubfan:
Hi Folks - first post

When running a program with the scanf function in it,
I get an error report "Scanf.exe has encountered a problem and needs to close. We are sorry for the inconvenience" and generates an error report to send to Micro Soft.

Using Win XP on a Dell

Any ideas

Thanks

oBFusCATed:
Compiler, CB version and
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

rcoll:
The scanf function is easy to crash, it really takes no skill at all.  Be sure to check your embedded scan codes against the args supplied; then check them again.  Chances are extremely high that you are passing the wrong kind of pointer to receive a scanf value.

Of course, all this has absolutely nothing to do with C::B, and the help you will get here is limited.  You really should be asking in a C/C++ forum where the scanf experts live.

Ringo

Navigation

[0] Message Index

Go to full version