C++:
#include <mbed.h>
#include <stdio.h>
int main()
{
double Test1 = 1.234;
char* Test1_s = "DIDNT WORK";
Serial PC(USBTX, USBRX);
while(1)
{
//Convert Test1 to Test1_s
PC.printf("%s\n", Test1_s);
while(1);
}
}
Hey guys,
I have a slight problem which I cannot figure out. How do I convert 'Test1' to 'Test1_s'. Im using mbed