linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: vipul kumar samar <vipulkumar.samar@st.com>
To: ratheesh kannoth <ratheesh.ksz@gmail.com>
Cc: "linux-c-programming@vger.kernel.org"
	<linux-c-programming@vger.kernel.org>
Subject: Re: c++ code - not getting compiled !!!!!!!!!
Date: Fri, 29 Jul 2011 12:21:54 +0530	[thread overview]
Message-ID: <4E32588A.5060406@st.com> (raw)
In-Reply-To: <CAGZFCEFvwrbscViED2ZEC3Yh9p4EstTLkxxfQD8FJZS03OpsLw@mail.gmail.com>

On 07/29/2011 11:31 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;
  replace int j = 6;
with
	int j;
	j = 6;
  C++ standard: not able to bypasses declaration with initialization.

Regards
Vipul Samar
>      cout<<  "j = "<<  j<<  endl;
>
>      cout<<  "Outside Sri"<<  endl;
>      return 0;
>
> Sri:
>      cout<<  "Inside Sri"<<  endl;
>      return 0;
> }
> --
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


-- 
I want another RE-WRITE on my CEASAR SALAD!!

      parent reply	other threads:[~2011-07-29  6:51 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
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 [this message]

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=4E32588A.5060406@st.com \
    --to=vipulkumar.samar@st.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).