Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C# (http://www.programmingforums.org/forum16.html)
-   -   Basic C# tutorials (http://www.programmingforums.org/showthread.php?t=122)

bulio Jul 8th, 2004 8:17 PM

Hi everyone, I have begun to write a series of c# tutorials for beginners. I am doing this to benifit both me (it will help me remember what i've learnt so far) and members of this board.

Preface:

Before we start I have a few tips for programming begginers:


1: Get yourself a friend that knows c# well. Either it be in real life or via msn or irc. I have a few friends on irc and msn that have taught me well.

2: practice the same code. Go over and over every code that you write, put it in a notebook, and do it until you understand what it means and can write it fine.

3: Don't give up. I have never leaned a programming language before, and quit on a few others because I didn't know how. It may be hard at first, but stick to it.

4:Take it step by step. Don't skip over things. for example, I started by printing a simple code that prints a number on your screen. I then moved up to a program that prints the values of 2 numbers in addition. I then changed the code to add/divide/multiply/subtract. Now I am currently writing code that asks the user for 2 numbers and an operation. It then calculates. Once I have that setteled. I will move on.

Now for the good stuff B)

Section A:

Your first program. Ok, now you should be ready. I hope you have a compiler. Either get ms visual c# or Sharp develop (free) google them. you will find some links :)

Now, open a new project and do the following:

:

using System;
class Hello
{
  public class HelloWorld
  {
  public static void Main()
  {
  Console.WriteLine("Hello World! ");
  Console.ReadLine();
  }
  }
}


Now save and compile. There you have it! your first program. It should print hello world to your screen in a dos box, and close when you press enter.

Now that didn't kill you, did it? :P

Look soon for chapter 2 of the tutorial

BlazingWolf Sep 28th, 2004 9:55 PM

To elaborate on SharpDevelop you need to download it, and you need to download the .NET 1.1 Framework, and SDK the SDK runs about 100 meg but I'm not sure about the Framework.

Sorry to make it sound more complicated, but it's really simple.

Matthew_Cpp_Noob Oct 16th, 2004 2:39 PM

yes

Wild cat Dec 31st, 2004 1:09 AM

Thank you for your tutorial

but what is the difference between C++ and C# ?
and what do you suggest for someone, who has some experience with C++ and Java, to learn C#?

Infinite Recursion Dec 31st, 2004 10:34 AM

If you have experience in C++ and Java, the next step would probably be C#... in my opinion.

bingoelzouhery Jan 27th, 2005 4:42 PM

hi every body please i want to know how to make a select statment in Crystal Reports thnx everybody

Infinite Recursion Jan 27th, 2005 4:59 PM

welcome to the forum. you may want to start a -new- thread with your question so more people will see it. you stand a better chance of getting a educated reply.

big_k105 Jan 27th, 2005 5:54 PM

yeah dont hijack someone elses thread please. go into the C# section of the forums and ask there

http://programmingforums.org/forum/f...splay.php?f=16

that link goes to the C# section

thechristelegacy Jan 27th, 2005 5:58 PM

Nice tut Bulio, I just wanted to make a comment that you don't need the .NET sdk to run sharpdevelope, all you need in the .NET framework which is < 20 megs I believe.

Dietrich Feb 6th, 2005 2:52 PM

Quote:

Originally Posted by thechristelegacy
Nice tut Bulio, I just wanted to make a comment that you don't need the .NET sdk to run sharpdevelope, all you need in the .NET framework which is < 20 megs I believe.

Take a look at our sister-site DaniWeb, there is a dude that uses the SharpDevelop IDE and the .Net framework successfully.
http://www.daniweb.com/code/snippet121.html


All times are GMT -5. The time now is 1:29 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC