I don't know...

This is a discussion on I don't know... within the C++ Programming forums, part of the General Programming Boards category; Im wondering how to... i guess, link two things togeter.
lets say i did a simple loop and then i ...

I don't know...

Im wondering how to... i guess, link two things togeter.

lets say i did a simple loop and then i want to do an if statement thing... When i compile it, it doesn't have errors but when i run the program, all it does is the loop and not the if. Please help a new C++ programmer

another common error is the logical condition in your if statement is actually a contradiciton (always false). check and see if that's the case.. again, some code would be better off for others to help u more effeciently.

well, it'd not be considered a conditional... not necessarily a contradiction... and about that, your compiler might have options for warning on cases which always held true [with constants/hardcoded values and even with variables sometimes...]

any code? check your compiler for these things... what compiler are you on?