aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab5/p260.cpp
blob: bef5a3c90254c61dba76d5715e14fb1eb153d215 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//#include "Header1.h"
//
//void GetFirst(char inputFirst[])
//{
//	cout << "Please enter your first name: ";
//	cin >> inputFirst;
//}
//
//void GetLast(char inputLast[])
//{
//	cout << "Please enter your last name: ";
//	cin >> inputLast;
//}
//
//void DispName(char outputFirst[], char outputLast[], char outputFull[])
//{
//	int f = 0, l = 0;
//
//	while (outputLast[l] != '\0')
//	{
//		outputFull[l] = outputLast[l];
//		l++;
//	}
//
//	outputFull[l] = ',';
//	outputFull[l + 1] = ' ';
//
//	while (outputFirst[f] != '\0')
//	{
//		outputFull[f+l+2] = outputFirst[f];
//		f++;
//	}
//
//	cout << "Your full name is " << &outputFull[0] << '.';
//}