Pages: [1]   Go Down
Author Topic: Empty array, assigning, transferring it to a function.  (Read 471 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How do I customize the code if the content would pass from one array to another array 1 to 1?

Code:
char* myArray1 [] = {"Big", "Long", "High"};
myArray2 char [];
myArray2 = myArray1;
Something like this?

How do I transfer the array to another function?

Code:
viod loop () {
myArryInLoop char* [];
...
myArryInLoop = myFunction ();
}

char myFunction () {
char* myArray[] = {"Large", "Small"};
return myArray;
}

How do I clear the array?
Code:
char* myArray[] = {"Large", "small"};  // I'm full.
... myArray // I'm empty
.

Arduino IDE is still very poorly documented, there are these functions at all?
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.cplusplus.com/doc/tutorial/
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 287
Posts: 25681
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

IDE != language
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nick, thank you for this recommendation.

IDE != language
I thought, Arduino is specific. It struggles a bit.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I thought, Arduino is specific. It struggles a bit.
The Arduino and IDE are doing fine. It is you that is struggling.
Logged

Pages: [1]   Go Up
Jump to: