more than one phone # using char

I have a gsm progect on the go and how could i add another phone # to the line iv tried lots of things but didnt get anywhere this is what i have

char number[]="###########";
char number[2][]={"###########", "++++++++++"};

this is what error it poped up

declaration of ‘number’ as multidimensional array must have bounds for all dimensions except the first

Ooops, sorry char* number[2]={"###########", "++++++++++"};

(But I guess you've googled that and corrected it by now)

ohh ya i googled it and googled it and got nowhere now nothing happens and when i try to make the serial monitor write the "number" this pops up

call of overloaded 'println(char* [2])' is ambiguous

Ok so now it is time to stop asking us to fix the code we can't see. That's really frustrating. Why don't you post the whole code or at least some complete code that we can work with and explain what you want it to do and what it does or doesn't do that is wrong. That will make it a lot easier to help you.

What is the maximum length of an individual phone number? Your examples have 10 and 11 digits. Add one for the terminating null character. Then make the array store elements that size.

char number[][12]={"###########", "++++++++++"};

Delta_G: Ok so now it is time to stop asking us to fix the code we can't see. That's really frustrating. Why don't you post the whole code or at least some complete code that we can work with and explain what you want it to do and what it does or doesn't do that is wrong. That will make it a lot easier to help you.

Really?

"us " and "we" ?

The issue is incorrect initialization of an variable - double dimension array - and you ("us and we " ) need the whole code?

Meaningless time and space occupying posts like yours are really what is frustrating on this forum, and that is coming from a newbie who has been on for barely two weeks.

Well, no. If the original person has this basic problem with their code then there's probably other problems. Just giving them one line to fix won't make the whole program work.

This web page may help explain the problem that Robin was trying to avoid... http://snippets-r-us.com/

232: The issue is incorrect initialization of an variable - double dimension array - and you ("us and we " ) need the whole code?

No, his/her initialization is correct. Now he/she have an issue with how you are using that variable in some print statement. I can't see that print statement or any other statement where they have tried to use this array so I can't tell you how they've used it wrong or where.

232: Meaningless time and space occupying posts like yours are really what is frustrating on this forum, and that is coming from a newbie who has been on for barely two weeks.

Meaningless posts ranting about being asked by someone trying to help for a piece of information that they need in order to help and getting yourself so worked up about some perceived slight on the internet that you forget that we're trying to work on your code is what is really frustrating. Especially when it isn't even that persons code and they don't even understand what the problem is.