summaryrefslogtreecommitdiff
path: root/c,cc/cat_char.cc
blob: 3daf564a79710c4efe9474d9891df7c05f0705f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}