Function to Use String
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:906bda113ceb
- Parent:
- 0:624614538ca8
diff -r 624614538ca8 -r 906bda113ceb main.cpp --- a/main.cpp Fri Nov 13 08:02:37 2015 +0000 +++ b/main.cpp Fri Nov 13 08:12:39 2015 +0000 @@ -1,17 +1,11 @@ #include "mbed.h" #include <string> -//------------------------------------ -// Hyperterminal configuration -// 9600 bauds, 8-bit data, no parity -//------------------------------------ Serial pc(SERIAL_TX, SERIAL_RX); - int main() { - //char* txt[]={"Hello\n","World","My Name is Liews"}; - + string txt("Hello World My Name is Liews"); string str;