QUOTE(jayman9 @ 16 Aug, 2008 - 01:49 PM)

Define simple, there are many ways to accomplish the task you are asking about.
What have you tried, so far?
To define simple I must refer to C++ (I really hope it's OK because I am trying to learn these languages at the same time). In C++ you only use cin to store a character in a char variable, then implicitly typecast the char to an int.
The version I am using right now in C# is too complex in my opinion:
CODE
Console.WriteLine("Please enter a character:");
string input = Console.ReadLine();
uint i;
foreach (char c in input)
{
i = Convert.ToUInt32(c);
System.Console.WriteLine("{0}'s ASCII integer value is {1}.", c, i);
}
First of all, it utilizes a string that is "broken down" into its char components which are then converted to integers. I am looking for a procedure similar to the one described above in C++.
This post has been edited by Zeddicus: 16 Aug, 2008 - 02:18 PM