Mongo like FRANK MASINGILL, Mongo write back:
Hi Frank,
Sorry for butting in but I saw this and had to respond to it. Am I right to
assume that this is to go into an array? If so I believe that you are trying
to assign 2 values (a character strings and float number) to an interger type
array. Wouldn't this work better if you were to assign it to a Record data
type since you are combining two different data types?
FM> void main() {
FM> ---------------
FM> ---------------
FM> const int NumSizes = 3;
FM> const int NumTops = 5;
FM> const ChoiceDescription const Sizes[NumSizes] = {{"Small", 10},
FM> {"Medium", 12}, {"Large", 14}};
FM> const ChoiceDescription const Tops[NumTops] = {{"Pepperoni",1.8},
FM> {"Sausage",2.1}, {"Onions", 0.5}, {"Extra Cheese",1.0},
FM> {"Olives", 0.7}};
FM> -------------------etc.
FM> On the two last "const" lines I am getting the error " 'const' has
FM> already been included in function main() "
Usually if the compiler hits a heavy fail it can't continue due to calls to
functions it will never reach due to the nature of the error.
I hope this helps in the short term. I tried to get what you were trying to
do with this fragment but with out more info (single pizza or a single pizza
in a list of pizzas, even a menu selection with prices) it could go into
bout
a zillion different directions.
Later.....
Virgil Garness ==Mongo wuz here==
... Al's Force BBS == Down Not out == Fido 2:2501/206 Xnet 99:1/724
--- Platinum Xpress/Win/Wildcat5! v2.0
---------------
* Origin: Al's Force BBS 44-1638-532437 Fido 2:2501/206 (2:2501/206)
|