Help with character array

Hello, I'm new here, I don't know where else to find help with this. I am taking a course in school for computer science, problem is, its long distance and I am supposed to do an assignment which is not explained at all. I understand fully everything that the lessons explain, then they require me to do an assignment that involves doing things that weren't covered anywhere else throughout the entire course. I can't find ANYTHING on the internet, I've spent two days still stuck.

The assignment is to create a program that reads in text that a user inputs until they type in a certain sentence ("The End"). Then, I am required to count occurrences of each letter in the alphabet.

Here is what it should look like in the console:

(Text explaining what to do)
Enter your text:
"Random text that anybody writes
can be multi lined
adnauirhhdfhrj
can enter anything as I just did^
The End"

a:
b:
c:
d:
e:
f:
g:
h:
i:
j:
k:
l:
m:
n:
o:
p:
q:
r:
s:
t:
u:
v:
w:
x:
y:
z:


I cannot for the life of my figure it out.

Here is my code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
#include <iomanip>

using namespace std;
void main()
{
char string[8000];

cout << "Enter your string" << endl;

cin.getline(string,sizeof(string),'\n');

if (string == "The End!")
{
	cout << string << endl;
	cout << "string length = " << strlen(string) << endl;
}


	system("pause");
} //main 



Now, I am not asking somebody to do it for me, I am asking somebody to fully explain how to do this.
Will anybody please help?

If anybody is willing to help me 1 on 1, I can give you an email, and we can IM?
Topic archived. No new replies allowed.