🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.c++
Article #169

Re: Duda IF ?

#169
From: Pascal J. Bourguignon
Date: Mon, 24 Aug 2009 09:28
27 lines
2055 bytes
ELfun <virtial.disco@gmail.com> writes:

> Hola, os agradecer�a que me comentaseis si es correcto esta forma de
> usar IF
>
> if ((var ==3) || (var7 ==7) || (var ==15)){
>  printf ("La variable es 3 , 7 o 15");
> }

Si es correcto.


Yo escribir�a :

    #include <ciso646>
    #include <iostream>

    void f(int var){

       if((var==3) or (var==7) or (var==15)){
           std::cout<<"La variable es 3, 7 o 15."<<std::endl;
       }

    }

-- 
__Pascal Bourguignon__
Technical Details
Message-ID: <7cpralwogm.fsf@pbourguignon.anevia.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!proxad.net!feeder1-1.proxad.net!cleanfeed1-a.proxad.net!nnrp14-1.free.fr!not-for-mail
References: <ba8c3ca3-0dd7-4a24-8633-4737b0b6c25f@k30g2000yqf.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: d2efa0cfdc,706742b0d1c7e367
X-Google-Attributes: gidd2efa0cfdc,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!proxad.net!feeder1-1.proxad.net!cleanfeed1-a.proxad.net!nnrp14-1.free.fr!not-for-mail
Newsgroups: es.comp.lenguajes.c++
Subject: Re: Duda IF ?
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA
      oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9
      033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac
      l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR
      mV+hO/VvFAAAAABJRU5ErkJggg==
X-Accept-Language:         fr, es, en
X-Disabled: X-No-Archive: no
References: <ba8c3ca3-0dd7-4a24-8633-4737b0b6c25f@k30g2000yqf.googlegroups.com>
From: pjb@informatimago.com (Pascal J. Bourguignon)
Date: Mon, 24 Aug 2009 11:28:09 +0200
Message-ID: <7cpralwogm.fsf@pbourguignon.anevia.com>
Organization: Anevia SAS
User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:jL1AtkvsGZl0lH2SvDNWHyGRpng=
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Lines: 27
NNTP-Posting-Date: 24 Aug 2009 11:28:09 MEST
NNTP-Posting-Host: 88.170.236.224
X-Trace: 1251106089 news-2.free.fr 8035 88.170.236.224:58560
X-Complaints-To: abuse@proxad.net