char array questions [solved]
question1: if have variables like:
what preferred way add value of "keys" @ end of "mystring", "mystring" becomes (in case) "-3.1417" ?
question2: there command assign new string char array ? when using string class there assignment operator how do char array ? need assign every element individually 1 one ?
question3: there command add/remove first or last char in char array ?
code: [select]
byte keys = 7;
char mystring[10] = "-3.141";
what preferred way add value of "keys" @ end of "mystring", "mystring" becomes (in case) "-3.1417" ?
question2: there command assign new string char array ? when using string class there assignment operator how do char array ? need assign every element individually 1 one ?
question3: there command add/remove first or last char in char array ?
take @ strcat strcpy , strlen.
Arduino Forum > Using Arduino > Programming Questions > char array questions [solved]
arduino
Comments
Post a Comment