Probably a simple error.

when the program gets to EmpID, It prints both cout statements under it together. the others display perfectly.
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
  
#include "stdafx.h"
#include <iostream>
#include <stdlib.h>

using namespace std;
void DataEntry();
void PrintReport();

char Name [5][26];
int  Age[11];
int EmpID[11];
char StAdr[50];
char City[25];
char State[2];
int Zip[5];




int main (){
int selection;
{
	cout << "MAILING LIST PROGRAM" << endl;
	cout << "--------------------" << endl;
	cout << "1. Data Entry:" << endl;
	cout << "2. Edit Data" << endl;
	cout << "3. Print Report" << endl;
	cout << "4. Exit Program" << endl;
	cin >> selection;
	cin.ignore(80, '\n');
	

	switch(selection)
	{
	case 1:DataEntry(); 
		break;

	case 2: 
		cout << " you have chosen 'Edit Data'..." << endl;
		break;

	case 3:PrintReport();
		break;

	case 4:
		cout << " You have chosen 'Exit Program'..." << endl;
		break;

	default:
		cout << "Please enter a valid selection.";
		break;

	
	
	
  }
 }

}
void DataEntry()
{
	int count;
	for (count = 0; count <=9; count++)
	{
		cout << "Please Enter Employee Name #" << count + 1 << " :";
		cin.get(Name[count], 26);

		cout << "Please Enter Employee Age #" << count + 1 << " :";
		cin >> Age[count];
		
		cout << "Please Enter Employtee ID #" << count + 1 << " :";
		cin >> EmpID[count];
		
		cout << "Please Enter Employee Street Address #" << count + 1 << " :";
		cin.get (StAdr[count]);
	
		cout << " Please Enter Employee City #" << count + 1 << " :";
		cin.get (City[count]);

		cout << " Please Enter the Employee's State 'abbreviation' #" << count + 1 << " :";
		cin.get (State[count]);


		
		
		cin.ignore(80, '\n');
		
	}
}
The problem is that line 73 leaves a new line character in the stream. Line 76 extracts the new line character and returns immediately. Use ignore (like on line 87) right after line 73.
Topic archived. No new replies allowed.