Hi all,
I was wondering if any of you could point me to some specific resources about c++ geared towards a VB programmer?
For example, in VB this works as expected:
if x = 6 then....
However in c++:
If (x=6) ....
Doesn't work as I would have expected (coming from a VB background). It took me some time to figure it out. It actually assigns the value of 6 to x. I won't make that mistake again!
In c++ if you declare a variable:
int x;
and then do something like this:
x++;
cout << x;
I get some weird number. I figured that x is being initialized to some random number. Is there any way to have int default initial value = 0?
I am using Dev-c++ for an ide and was wondering how can I set break points so that I can trace through and inspect variable values? I guess what I am getting at is, is there a facility to run programs similar to the way VB does? Or should I just change my mind set?
Cheers,
Troy
I was wondering if any of you could point me to some specific resources about c++ geared towards a VB programmer?
For example, in VB this works as expected:
if x = 6 then....
However in c++:
If (x=6) ....
Doesn't work as I would have expected (coming from a VB background). It took me some time to figure it out. It actually assigns the value of 6 to x. I won't make that mistake again!
In c++ if you declare a variable:
int x;
and then do something like this:
x++;
cout << x;
I get some weird number. I figured that x is being initialized to some random number. Is there any way to have int default initial value = 0?
I am using Dev-c++ for an ide and was wondering how can I set break points so that I can trace through and inspect variable values? I guess what I am getting at is, is there a facility to run programs similar to the way VB does? Or should I just change my mind set?
Cheers,
Troy


. For the last year or so I was getting into the .net thing. But I am realizing there are far more resources out there for c++ then VB. The other thing that I really like is the potential for cross-platform programing, that would be awesome!
.














