I started reading a C++ book today and I've got a question for all you expert programmers:
is it possible to include AND\OR in IF statements?
For example, something like this:
if (variable1 = variable2) or (variable1 = variable3)
cout<<"whatever";
If so, how?
Or is that just not part of the language?
Name:
Anonymous2008-03-15 6:49
It's not part of the language, you have to emulate the behavior with duplex pipes.
Also note that || has a lower priority and in an or statement, if foo==bar, foo==foobar will not be tested unless the | operator is used. Same if foo!=bar unless the & operator is used instead of &&.
What's the output of :
int i;
i++&&i++||i++&&i++;
std::cout<<i; 3
I do everything I am supposed to do, put the (require 'w3m-load) in the init file, but EMACS refuses to find it. I have explicitly added the exact location of the w3m-load to the load-path, but with no avail. I see that all other files in the w3m dir are byte-compiled, and that might be the case, but EMACS does not compile w3m-load, it just pretends I didn't input the command. Help?
Name:
Anonymous2008-03-15 17:52
Also, normal w3m is working fine, I'm posting from it right now.
>>34
OH FUCK YOU GOOD JOB STEALING MY TURN IN THE DISCUSSION NOW I'LL HAVE TO WAIT FOR THE OTHER GUY'S REPLY TO YOUR SHITTY POST SO I CAN GO ON ASSHOLE.
Name:
Anonymous2008-03-15 19:10
>>26
Shouldn't a simple (require 'w3m) do the trick?