Strings
This commit is contained in:
parent
74318f3bda
commit
9e63ff3f67
2 changed files with 13 additions and 0 deletions
5
strings/Makefile
Normal file
5
strings/Makefile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Only define if needed:
|
||||||
|
# TARGET = main.elf
|
||||||
|
# SRCS = main.cc
|
||||||
|
|
||||||
|
include ../config.mk
|
8
strings/main.cc
Normal file
8
strings/main.cc
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#include <iostream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
std::string a = "KEK";
|
||||||
|
a.append(std::to_string(10));
|
||||||
|
std::cout << a << std::endl;
|
||||||
|
}
|
Loading…
Reference in a new issue