Thread: What I dont understand...

  1. #1
    Senor Member nomi's Avatar
    Join Date
    Jan 2004
    Posts
    129

    What I dont understand...

    What is C# all about?

    Is it object-oriented?

    What is .Net all about?

    Where does Microsoft come in?

    Can you compare C# to Java?
    And if yes:
    [1] Is C# better?
    [2] If I already know C should I learn C# or Java?
    [3] If you make applets with C# can they be run on any computer or does it require something like what java needs( java web start ) to run applets?

    And...
    How do you pronounce C#?
    >C = see
    >C++ = see plus plus
    >C# = ? see hash ?
    Last edited by nomi; 01-18-2004 at 03:07 PM.

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    C-sharp.

    Its the evolution of windows programming. Its really neat and cool and much like Java. I prefer it over Java. .NET is a platform, just like Java except more windows-oreinted (altough it has the potential of going multi-platform). Its also more web-oriented with Web Services and ASP.NET pages. You really just gotta go to a bookstore and read a book or google or use the FAQ on this site.

  3. #3
    Registered User Grayson_Peddie's Avatar
    Join Date
    May 2002
    Posts
    96
    Things that you need to get started:

    1. If you have Windows 2000/XP, buy yourself a Visual C# .net but if you have Windows 98/ME, first download [urlhttp://www.microsoft.com/downloads/details.aspx?FamilyId=9B3A2CA6-3647-4070-9F41-A333C6B9181D&displaylang=en].net Framework SDK[/url] and download #develop.

    2. Once you have #develop or Visual C# .net installed, learn C#.

    3. After you learn C#, if you want to get into Windows programming, I recommand you to go get the book called Windows Forms Programming with C#.
    View in Braille.
    http://www.future-gpnet.com/braille.jpg

    Like a bolt out of the BLUE,
    Fate steps up and sees you THROUGH,
    When you wish upon a STAR
    YOUR DREAMS COME TRUE.

  4. #4
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    C# generates managed code. It requires the .NET framework to execute. In this sense, it is exactly the same as Java's bytecode and Java Virtual Machine.

    To best understand C#, is to try to program with it.
    I'd refrain asking "Is C# better than XXX programming language?" because you'd rarely get any decent answers.

  5. #5
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356
    Originally posted by Dante Shamest
    C# generates managed code. It requires the .NET framework to execute. In this sense, it is exactly the same as Java's bytecode and Java Virtual Machine.

    To best understand C#, is to try to program with it.
    I'd refrain asking "Is C# better than XXX programming language?" because you'd rarely get any decent answers.
    Well i dis agree .. Yes byte Code(java) and MSIL(C#,VB.net,C++.net) are using the same concepts but the jvm and JIT compiler arnt the same ...

    The JIT compiles the managed code into native code which is (1's and 0's) ..The .net framework just makes sure that the code executed wont have any memory leaks and will follow a security protocol.. where JVM executes the bytecode ..

    I hope i am making sence .. The difference is Java's native code is bytecode where MSIL isnt the last stop ..

    U can also pre compiler ur codes so it wont have to go throu ur JIT.. isnted it uses pre-jit .. These are basiclly used for handgheld divices .. coz of the minute speed and memory..
    "I wish i could wish my wishs away"

    "By indirections find directions out" -- William Shakespears

    "Do what thou wilt shall be the whole of the law" -- Crowley "THE BEAST 666"

    Mizra -> love = Death...
    RDB(Rocks yooo)..

    http://www.cbeginnersunited.com

    Are you ready for the Trix ???

  6. #6
    Senor Member nomi's Avatar
    Join Date
    Jan 2004
    Posts
    129
    So are you guys saying that a programme written in C# will run on any windows2000/xp machine without requiring any extra software to be installed....unlike jave where it needs java web start or similar installed?

    To make me better understand C#, can you do the following?

    Just using some simple examples...

    To programme in C/C++ you need:
    IDE - Dev Cpp - 4.9.8.3
    --->creates a .exe (dos window) requires windows/dos

    To programme in Java you need:
    Java SDK
    Dr. Java or JCreator LE
    ---->creates an applet (internet explorer) requires Java Virtual Machine

    To programme in C# u need:
    ?________?
    ?________?
    ---->creates an

    Can someone fill in the blanks, comparing C# to Java and C?

    Thx.

  7. #7
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    You don't need JCreator. You just need the SDK. JCreator just provides a visual front end to it.

    To program in C#, you need to the .NET SDK and the C# compiler. Its on Microsoft's website. I can't remember where though. Just do a search and you'll find it. If you want an IDE, use SharpDevelop as Grayson_Peddie already pointed out.

  8. #8
    Registered User Grayson_Peddie's Avatar
    Join Date
    May 2002
    Posts
    96
    Here you are:
    http://www.microsoft.com/downloads/d...displaylang=en

    The filesize is big, so if you're using a modem, it might take a couple of hours to download a file to your computer.
    View in Braille.
    http://www.future-gpnet.com/braille.jpg

    Like a bolt out of the BLUE,
    Fate steps up and sees you THROUGH,
    When you wish upon a STAR
    YOUR DREAMS COME TRUE.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 21
    Last Post: 10-14-2006, 04:38 AM
  2. Need software to help to understand C source code
    By Kincider in forum C++ Programming
    Replies: 1
    Last Post: 09-28-2006, 09:44 PM
  3. Replies: 13
    Last Post: 08-24-2006, 12:22 AM
  4. Need help to understand x["AC"] in the following code
    By jcourcel in forum C Programming
    Replies: 11
    Last Post: 06-06-2006, 01:13 AM
  5. I don't understand K&R example
    By rllovera in forum C Programming
    Replies: 8
    Last Post: 10-25-2004, 10:45 AM