I have to agree with an earlier post about lesson four Type Conversion I got kind of confused at the end but that`s because my math sucks lol. I get the concept of it all though within reason I shall continue reading and yes I am actually learning
Ok so I did it this way is it wrong (obviously not that much because it worked)
Code:
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int age = int.Parse(Console.ReadLine());
if (age < 16)
{
Console.WriteLine("You can`t enter");
}
else if ((age >= 16) && (age <= 18))
{
Console.WriteLine("You can come in but can`t drink");
}
else if (age >= 19)
{
Console.WriteLine("You can drink as well");
}
}
}
}
Oh and THANK YOU! I definately recommend this to anybody that wants to learn and understand C# because you have explained it very simply and this is the kind of thing I can learn from It`s similar to how I have learnt php/html/javascript
Its good for beginning , but you could help the one who use it with asking him the question how old is he Like this way:
Code:
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
[B][I]Console.Write("How Old Are You ? Answer : ");[/I][/B]
int age = int.Parse(Console.ReadLine());
if (age < 16)
{
Console.WriteLine("You can`t enter");
}
else if ((age >= 16) && (age <= 18))
{
Console.WriteLine("You can come in but can`t drink");
}
else if (age >= 19)
{
Console.WriteLine("You can drink as well");
}
}
}
}
Once again, in a more serious manor I'm going to take a crack at this. Since this time I'm not doing it via videos, revisions can be made an re-uploaded so if any problems are found, please let me know and I'll try to get them fixed as soon as possible. Also, because I'm not doing them via videos, I don't intend for the units or "lessons" to be as rushed.
Feel free to email any questions to . Only material that needs revising should be posted on this thread. Please note, I couldn't care less about spelling, or grammatical content; as long as what is said is understandable. If you think something should be phrased another way, please consider this as a revision and worth posting. For example:"In lesson 4's assignment, the result is wrong. It should be (...)"
Feel free to critique these works in any way, and also post this -- however, I'd appreciate if only constructive criticism is posted.
With that, thank you for your time and anyone who already knows this material who has decided to proof-read my work.
You should open these files with Microsoft Word.
Alternatives: Microsoft Word Viewer: Google Docs: Open Office:
Getting Started:
Unit One - The Basics:
Unit Two - A Broader Horizon:
Unit Three - Frequently used classes:
Unit Four - GUI building:
Unit Five - Welcome to the dark-side (Pointer logic, PInvoke, Memory, etc.):
Not to be completely technical, but the definition of scope should be defined somewhere between 2.1 and 2.2 if it isn't already, couldn't read lesson two of the second unit. (Link was down )
Surprisingly, wikipedia's example is in C#:
The following example shows various scopes declared in the language C#:
Code:
[COLOR="Navy"]namespace[/COLOR] N
{ [COLOR="SlateGray"]// namespace scope, merely groups identifiers[/COLOR]
[COLOR="red"]class[/COLOR] C
{ [COLOR="SlateGray"]// class scope, defines/declares member variables and functions[/COLOR]
[COLOR="navy"]void[/COLOR] f ([COLOR="Red"]bool[/COLOR] b)
{ [COLOR="SlateGray"]// outermost block (function) scope, contains executable statements[/COLOR]
[COLOR="navy"]if[/COLOR] (b)
{ [COLOR="SlateGray"]// inner block scope for conditionally executed statements
// (Note, both block scopes are unnamed.)[/COLOR]
...
}
}
}
}
Programming For Idiots (Tutorial) - In C# 05/25/2013 - CO2 Programming - 188 Replies This tutorial has been superseded by: http://www.elitepvpers.com/forum/co2-programming/88 5939-programming-idiots-c-take-2-a.html
Well for the next week (or so) due to being bored, I've started a video-tutorial called C# Programming for Idiots and yeah, by the end of it I'll demonstrate how to make a conquer server (patch 5016 and before) without the need of mysql, or anything like that; all you need is the Visual C# compiler, and WinRAR (To extract the videos).
Visual C# Compiler:...
Programming for Idiots (Tutorial) C++ 06/11/2012 - CO2 Programming - 20 Replies Yeah, so in my relation to my C# one (http://www.elitepvpers.com/forum/co2-guides-templa tes/148675-programming-idiots-tutorial-c.html), which wasn't the best I felt I'll *try* make for it with this one. I've also got some spare time in between school, from when exams start, and a new Warlords server comes out... so yeah.
Right, so before I post any links to the videos I'd like to point out, so I don't get bitched at by people saying, "this isn't real C++", most of the things I do will be...