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[]="###########";
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
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/