views:

25

answers:

0

I am normaly using Visual Studio 2008 Express, which is quite powerful, but some geeks in head of competition in programming said that we are allowed to use only Dev-C++ as compiler ( I know it's smaller but I think that competition should be about testing your skills in writting code not using all kind of compilers). Anyway in VS2008, everything goes smooth and you can debug all kind of things- variables, pointers, arrays, vectors, strings.... Well and in Dev-C++ I can't find that one. I can debug single variable, but when I watch some kind of array(not to mention vector that's even bigger problem) I see only adress of first element in there. Yes it's like:

   int* array = new int[5]

and you would dispaly what's value in array (it is adress of first element, so Dev-C++ is right). But that's creepy, when you take in mind, that VS2008 shows a tree-like values of all elements with their adresses and. what's important, also they normal values.

I know that if they would copy VS2008 and name it Dev-C++ it would be even more creepy, but is there way to smart debuging of these strctures, arrays etc? Or do I have to use nice old printing to file? I mean, well it's modern age, that competition is about time and if I made something wrong why do I have to search whole day?