المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Difficulties



C# Programming
08-05-2009, 12:34 AM
Hello all,
I have just started programming with c# (2008). The only programming experience that i have ever had is visual basic. I am only 12 years old. I have purchased a c# 2009 for dummies book and that does not seem to help my current problem. My problem is that I am unable to write things. This is what i mean:

Console.WriteLine("Enter your name:");

Above both the brackets i get a red line and a error saying "invalid token '(' in class, struct, or interface member declaration.

I also get the same message for the other bracket.

"invalid token ')' in class, struct, or interface member declaration.

I have tried everything and asked everybody however know one seems to know a solution, I would deeply appreciate if anybody woul help me.

Thank you,
Aman