New Posts  All Forums:Forum Nav:

C++ help required! - Page 3

post #21 of 23
Thread Starter 
Quote:
Originally Posted by Valrandir View Post

It is not a compiler bug.

I'm pretty sure it was a bug. I might have not been clear on the matter but I did declare the variable like so:
Code:
int i = 0;

Running that code through the debugger showed i not being initialized.

After I made the corrections you showed to the original code it didn't work. I had to start a whole new project and copy the code there. After that the code worked.
Quote:
Originally Posted by Valrandir View Post

Your code is not bad, it is good considering your level.
As you learn more it will get better.

Thanks mate smile.gif
post #22 of 23
Quote:
Originally Posted by Tuxi View Post

I'm pretty sure it was a bug. I might have not been clear on the matter but I did declare the variable like so:
Code:
int i = 0;
Running that code through the debugger showed i not being initialized.
After I made the corrections you showed to the original code it didn't work. I had to start a whole new project and copy the code there. After that the code worked.
Thanks mate smile.gif

int i = 0; // Will be initialized
RIVI[9] varName; //Will not be initialized and is not a compiler bug.
Nibelung
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 2600K Sabertooth P67 EVGA Classified GTX 590 Corsair Vengeance 16Gb 
Hard DriveOptical DriveOSMonitor
2x OCZ Vertex 3 128Gb Raid 0 LiteOn iHBS212 Blu-Ray Burner Windows 7 64 bits LG W3000H-Bn 2560x1600 S-IPS 5ms 
KeyboardPowerCaseMouse
Logitech G510 Cooler Master Silent Pro Gold 800W Cooler Master HAF X Logitech G500 
  hide details  
Reply
Nibelung
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 2600K Sabertooth P67 EVGA Classified GTX 590 Corsair Vengeance 16Gb 
Hard DriveOptical DriveOSMonitor
2x OCZ Vertex 3 128Gb Raid 0 LiteOn iHBS212 Blu-Ray Burner Windows 7 64 bits LG W3000H-Bn 2560x1600 S-IPS 5ms 
KeyboardPowerCaseMouse
Logitech G510 Cooler Master Silent Pro Gold 800W Cooler Master HAF X Logitech G500 
  hide details  
Reply
post #23 of 23
Thread Starter 
Quote:
Originally Posted by Valrandir View Post

int i = 0; // Will be initialized
RIVI[9] varName; //Will not be initialized and is not a compiler bug.

I get that, but as I said, the code didn't work in the original solution, but the exact copy of that code worked on another project.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming