|
You last visited: Today at 04:33
Advertisement
Programming for Idiots (C#) - Take 2
Discussion on Programming for Idiots (C#) - Take 2 within the CO2 Programming forum part of the Conquer Online 2 category.
02/03/2011, 18:49
|
#76
|
elite*gold: 0
Join Date: Jun 2009
Posts: 239
Received Thanks: 47
|
Quote:
Originally Posted by denominator
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");
}
}
}
}
But anyway,good enough
|
|
|
02/04/2011, 02:15
|
#77
|
elite*gold: 0
Join Date: May 2008
Posts: 49
Received Thanks: 3
|
thank you for making these  They are so easy to understand so please keep making them if u ever find the time to do so! I really appreciate it!
|
|
|
02/07/2011, 19:37
|
#78
|
elite*gold: 0
Join Date: Jan 2011
Posts: 50
Received Thanks: 6
|
Quote:
Originally Posted by PuN|SheR
You mean Console.Readline(); ?
|
No?
|
|
|
02/08/2011, 13:08
|
#79
|
elite*gold: 0
Join Date: Sep 2008
Posts: 559
Received Thanks: 1,461
|
Quote:
Originally Posted by PuN|SheR
You mean Console.Readline(); ?
|
Console.ReadKey();
|
|
|
02/13/2011, 21:30
|
#80
|
elite*gold: 0
Join Date: May 2010
Posts: 133
Received Thanks: 27
|
Buddy, the Lesson II from Unit Two it's not working (link down). Could you please take your time and re-upload it?
|
|
|
02/15/2011, 17:51
|
#81
|
elite*gold: 0
Join Date: Dec 2006
Posts: 47
Received Thanks: 10
|
Quote:
Originally Posted by InfamousNoone
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.):
More to come soon...
|
No webpage was found for the web address:
(unit 2, lesson 2 = error file not found)
|
|
|
02/15/2011, 19:31
|
#82
|
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
|
Quote:
Originally Posted by donady
No webpage was found for the web address:
(unit 2, lesson 2 = error file not found)
|
Works fine for me.
|
|
|
02/24/2011, 21:22
|
#83
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
|
Still waiting for Unit 4 and perhaps even 5?
Or should I have lost hope already?
|
|
|
02/25/2011, 16:53
|
#84
|
elite*gold: 0
Join Date: Mar 2009
Posts: 518
Received Thanks: 238
|
Last edited by InfamousNoone; 12-26-2010 at 13:33.
This are make me sad.
=/
|
|
|
02/25/2011, 22:13
|
#85
|
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
|
I guess his just a little busy
|
|
|
03/06/2011, 16:11
|
#86
|
elite*gold: 0
Join Date: Jun 2009
Posts: 372
Received Thanks: 53
|
unit 2 lesson 2 is no longer available reupload plz
|
|
|
03/13/2011, 04:18
|
#87
|
elite*gold: 0
Join Date: Jun 2009
Posts: 378
Received Thanks: 141
|
I got a copy of them all ill upload them in a couple of days once i return to my home.
|
|
|
03/21/2011, 10:38
|
#88
|
elite*gold: 17
Join Date: Dec 2007
Posts: 1,380
Received Thanks: 1,791
|
Quote:
Originally Posted by InfamousNoone
Unit Three - Frequently used classes:
Unit Four - GUI building:
Unit Five - Welcome to the dark-side (Pointer logic, PInvoke, Memory, etc.):
|
WHERE ARE THOSE UNITS?
WHERE IS LESSON 2 ON UNIT 2?
should we report un-updated thread?
|
|
|
03/26/2011, 08:37
|
#89
|
elite*gold: 0
Join Date: Mar 2011
Posts: 78
Received Thanks: 8
|
unit 2 lesson 2 offline upload again plz
|
|
|
04/07/2011, 08:05
|
#90
|
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
|
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]
...
}
}
}
}
|
|
|
 |
|
Similar Threads
|
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...
|
[RE-OPENING]"Programming For Idiots (Tutorial) - In C#"
09/17/2009 - CO2 Programming - 20 Replies
At start i want to say THIS IS NOT MY GUIDE , GUIDE WAS MADE BY INFAMOUSNONE!!
|
All times are GMT +1. The time now is 04:33.
|
|