RE: [GD-General] not sure where to post this question... bit C++ implementation specific....
Brought to you by:
vexxed72
From: CAVEY G. <GER...@sg...> - 2004-07-07 08:20:59
|
>its a bit C++ specific, but does anyone know of a way of getting the >"meaning" of this to compile... > >const float ropeLength =3D 12.5f; >const float knotSpace =3D 3.3f; >int array[ ropeLength / knotSpace ]; > >... its sorta meaning we have to break our own coding guidlines.... = (no >#defines unless truly necessary) Hi AFAIK the number of tokens in an array must be an integer . An easy solution could be to compute the division in a temp variable then see if it give us a modulo ,if yes increase by one our result=20 and finally use that result to create the array. GC. ************************************************************************= * Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.=20 Tout message electronique est susceptible d'alteration.=20 SG Asset Management et ses filiales declinent toute responsabilite au = titre de ce message s'il a ete altere, deforme ou falsifie. D=E9couvrez l'offre et les services de SG Asset Management sur le site www.sgam.fr=20 ******** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.=20 E-mails are susceptible to alteration. =20 Neither SG Asset Management nor any of its subsidiaries or affiliates = shall be liable for the message if altered, changed or falsified.=20 ************************************************************************= * |