ammarqs
1
I am the following statement:
String MachineSerial = "0123456789";
and i want to add this variable to my sprintf:
sprintf(URL, "11.22.33.44/helloworld.php?ID=1700000000%s0000%s:%s:",MachineSerial,senseBuff,TotalCycleBuff);
This method surely does not work. i thought %s is for string, what am i doing wrong here?
%s is for string indeed, not for String Use a string and it's fixed
ammarqs
3
septillion:
%s is for string indeed, not for String Use a string and it's fixed
i tried that. It wont let me. It says string does not name a type.
system
4
Use a string char* MachineSerial = "0123456789";