R
Robert Blackwell
I decided to take a class at the local college here and I'm a little
confused about something.
int age = 5;
Console.WriteLine("You are " + age + " years old");
Previously, I had been reading Learning C# and I learned to type
Console.WriteLine('You are {0} years old",age);
The book I'm using now (required for course) is C# by dissection.
At the end of each project it supposidely "disects" the code etc but I don't
think it's doing a very good job because I feel like if I hadn't already
read 6 chapters of Learning C# I'd be pretty confused.
I didn't see it explain what those plus signs were about.
On another code example it's typed
Console.WriteLine(pennies + " pennies");
Why doesn't it have a plus sign before the variable this time?
Thanks
confused about something.
int age = 5;
Console.WriteLine("You are " + age + " years old");
Previously, I had been reading Learning C# and I learned to type
Console.WriteLine('You are {0} years old",age);
The book I'm using now (required for course) is C# by dissection.
At the end of each project it supposidely "disects" the code etc but I don't
think it's doing a very good job because I feel like if I hadn't already
read 6 chapters of Learning C# I'd be pretty confused.
I didn't see it explain what those plus signs were about.
On another code example it's typed
Console.WriteLine(pennies + " pennies");
Why doesn't it have a plus sign before the variable this time?
Thanks