delorie.com/archives/browse.cgi | search |
From: | Weiqi Gao <weiqigao AT a DOT crl DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: These parse errors are really getting annoying... |
Date: | Mon, 12 Jan 1998 19:20:32 -0600 |
Organization: | Spectrum Healthcare Services |
Lines: | 18 |
Message-ID: | <34BAC160.584F24BA@a.crl.com> |
References: | <19980113002900 DOT TAA01746 AT ladder02 DOT news DOT aol DOT com> |
NNTP-Posting-Host: | a116001.stl1.as.crl.com |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
HackerOC3 wrote: > > printf("y value?"); > int y; > scanf(" %d", &y); > printf("c value?"); > int c; > scanf(" %d", &c); > > what's wrong there? "Parse error before int" > what gives????!!!!! In C, you need to declare all variables at the top of a block - before any executable statements. -- Weiqi Gao weiqigao AT a DOT crl DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |