[Dev-C++] Scanf crashes with error....
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Dwayne M. <dmi...@ne...> - 2002-11-25 14:41:57
|
I am writing a simple program, to refresh my C programming skills (which
were admittly not very good to begin with).
Whenever I execute a line with a scanf statement. It crashes giving a
windows error: <program> has caused a page fault in MSVCRT.DLL.
I can post the registers if that helps.
Any suggestions on what I have wrong?
Thanks,
Dwayne Miller
Barberton, Ohio
Code line:
scanf("%i",SquadSize);
Where: SquadSize has been declared type int.
If it helps, latest version of Dev-Cpp, the program is written in C.
Running on Celeron 400, with 128 megs of memory.
Other specs on request.
|