RK07
2010-01-28 16:18:08 UTC
class Program
{
static void Main(string[] args)
{
string sName;
Console.WriteLine("Write your name:");
sName = Console.ReadLine("Name:" + sName);
Console.Read();
}
}
It doesn't work however. Theoretically, you should be able to type in your name and other data and the program would later show it all, together. My main problem is that I keep getting the error message "Cannot implicitly convert string to void" or "No overload method for ReadLine takes '1' arguments." Can you help me?