[Dev-C++] Help me with debugging pls.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Vaclav K. <vk...@se...> - 2002-07-31 14:44:20
|
Hello all,
here is my short code:
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
int x =3D 1000;
x =3D x*x;
cout << "Hello World!" << endl;
x =3D 1;
cout << "Press ENTER to continue... " << x <<endl;
getchar ();
return 0;
}
I need to watch variable x, but when I step in code while debugging each=
line with x is skiped and no x value is displayed. Only three lines (cout=
and getchar) are evaluated correctly.
Some error "No symbol x in current context." is displayed in debugging=
infos.
Does anyone know where is the problem, can you try it by yourself and write=
me your status? I need to watch variables values while debugging because=
otherwise it is not valuable for me. I have devcpp.exe 4.9.4.3.
Thank you very much for your help.
With best regards,
Vaclav Kremen.
|