summaryrefslogtreecommitdiff
path: root/3p40.cpp
blob: 76629fa935c9a703e4ab4f5868203fab03e18bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>
#include <vector>
#include <cstring>

/*
 *
 * 3.40
 *
 * Is this overkill?
 */

int main () {

	char ch1[] = "Hello, ";
	char ch2[] = "World!";
	char chfinal[1000];
	chfinal[0] = '\0';
	std::strcpy(chfinal, ch1);
	std::strcat(chfinal, ch2);
	std::cout << chfinal << std::endl;
	return 0;
}