diff options
author | Patrick Simianer <p@simianer.de> | 2014-06-14 16:46:27 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-06-14 16:46:27 +0200 |
commit | 26c490f404731d053a6205719b6246502c07b449 (patch) | |
tree | 3aa721098f1251dfbf2249ecd2736434c13b1d48 /ccc/cat_char.cc |
init
Diffstat (limited to 'ccc/cat_char.cc')
-rw-r--r-- | ccc/cat_char.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ccc/cat_char.cc b/ccc/cat_char.cc new file mode 100644 index 0000000..3daf564 --- /dev/null +++ b/ccc/cat_char.cc @@ -0,0 +1,16 @@ +#include <iostream> +#include <string.h> + +using namespace std; + + +int main(void) +{ + char c[] = "c"; + char x[1024]; + string s("s"); + strcpy(x, s.c_str()); + strcat(x, c); + cout << x << endl; +} + |