Posted by sonnytsn on Tuesday, April 8, 2008 at 5:58am.
Just quickly looking...
if (nod = 4 < 6)
this will set nod true if 4 < 6.
Probably this is not what you mean.
To test for a range, you will have to separately test for the endpoints.
if( (nod >=4) && (nod <= 6) )
{
}
would test for nod greater or equal to 4 AND less than or equal to 6.
if( (nod >=4) && (nod < 6) )
{
}
would test for nod greater or equal to 4 AND less than 6.
There are a few other items, but I think the above will help you get started.
Related Questions
C++ Programming - #include <iostream.h> #include <stdlib.h&...
C++ Programming - I have to redo programming exercise 5 of chapter 9 using ...
C++ - #include <iostream.h> #include <stdlib.h> int ...
C++ - #include <iostream.h> #include <stdlib.h> int ...
C++ Programming - Can any1 please fix this c++ source problem /*Circle Are ...
C++ if else problem, please look - It compiles but it doesn't work. can you ...
C++ Programming - I NEED HELP WITH MY CODE!!! it won't compile right The ...
programming C++ - Write a program that reads test scores up to 30 into an array...
C++ Programming - Design and create a class named Stats that has an array of 12 ...
C++ - Can anyone help me with my c++ program? Its a program I have to write ...
For Further Reading