Click here to Skip to main content
14,332,494 members
   

C#

 
GeneralRe: New to Coding New to Code Project Pin
Mycroft Holmes24-Jun-19 13:10
memberMycroft Holmes24-Jun-19 13:10 
GeneralRe: New to Coding New to Code Project Pin
Eddy Vluggen24-Jun-19 13:27
mveEddy Vluggen24-Jun-19 13:27 
AnswerRe: New to Coding New to Code Project Pin
Mycroft Holmes24-Jun-19 13:11
memberMycroft Holmes24-Jun-19 13:11 
AnswerRe: New to Coding New to Code Project Pin
Ger Hayden24-Jun-19 21:51
memberGer Hayden24-Jun-19 21:51 
AnswerRe: New to Coding New to Code Project Pin
Richard MacCutchan24-Jun-19 22:24
protectorRichard MacCutchan24-Jun-19 22:24 
AnswerRe: New to Coding New to Code Project Pin
#realJSOP26-Jun-19 6:32
mve#realJSOP26-Jun-19 6:32 
AnswerRe: New to Coding New to Code Project Pin
Gerry Schmitz26-Jun-19 8:53
mveGerry Schmitz26-Jun-19 8:53 
QuestionWhat is wrong with my code in Visual Studios Pin
Member 1451091724-Jun-19 7:46
memberMember 1451091724-Jun-19 7:46 
Hi. I am a beginner with C# and tried using visual studios to make a simple program.

Console.WriteLine("What is your name: ");
string name = Console.ReadLine();

Console.WriteLine("What is your age: ");
string age = Console.ReadLine();

Console.WriteLine("What is your occupation: ");
string occupation = Console.ReadLine();

Console.WriteLine(? "{name}, is {age} years of age and he works as a {occupation}.");

The error message is CS1001 (Identifier expected) for the last line of code.
Anyone knows what is wrong?
AnswerRe: What is wrong with my code in Visual Studios Pin
Richard Deeming24-Jun-19 8:39
mveRichard Deeming24-Jun-19 8:39 
GeneralRe: What is wrong with my code in Visual Studios Pin
Member 1451091724-Jun-19 9:12
memberMember 1451091724-Jun-19 9:12 
AnswerRe: What is wrong with my code in Visual Studios Pin
OriginalGriff24-Jun-19 19:56
protectorOriginalGriff24-Jun-19 19:56 
AnswerRe: What is wrong with my code in Visual Studios Pin
Ayush Singroul28-Jun-19 10:16
memberAyush Singroul28-Jun-19 10:16 
Questionadministratively scalable Pin
Tara1123-Jun-19 9:46
memberTara1123-Jun-19 9:46 
AnswerRe: administratively scalable Pin
Dave Kreskowiak23-Jun-19 10:07
mveDave Kreskowiak23-Jun-19 10:07 
AnswerRe: administratively scalable Pin
OriginalGriff23-Jun-19 19:58
protectorOriginalGriff23-Jun-19 19:58 
QuestionPerformance vs scalability Pin
Tara1123-Jun-19 6:34
memberTara1123-Jun-19 6:34 
AnswerRe: Performance vs scalability Pin
Dave Kreskowiak23-Jun-19 9:36
mveDave Kreskowiak23-Jun-19 9:36 
AnswerRe: Performance vs scalability Pin
#realJSOP26-Jun-19 6:34
mve#realJSOP26-Jun-19 6:34 
GeneralRe: Performance vs scalability Pin
Tara1126-Jun-19 9:37
memberTara1126-Jun-19 9:37 
QuestionWhy is this not CLS-Compliant? Pin
#realJSOP20-Jun-19 4:51
mve#realJSOP20-Jun-19 4:51 
AnswerRe: Why is this not CLS-Compliant? Pin
OriginalGriff20-Jun-19 5:02
protectorOriginalGriff20-Jun-19 5:02 
GeneralRe: Why is this not CLS-Compliant? Pin
#realJSOP20-Jun-19 5:06
mve#realJSOP20-Jun-19 5:06 
GeneralRe: Why is this not CLS-Compliant? Pin
OriginalGriff20-Jun-19 5:21
protectorOriginalGriff20-Jun-19 5:21 
GeneralRe: Why is this not CLS-Compliant? Pin
#realJSOP20-Jun-19 5:24
mve#realJSOP20-Jun-19 5:24 
QuestionAm I Remembering Wrong? Pin
#realJSOP20-Jun-19 4:34
mve#realJSOP20-Jun-19 4:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.