-
December 5th, 2012, 03:00 PM
#1
Help with this CPP please. What could be wrong here?
char optionPackageCodeArray [5] = {'BB','SP','NP','HE','UC'};
double packageCostArray [5] = {1500,3250,4575,7500,5220};
string packageNameArray [5] = {"Base","Sport","Intermediate level","Luxury","User Specified"};
Last edited by Mogesi; December 6th, 2012 at 08:53 PM.
-
December 5th, 2012, 03:08 PM
#2
Re: Help with this CPP please. What could be wrong here?
Lots of things. Assuming you're talking about the compilation errors,
Code:
char optionPackageCodeArray [5] = {'BB','SP','NP','HE','UC'};
A char can hold one and only one character. You're trying to stick two in there.
There are other errors after that, but start there.
-
December 5th, 2012, 03:16 PM
#3
Re: Help with this CPP please. What could be wrong here?
Thanks for the insight. Let me check it out again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|