Break Point in VC++

cpp.net Australia
  • 14 years ago

    Hi ppl,

          I got the following code

          int r, c;

         for(r = 0 ; r <323 ; r++)

          {   

             for(c =0; c < 234; c++)

                {

                   ad[r]Coffee [C] = do some process;

             }

    }

    r =0; c =0;

    int red =0, green =0, yellow =0;

    red = x+y; green = y+z; // I can not set a breakpoint in this line of code

    if(red > 343) r = 343; if(green > 242) green = 242;

    In the above code i cannont set the breakpoint in the line with the comment. 

    will you pls help me with this problem. Is it a bad style of programming to declare variables not at the beggining of the program. Is there is anything i got to do with Visual studio 2003 settings.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.” - Dennis Ritchie