View Single Post
Old Feb 16th, 2006, 11:12 PM   #12
jobobshishkabob
Programmer
 
Join Date: Jan 2006
Location: Texas
Posts: 36
Rep Power: 0 jobobshishkabob is on a distinguished road
Quote:
Originally Posted by babbling
Do you mean something like this?

if( x == y && x == a && x == b && x == c )
{
  // ...
}
yes kind of....

so basically what i need is that and

if( x != y && x != a && x != b && x != c )
{
  // ...
}

replace the //....

if( x == y && x == a && x == b && x == c )
{
  // put (variable) on a list
}
or
if( x != y && x != a && x != b && x != c )
{
  // ignore (variable)
}


all i need to know is how to place it on a list... after that the next page will be like

cout<<"All contain: \n";
// displays list

two more questions... how to i say "x = whatever"... i know how to say "x = a number" but i need "x = a word"
int x = (10)
cout<<x;
that method only works with numbers, how do i do it with letters

and one more thing... does && mean "and" or "and/or"


Thanks

Last edited by jobobshishkabob; Feb 16th, 2006 at 11:26 PM.
jobobshishkabob is offline   Reply With Quote