1. ## Char

hey, ummm, i wanna know what happens, when a character is entered.....does it turn into a number?? what?? ha, idk, im confused, plz help me

2. or just sit there, and wonder at my stupidity

3. Well, I'm not sure that your question was worded extremely well, but of course a character doesn't become an integer just because.

4. well...hmmm....lets say you enter the letter "a"....what is that to the computer? does it equal "a"?

5. It stays a character untill you cast it or make it into something else
Code:
```char character = 'L'

cout << int(character) << endl;
// this will display the character, in this case 'L' as a number
// if you wanna know what happens try it yourself!```

EDIT:

knowing this will display the ASCII character for 'L' you can make a program that will display the ASCII number for every character from ASCII and also the ones that you have to press 'alt' + [numbers on the number pad] and makes weird characters... so then youll know what combination makes what character.

I had a program like that one time..

6. yea, you see, what im doing is, im trying to make an encrypter, to code a sentence...and also the vice-varsa to decrypt it, of course

im also gonna need to know what a space comes out to be....so that when it is encryted the program doesnt go crazy

7. build the program i told, the one that displays all the numbers from 0 - 255 into ASCII characters.. those are all the ASCII characters. and then youll know what is what..

8. If you want to simply make it unreadable by your friends, output the characters to your file as mrafcho001 said, then create a program to 'decode' the same. I believe you can find what a space is by replacing 'L' with ' '.

EDIT: As he said.

9. Code:
```int main(){
cout<<"Please Enter a sentence no longer than 50 letters, and use only lower-case letters, please:/n";
char sentence(51);
int A;
for(A=0; A>50; A++){
if(sentence(A)=97){
sentence(A)=01;
}
}
}```
that is what im trying to do...well, part of it anyway....it keeps saying sentence cannot be used as a function...but im not trying to...

btw, 97 is the lower-case ansi version of "a"

10. sentence(A) is trying to call sentence() as a function. You want to use it as an array, so you'd use
Code:
`sentence[A]`

11. oh crap, lol, i forgot about that!!! woa....im realy out of it today

12. Don't worry 'bout it... happens to the best of us... Also, you're not setting anything to your array 'sentence'... regardless of what they enter, without something to catch the input, you'll get nothing back... don't forget good ol' cin function.

13. oh yea.....should i use cin for characters though? i dont want numbers
man, im such a noob at this, lol

14. Remeber if they enter a space in the sentece the string will only remember everything before the first space... so use
Code:
```char blah[51];
cout << "input sentece: ";
cin.getline(cin, blah);```
just a note

EDIT:

BTW you should use strings:

Code:
```#include <string>
// blah blah

string sentence;
cout << "input sentece: ";
cin.getline(cin, sentence);

//this will input everything in the string including the spaces..

//O wait.. i am not sure you can access every character in the string separately.. so you might wann stick with arrays..

//God what a pointless 'EDIT:' :)```

15. wow, that helped alot, i almost threw my compter out the window, because i was using just cin.....and it didnt work