From: Srinivasa T N <seenutn@linux.vnet.ibm.com>
To: ratheesh kannoth <ratheesh.ksz@gmail.com>
Cc: "\"Steve Graegert (スティーブ)\"" <graegerts@gmail.com>,
linux-c-programming@vger.kernel.org
Subject: Re: c++ code - not getting compiled !!!!!!!!!
Date: Fri, 29 Jul 2011 12:14:43 +0530 [thread overview]
Message-ID: <4E3256DB.50308@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAGZFCEGO2JipOu=MeHTjau1ocXa_r483bfL5ViBiXmhAT3m1hw@mail.gmail.com>
On 07/29/2011 11:56 AM, ratheesh kannoth wrote:
> #include<iostream>
>>>
>>> using namespace std;
>>>
>>> int main()
>>> {
>>> int i;
>>>
>>> cout<< "Enter value of i "<< endl;
>>> cin>> i;
>>>
>>> if (i< 5)
>>> goto Sri;
>>>
>>> int j = 6;
Changing it to two lines will make it work:
int j;
j = 6;
Regards,
Seenu.
>>> cout<< "j = "<< j<< endl;
>>>
>>> cout<< "Outside Sri"<< endl;
>>> return 0;
>>>
>>> Sri:
>>> cout<< "Inside Sri"<< endl;
>>> return 0;
>>> }
next prev parent reply other threads:[~2011-07-29 6:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-29 6:01 c++ code - not getting compiled !!!!!!!!! ratheesh kannoth
[not found] ` <CALC0UT=JhhuEc2MNL9_PrhtgkF5eAqNgB8vtQ5ZK09DF8S8edA@mail.gmail.com>
2011-07-29 6:26 ` ratheesh kannoth
2011-07-29 6:44 ` Srinivasa T N [this message]
2011-07-29 6:26 ` Srinivasa T N
2011-07-29 6:40 ` Steve Graegert (スティーブ)
2011-07-29 6:55 ` ratheesh kannoth
2011-07-29 7:00 ` Srinivasa T N
2011-07-29 6:51 ` vipul kumar samar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E3256DB.50308@linux.vnet.ibm.com \
--to=seenutn@linux.vnet.ibm.com \
--cc=graegerts@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=ratheesh.ksz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.