[16:01] <qwebirc12673> Is the session on C# tomorrow?
[16:02] <qwebirc12673> no one?
[16:02] <sebner> qwebirc12673: today
[16:02] <qwebirc12673> hey classbot
[16:02] <qwebirc12673> k thanks sebner!
[16:03] <sebner> qwebirc12673: and tomorrow and on friday ;)
[16:03] <sebner> np
[16:04] <oneDoRa> its in 5 more hours right?
[16:04] <sebner> oneDoRa: 20 UTC so yes
[16:05] <oneDoRa> thanks
[18:45] <qwebirc45340> Hi
[20:09] <Raven|Away> isn't it past 20:00 GMT ?
[20:09] <oneDoRa> type GMT time on google :D
[20:10] <Raven|Away> ah of course.. winter/summertime really messes up my idea of international times
[20:11] <oneDoRa> lol
[20:11] <pleia2> it's UTC, not GMT
[20:16] <juju2143> :O
[20:17] <juju2143> it:s 19:17 GMY now
[20:17] <juju2143> GMT*
[20:17] <pedro3005> pleia2, I think UTC = GMT, no?
[20:17] <juju2143> yes
[20:17] <oneDoRa> i thought UTC or GMT dont make much of a difference
[20:17] <juju2143> I think so
[20:17] <oneDoRa> time to google lol
[20:18] <pedro3005> 	7:18pm Wednesday (GMT) - Time in GMT
[20:18] <pedro3005> after googling 'utc time'
[20:19] <oneDoRa> yeh they are the same according to wiki lol
[20:19] <pleia2> ah, ok :)
[20:19] <oneDoRa> minor differences lol
[20:19] <pleia2> anyway, juju2143's class is in 40 minutes
[20:19] <oneDoRa> cool
[20:19] <juju2143> good.
[20:20] <pleia2> and classbot will change the topic when it's time :)
[20:22] <juju2143> lol
[20:43]  * directhex wonders what to expect
[20:44] <zkriesse> directhex: something
[20:44] <zkriesse> always expect something
[20:45] <juju2143> :P
[20:47] <directhex> as long as everything's restricted to sensible advice like "install mono-devel and libgtk2.0-cil-dev and monodevelop", i can go play videogames
[20:47] <zkriesse> meaning?
[20:48] <directhex> meaning "i like videogames more than heckling"
[20:48] <Raven|Away> Why is the class about C# and not C++ or C, as I'd expect for ubuntu.
[20:49] <Raven|Away> I like hacking more then videogames, though I can't say I'm not addicted to both ;-)
[20:49] <zkriesse> hey guys...take this to #ubuntu-classroom-chat
[20:50] <pleia2> zkriesse: this session will be an unmoderated one, by request of the instructor
[20:50] <directhex> Raven|Away, why not? and c# has more representation in a default ubuntu system than c++
[20:50] <zkriesse> pleia2: cool
[20:50] <pleia2> Raven|Away: if we have someone who can teach C++ or C, I'd be delighted to add them to the schedule :)
[20:51] <pleia2> this channel welcomes a huge spectrum of contributors for classes, just because we have one class does not mean we're promoting it to the exclusion of others, it just means that someone volunteered to do it
[20:51] <directhex> three day class though, i'm impressed
[20:53] <pleia2> so *please* if you have interest in doing a class, let me know or drop by #ubuntu-classroom-backstage where the rest of the classroom volunteers hang out :)
[20:55] <directhex> i could do a class on c shar... wait a second o_o
[20:58] <juju2143> hm
[20:58] <juju2143> and im not even sure if it's 3 days or 32767 days
[20:58] <juju2143> or just 1 day
[20:59] <pleia2> juju2143: yeah, just let me know if you need to extend it :) pedro3005 said 3 days was an ok start
[20:59] <juju2143> ok
[20:59] <juju2143> yeah that was some basic estimation
[21:03] <juju2143> oh
[21:03] <juju2143> 20GMT right?
[21:03] <oneDoRa> yeh
[21:03] <juju2143> everyone's ready?
[21:03]  * pleia2 hrms at classbot
[21:04]  * juju2143 spanks ClassBot 
[21:04] <juju2143> oh lol it wasn't opped.
[21:05] <pleia2> it should auto-op, I'll have to look at why it's not behaving
[21:05] <pleia2> but please feel free to begin :)
[21:05] <juju2143> ok.
[21:06] <juju2143> Welcome to Introduction to C# Day 1 (a.k.a. Programmation I)
[21:06] <zkriesse> Karvakalle: thank you
[21:06] <zkriesse> ok pleia2 i'm out
[21:07] <juju2143> :P
[21:07] <juju2143> thx pleia2.
[21:07] <juju2143> As you know, C# is an OOP language (my favorite one :P)
[21:08] <juju2143> Made by Microsoft as part of .NET Framework, there is a free implementation by Novell called Mono.
[21:09] <juju2143> Since everyone here appears to have Ubuntu (hence the channel name), We will use mono.
[21:10] <juju2143> but windows users can take this course as well without any problems.
[21:11] <juju2143> Also, we will need an IDE. We will use MonoDevelop, but any text editor will do.
[21:13] <juju2143> So on Ubuntu, you may want to install mono-complete (2.4.4 on Lucid) and monodevelop (2.2.1 on lucid).
[21:14] <juju2143> If you have questions, you can ask them here or on #ubuntu-classroom-chat.
[21:15] <directhex> (optional: mono 2.6.3 and monodevelop 2.4 for lucid at badgerports.org)
[21:15] <Cr`eme> Hi
[21:15] <Cr`eme> :o
[21:15] <juju2143> directhex, newer versions would be the best, thanks for the link.
[21:16] <Cr`eme> Darn I haven't been on Ubuntu for a long time...
[21:16] <juju2143> Cr`eme, hehe.
[21:16] <Cr`eme> :o
[21:16] <Cr`eme> I will log on now
[21:16] <juju2143> Now we will begin with our first Hello World.
[21:16] <juju2143> Start monodevelop
[21:17] <juju2143> (and Cr`eme, there is logs on irclogs.ubuntu.com)
[21:18] <Cr`eme> ok
[21:18] <Cr`eme> juju
[21:19] <Cr`eme> where do i get monodevelop?
[21:19] <directhex> apt:monodevelop
[21:19] <juju2143> Cr`eme, sudo apt-get install monodevelop mono-complete
[21:19] <Cr`eme> ok thankyou
[21:19] <directhex> (you may want to install libgtk2.0-cil-dev as well, for GUI development, it isn't pulled in automatically on lucid)
[21:20] <Cr`eme> ok
[21:21] <juju2143> yeah directhex, you need this package, or else you would get problems compiling my GTK# example
[21:21] <directhex> (it's pulled in automatically with MD 2.4 packages)
[21:22] <juju2143> ok.
[21:22] <pedro3005> it says package not found in 9.10
[21:22] <Cr`eme> darn this is taking forever
[21:22] <juju2143> pedro3005, hmmm
[21:23] <pedro3005> there is libgtk2.0-dev
[21:23] <juju2143> I have 10.04 right now, I can't say
[21:23] <pedro3005> and libgtk2.0-cil
[21:23] <juju2143> yeah libgtk2.0-dev
[21:23] <pedro3005> ok
[21:23] <directhex> you don't need libgtk2.0-cil-dev on 9.10, it'll just work
[21:24] <pedro3005> alright, thanks
[21:24] <juju2143> Also, you may want to install the documentation, it will be useful.
[21:25] <Cr`eme> i have one more minute left
[21:25] <juju2143> Or you can check them on Microsoft'S website.
[21:25] <juju2143> Cr`eme, ?
[21:25] <Cr`eme> till the instaltion is done
[21:25] <juju2143> ok i'll continue in one minute.
[21:26] <Cr`eme> juju2143, is there going to be a day for C++?
[21:26] <tsimpson> Cr`eme: if someone volunteers to do a session on it
[21:26] <Cr`eme> oh ok
[21:26] <oneDoRa> ok i think i am done, LoL how do i check if i got it right
[21:27] <Cr`eme> ok i am done
[21:27] <juju2143> ok
[21:28] <juju2143> Monodevelop should be in Applications > Programmation > MonoDevelop
[21:28] <oneDoRa> ok done
[21:28] <Cr`eme> where is aplications?
[21:28] <Cr`eme> :O
[21:28] <tsimpson> in Gnome, at the top left of the screen
[21:28] <juju2143> Cr`eme, do you even use ubuntu?
[21:29] <Cr`eme> oh lol
[21:29] <Cr`eme> my bad
[21:29] <Cr`eme> >_>
[21:29] <Cr`eme> sorry
[21:29] <Cr`eme> i had a brain fart
[21:29] <juju2143> lol np.
[21:29] <Cr`eme> but there is no program
[21:29] <Cr`eme> section
[21:29] <juju2143> hmmm
[21:29] <pedro3005> sometimes you need to restart gnome, I guess
[21:29] <juju2143> I have my Ubuntu in French
[21:29] <Cr`eme> :O
[21:30] <juju2143> I'm not sure of the English name.
[21:30] <oneDoRa> it says Programming in my one
[21:30] <pedro3005> Programming here too
[21:30] <juju2143> ok it's Programming.
[21:30] <micahg> Development for me
[21:30] <Cr`eme> darn
[21:30] <Cr`eme> for somereason i didnt install it
[21:30] <Cr`eme> d:
[21:30] <juju2143> Cr`eme, oh lol.
[21:30] <pedro3005> try running from the terminal
[21:30] <Cr`eme> ok
[21:31] <pleia2> Cr`eme: maybe take this to #ubuntu-classroom-chat to get help so juju2143 can move along with the class for others who are participating?
[21:31] <Cr`eme> ok
[21:31] <juju2143> pleia2, yeah good idea.
[21:32] <Cr`eme> wait
[21:32] <Cr`eme> i got it
[21:32] <Cr`eme> it is done installing
[21:32] <juju2143> ok
[21:32] <juju2143> now we'll move on.
[21:32] <oneDoRa> yey!
[21:32] <Cr`eme> oooh nice program
[21:32] <Cr`eme> :o
[21:32] <sopa> I'll program in Dev c++, win32
[21:32] <sopa> rs
[21:33] <tsimpson> if we can move general chat to #ubuntu-classroom-chat and keep this channel less cluttered, that will help things move along
[21:33] <juju2143> sopa, it have c#?
[21:33] <sopa> yes
[21:33] <juju2143> good then.
[21:33] <sopa> I'm in my service computer
[21:33] <sopa> only windows
[21:33] <pedro3005> work*
[21:33] <directhex> monodevelop is available for windows, linux, and mac os. use the os of your choice. any GUI examples will likely relate to how monodevelop behaves.
[21:33] <pedro3005> :)
[21:33] <juju2143> sopa, but I'm not sure it would create a project like in monodevelop
[21:34] <juju2143> also you can use Microsoft Visual Studio.
[21:34] <juju2143> nearly same thing.
[21:35] <sopa> I need to install visual studio here
[21:35] <juju2143> Only difference is the graphical interface creator, MSVC have Windows Forms, while MonoDevelop don't have a Windows forms Editor.
[21:36] <Cr`eme> juju2143, lets start :o
[21:36] <juju2143> There is a free version called Visual C# on MS' website.
[21:36] <juju2143> Now open a new console application.
[21:36] <sopa> good!
[21:37] <juju2143> Day 1: Your first console application.
[21:37] <Cr`eme> where do you open the console application?
[21:37] <Cr`eme> on monodevelop?
[21:37] <oneDoRa> ya
[21:38] <juju2143> in MonoDevelop, File > New > Solution...
[21:38] <directhex> (File/New/Solution/C# on the left, COnsole Project on the right)
[21:38] <juju2143> C# > Console Application
[21:38] <juju2143> yep.
[21:38] <directhex> enter a project name, hit forward
[21:38] <Cr`eme> ok then what
[21:38] <oneDoRa> k
[21:39] <juju2143> and now in front of your eyes you should see  a sample hello world code.
[21:39] <juju2143> Let's analyse it.
[21:39] <Cr`eme> ok
[21:40] <sopa> ok
[21:40] <juju2143> The C#compilers works like in Java, the code is semi-compiled.
[21:41] <pedro3005> It isn't letting me run the code
[21:41] <juju2143> So it compiles C# in an intermediate code, then interpreted in Mono or .NET Framework.
[21:41] <sopa> i will go to my cellphone
[21:41] <sopa> one minute
[21:41] <pedro3005> I click build, it builds without error, but Run is grayed out
[21:41] <juju2143> That's why the same binary will work on both Windows and Linux.
[21:42] <juju2143> pedro3005, hm?
[21:42] <Cr`eme> :o
[21:42] <pedro3005> juju2143, in monodevelop
[21:42] <pedro3005> it doesn't let me run the hello world code
[21:42] <juju2143> pedro3005, Ctrl-F5?
[21:42] <pedro3005> nothing happens
[21:42] <juju2143> check if you have errors in your code
[21:43] <juju2143> in your error list
[21:43] <pedro3005> 0
[21:43] <pedro3005> :/
[21:43] <pedro3005> I didn't alter it one bit
[21:43] <directhex> nothing at all in the "application output" panel?
[21:43] <juju2143> hmmm
[21:43] <oneDoRa> juju do we need to install any special software to run our c# programs on another os?
[21:44] <directhex> oneDoRa, you need any kind of .NET framework - so that'd be Microsoft.NET or Mono on Windows, and Mono on Linux/Mac/BSD
[21:44] <juju2143> oneDoRa, on Windows, .NET Framework (should be already installed in most recent windows)
[21:44] <juju2143> and mono on the rest
[21:44] <oneDoRa> oic
[21:44] <oneDoRa> thanks
[21:44] <pedro3005> directhex, I see no such panel.. it used to work a couple days ago
[21:44] <pedro3005> damn it
[21:44] <juju2143> hmmm
[21:45] <juju2143> pedro3005, let'smove on ok
[21:45] <oneDoRa> pedro3005: it should be right bellow your code
[21:45] <directhex> pedro3005, open a console, go to ~/Projects/solutionname/projectname/bin/Debug and try running "mono projectname.exe" manually
[21:45] <tsimpson> pedro3005: try View -> Application output
[21:45] <juju2143> pedro3005, what oneDoRa directhex and tsimpson said.
[21:46] <directhex> but yes, i agree, support issues in #ubuntu-classroom-chat would help things move along
[21:46] <juju2143> yeah.
[21:46] <juju2143> So you have your hello world program.
[21:47] <juju2143> It outputs "Hello world!".
[21:47] <juju2143> right?
[21:47] <directhex> Hello World!
[21:47] <aduffy70> yes
[21:47] <oneDoRa> yep
[21:48] <juju2143> In the middle of your program you will recognize the "Hello World!" string right
[21:48] <juju2143> Console.WriteLine("Hello World!");
[21:48] <pedro3005> ok now for some reason it runs
[21:48] <pedro3005> :)
[21:49] <juju2143> congrats pedro3005 :P
[21:49] <juju2143> Now you will wonder, Console.WriteLine would be used for outputting things in the console.
[21:49] <sopa> Voltei :)
[21:49] <juju2143> You are right.
[21:51] <juju2143> So, you know functions, WriteLine is the name, Console is the class in which WriteLine is
[21:51] <juju2143> strings are in ""s
[21:51] <directhex> WriteLine is a static method (function, or whatever your favourite language calls it) on the System.Console object. It only needs to say "Console" because the "using System;" line at the top of the code makes it implicit
[21:51] <juju2143> and you have to finish lines with ;
[21:51] <pedro3005> sopa, english only in here
[21:52] <juju2143> directhex, of course
[21:52] <juju2143> lol you would help me.
[21:52] <sopa> I forgot how to talk "eu voltei"
[21:53] <juju2143> Yes, WriteLine is actually called a method because it's in a class.
[21:53] <PieWai> ok
[21:53] <juju2143> So we have a namespace, a class and a method in your code.
[21:54] <juju2143> You see the Main method? We would call it Whateveryoucalledyourproject.MainClass.Main(args)
[21:55] <juju2143> But if you use using like on the top of the file we will actually call it MainClass.Main(args)
[21:55] <juju2143> and inside the same class as MainClass we will call it only Main()
[21:56] <juju2143> So OOP is useful to organize your code.
[21:57] <juju2143> It's kinda handy.
[21:57] <juju2143> So on the types.
[21:57] <juju2143> You see in front of Main the keyword int.
[21:58] <sirmacik> heh... maybe it'll sound little weird but so far it's syntax looks for me like a mix of perl and python...
[21:58] <juju2143> So C# is strongly typed, so your function must return an integer.
[21:59] <tsimpson> I have "public static void Main"
[21:59] <juju2143> sirmacik, yeah, could be
[21:59] <juju2143> tsimpson, yeah
[21:59] <juju2143> right it's void
[21:59] <juju2143> I changed it for mai
[21:59] <juju2143> int
[21:59] <juju2143> errata: you have void
[22:00] <juju2143> so void tells the fuction that it would return nothing
[22:00] <juju2143> If you would have int you will have to write a return 0; line at the end.
[22:03] <juju2143> So you have variables.
[22:04] <juju2143> At the beginning of the method, the line after Main(), write this: int Answer = 42;
[22:05] <juju2143> then modify your WriteLine so it would look like this: Console.WriteLine(Answer);
[22:06] <Pa_trick17> public static void Main()
[22:06] <Pa_trick17>   {
[22:06] <Pa_trick17>     System.Console.WriteLine("Hallo Welt!");
[22:06] <Pa_trick17>   }
[22:06] <Pa_trick17> between Main() and { ?
[22:06] <sirmacik> Pa_trick17: yes
[22:06] <directhex> Pa_trick17, after the {
[22:06] <sirmacik> oh
[22:06] <sirmacik> :d
[22:06] <Pa_trick17> ah, ok thx
[22:06] <sirmacik> sorry
[22:06] <directhex> Pa_trick17, the {} says "everything  inside here is part of the Main method"
[22:07] <juju2143> yeah
[22:07] <juju2143> after the {
[22:07] <pedro3005> what does "static" mean? I forgot
[22:07] <juju2143> pedro3005, well see that later.
[22:07] <juju2143> Disregard this for now.
[22:09] <juju2143> Now compile and run, you should see 42.
[22:14] <juju2143> So.
[22:14] <juju2143> You know the variables. You can put anything in a variable.
[22:15] <juju2143> string var = "some string";
[22:15] <juju2143> int Answer = 42;
[22:15] <directhex> anything that's of the correct type for that variable, i.e. you can't put "foo" in an int
[22:15] <juju2143> You can even put your MainClass in a variable.
[22:15] <juju2143> But you can put a string in a int variable.
[22:16] <pedro3005> juju2143, the variable type would be what then?
[22:16] <juju2143> string
[22:16] <pedro3005> I mean when you put a class in a variable
[22:16] <juju2143> the calss name
[22:16] <juju2143> MainClass var = new MainClass();
[22:17] <directhex> pedro3005, variables are objects. "int" is shorthand for "System.Int32". "string" is shorthand for "System.String". Everything's an object, including your class - and that object's type is whatever the class is called
[22:17] <PieWai> When would you use a cinstruction like that?
[22:17] <Pa_trick17> sry - you CAN or you CAN'T put a string in a int variable?
[22:17] <tsimpson> Pa_trick17: can't
[22:17] <juju2143> Yep, everything is object.
[22:18] <directhex> Pa_trick17, you can put an integer in a string object, but not the reverse
[22:18] <juju2143> directhex, you can?
[22:18] <directhex> juju2143, sure. "42" is technically text as well as a number
[22:18] <juju2143> yeah.
[22:19] <juju2143> but "42" is technically a string, no matter what's in the ""
[22:19] <juju2143> while 42 is a number
[22:19] <directhex> yes, that's correct
[22:19] <PieWai> sure
[22:19] <tsimpson> if I change "int" to "string": Main.cs(32,32): Error CS0029: Cannot implicitly convert type `int' to `string' (CS0029) (helloworld)
[22:19] <juju2143> Yep, they can't convert int to string.
[22:20] <juju2143> You would use method in Convert class
[22:20] <juju2143> such as Convert.ToString()
[22:22] <juju2143> So here's the principal types you would use in your code: bool, byte, sbyte, char, decimal, double, float, int, uint, long, object, short, string
[22:23] <directhex> you can actually do this in other ways too, e.g. remember your "Answer" integer? Answer is a System.Int32 object, and as that tgype of object, you can call its "ToString()" method, i.e. Answer is an int, Answer.ToString() is a string
[22:23] <juju2143> ulong, ushort
[22:23] <juju2143> And generally, every thype have his ".ToString()" method
[22:23] <juju2143> like directhex said
[22:24] <directhex> because all objects inherit (look up inheritance in object-oriented programming) from System.Object, and Object has a ToString()
[22:24] <juju2143> you know heritage? Every type I said herits from object
[22:24] <juju2143> inherits from object
[22:24] <juju2143> and Object have a ToString()
[22:24] <directhex> (reference: http://msdn.microsoft.com/en-us/library/system.object.tostring.aspx)
[22:24] <juju2143> Lol, ninja'd by directhex.
[22:27] <juju2143> Now next thing is if/else
[22:27] <juju2143> Ithink everyone who already knows a language knows if/elses.
[22:28] <juju2143> It's very simple, like this example:
[22:28] <juju2143> if(Answer = 42) {
[22:28] <juju2143> Console.WriteLine("The answer is 42");
[22:28] <juju2143> }else{
[22:29] <juju2143> Console.WriteLine("The answer is NOT 42");
[22:29] <juju2143> }
[22:29] <juju2143> woops
[22:29] <juju2143> first line should be if(Answer == 42) {
[22:29] <juju2143> 2 equal signs
[22:31] <juju2143> so try changing 42 to something else
[22:31] <juju2143> it will change the output
[22:33] <pedro3005> juju2143, okay
[22:33] <pedro3005> it works good
[22:34] <juju2143> good
[22:34] <juju2143> now for loops
[22:34] <juju2143> also simple
[22:35] <juju2143> for(int i = 0; i < 100; i++)
[22:35] <juju2143> {
[22:35] <juju2143> Console.WriteLine(i);
[22:35] <juju2143> }
[22:35] <juju2143> compile and run.
[22:35] <pedro3005> good, works the same as C
[22:36] <pedro3005> juju2143, but you can declare int i inside the loop?
[22:36] <juju2143> yeah, if you already know C or Java, should be easy to catch.
[22:36] <juju2143> pedro3005, no
[22:36] <pedro3005> you just did
[22:36] <pedro3005> for(int i = 0;
[22:36] <juju2143> I declared i in the for instruction
[22:37] <pedro3005> C complains when I do that
[22:37] <tsimpson> pedro3005: it's like C99
[22:37] <juju2143> so the for instruction is separated in 3
[22:37] <juju2143> int i = 0; is executed before the loop
[22:37] <tsimpson> in normal ANSI C, you need to declare int i _before_ the loop instruction
[22:38] <juju2143>  i < 100; is evaluated each time it loops
[22:38] <tsimpson> int i; for(i=0; i<100; i++) { ... }
[22:38] <juju2143> tsimpson, in C# you can declare it in the for
[22:38] <tsimpson> which makes things much easier :)
[22:38] <juju2143> mhm.
[22:41] <juju2143> also you can do the same with a while loop
[22:41] <juju2143> int i = 0;
[22:41] <juju2143> while(i < 100)
[22:41] <juju2143> {
[22:41] <juju2143> Console.WriteLine(i);
[22:41] <juju2143> i++;
[22:41] <juju2143> }
[22:42] <pedro3005> does do - while work too?
[22:44] <tsimpson> seems to work, yes
[22:45] <juju2143> pedro3005, yes
[22:49] <juju2143> So you know everything neede to do a console application
[22:50] <juju2143> If you type Console. tou will se a list of all the functions in that class, you can play with that
[22:50] <juju2143> *you will see
[22:51] <juju2143> also notice the Main(string[] args)
[22:51] <juju2143> args is actually an array
[22:51] <juju2143> args[0] is the first argument
[22:51] <juju2143> args[1] is the second and so on
[22:53] <tsimpson> quick question, how can I tell the length of the array?
[22:55] <juju2143> array.Length
[22:55] <tsimpson> thanks
[22:55] <juju2143> also to do a array variable, you would do string[] var = { "a", "b", "c" };
[22:56] <juju2143> or string[] var;
[22:56] <juju2143> var[0] = "a";
[22:56] <juju2143> and so on
[22:56] <pedro3005> is there something like strcpy()?
[22:57] <juju2143> strcopy?
[22:57] <pedro3005> okay
[22:57] <juju2143> string string1 = string2
[22:57] <pedro3005> so you can do
[22:57] <pedro3005> string[] var = "Hello, World!";
[22:57] <pedro3005> ?
[22:57] <juju2143> yes
[22:57] <juju2143> wait, no.
[22:57] <juju2143> you have to remove the []
[22:58] <pedro3005> hm...
[22:58] <pedro3005> why?
[22:58] <juju2143> or put "Hello Word" in var[0]
[22:58] <juju2143> because "Hello, World!" is NOT an array
[22:58] <pedro3005> :o
[22:59] <pedro3005> okay
[22:59] <pedro3005> does C# have pointers?
[22:59] <juju2143> no
[22:59] <pedro3005> I'm liking it already
[22:59] <juju2143> in fact yes
[22:59] <pedro3005> :/
[22:59] <juju2143> but you would have unsafe things
[22:59] <tsimpson> pedro3005: string is a class, not an array of char ;)
[23:00] <pedro3005> so var in this example is an array of strings
[23:00] <tsimpson> similar to the C char** or char* argv[]
[23:01] <pedro3005> I see
[23:01] <pedro3005> :D
[23:01] <juju2143> So now you have everything to do some cool console application
[23:01] <juju2143> you have Console.ReadLine to read lines
[23:01] <juju2143> string variable = Console.ReadLine();
[23:02] <juju2143> then Console.WriteLine(variable);
[23:03] <juju2143> Homework today: do something wit that.
[23:03] <pedro3005> Okay :)
[23:03] <juju2143> Tomorrow we'll see GTK# apps.
[23:03] <juju2143> And we'll do more than one function.
[23:04] <juju2143> Try/catch, converts, etc.
[23:04] <pedro3005> god damn it, stopped working yet again
[23:05] <juju2143> O_o
[23:05] <juju2143> so see ya at the same hour tomorrow.
[23:05] <juju2143> at 20-22UTC.
[23:05] <aduffy70> Thank you, juju2143
[23:08] <juju2143> You're welcome.