Instructions to unsubscribe from this list at the end of the message
- ---------------------------------------------------------------------
- --envbJBWh7q8WU6mo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, May 19, 2002 at 12:20:45PM +0200, John C. wrote:
> Basically when I try to compile my program, this line:
> =20
> if (nos[a] > ord[b]) && (nos[a] < ord[10])
>=20
> generates this error message: parse error before `('
In C (and C++), 'if' syntax is as follows:
if_clause ::=3D 'if' '(' <condition ')' (<statement> | <block>) [<else_clau=
se>]
You have two anded conditions that are not wrapped in a set of ()'s so
if you change that line to the following, you's make the compiler happy:
if ((nos[a] > ord[b]) && (nos[a] < ord[10]))
- --=20
Mario Xerri
[holo]
- --envbJBWh7q8WU6mo
Content-Type: application/pgp-signature
Content-Disposition: inline
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iD8DBQE8540ldWyluz/3wygRAirjAJ9h1NscainEu7wNwvgMeNnI2nnnkgCfT+xo
P84YIoosnEyDT78n7OZNlmc=
=HIRT
- -----END PGP SIGNATURE-----
- --envbJBWh7q8WU6mo--
- ---------------------------------------------------------------------
You received this message because you are subscribed to the linux
mailing list. If you do not wish to continue receiving this mailing
list, please send a mail message to [EMAIL PROTECTED]
containing only the text "unsubscribe linux"
------------------------------