if problem

From: NONE (freddyb_at_adelphia.net)
Date: 02/10/04

  • Next message: Josh Sebastian: "Re: if problem"
    Date: Mon, 09 Feb 2004 18:17:04 -0500
    
    

    Why is it this if statement always goes to the else segment? As you
    can see I have it so that the else portion outputs what is in command,
    so if it does not have what I think it should I am aware. I have code
    prior to this that does put "666" in command, and when the else
    statement runs it tells me that is what is in command. Why is it that
    the else still runs instead of the if??

    if(command == "666")
            {
                            
                    cout << "shutting down!\n";
                            
                    system("pause");
                            
                    shutdown();
                            
                    
            }else{

                    cout << endl << "Command is " << command << endl;
                            
                    cout << "Did not receive shutdown command.\n";
                            
                    system("pause");
                    
            } // End if/else statement


  • Next message: Josh Sebastian: "Re: if problem"

    Relevant Pages

    • Re: Printing AFP stuff to non-IPDS printer
      ... I scrapped the whole page segment idea and recreated the logo as ... I'm new to this cool AFP ... STRAFPU can conver a pc file with a IOCA image ... of type *PAGSEG you must use CRTPAGSEG command. ...
      (comp.sys.ibm.as400.misc)
    • Re: Printing AFP stuff to non-IPDS printer
      ... AFP Printer driver can produce page segments or overlays: you said you got a page segment. ... STRAFPU can conver a pc file with a IOCA image inside to a page segment. ... To convert a stream file that holds a page segment structure, to an object of type *PAGSEG you must use CRTPAGSEG command. ... The same procedure can be used to create an overlay, just configure the AFP driver to output as page overlay and use CRTOVL command. ...
      (comp.sys.ibm.as400.misc)
    • Re: latency socket after inactivity
      ... sending or receiving data by means of socket (1 or two 2 seconds delay after the command will be received instead of a few ms ... ... Nagle only takes effect when there is an ACK outstanding--that is the previous segment we sent has not been ACKed; after 15 minutes you can be pretty sure everything is idle! ...
      (microsoft.public.win32.programmer.networks)
    • Re: JUST A BIKER
      ... The average biker is far more likely to be aware of ... the road and be in far greater command of his machine than is a cager. ... But that's not the segment of riders I'm talking about. ... My run-ins with poorly trained and inattentive motorists seems ...
      (rec.autos.sport.nascar)
    • Re: Whats the error?
      ... > I'd like to delete files from the command line but the following doesn't ... > SEG_A SEGMENT ... > ORG 100H ... > int 21h ...
      (alt.lang.asm)