Thread: Hello World in C#

  1. #1
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742

    Hello World in C#

    I have no idea what I did, but I wrote "Hello World" in C# just now. I used a console workspace. Whooo Hooo!!!!
    I compile code with:
    Visual Studio.NET beta2

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227

    haha!

    I was the first to write it!

    nuh-uh
    Nuh-uh. here's the absolute WORST of the worst:



    Code:
    using System; 
    
    class Hello
    {
    
         static void Main()    
         { 
              Console.WriteLine("Hello, World!");
         }
    
    }

    That's microsoft's new and over-hyped C#. Anyone ever seen Console.WriteLine() before? Where was it? was it file.writeln() in JAVA? Why, yes, I believe it was...

  3. #3
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    Code:
    using System;
    
    namespace CSharpTest
    {
      /// <summary>
      /// Summary description for Class1.
      /// </summary>
      class Class1
      {
        static void Main(string[] args)
        {
          Console.WriteLine("Hello World!");
          //
          // TODO: Add code to start application here
          //
        }
      }
    }
    You might have wrote it but I have the .exe
    I compile code with:
    Visual Studio.NET beta2

  4. #4
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    Okay, what do you use instead of _getch()? It doesn't work!

    C# filename extensions are '.cs' if that wasn't obvious.

    Yeah, I'm lost, but there are lots of tutorials and sample code. The tutorials are classed as simple, intermediate, and advanced. Each language has it's own tutorial.

    There are even 'Visual C# Walkthroughs"

    It also helps you 'port' projects to VS.NET
    Last edited by Witch_King; 08-18-2001 at 09:34 PM.
    I compile code with:
    Visual Studio.NET beta2

  5. #5
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227

    getch! duh!

    MS compilers tend to use getch() instead of _getch()

  6. #6
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    Actually they use _getch(), but I tried both and they didn't work. Remember we are now dealing with C#. When you get the DVD disc tomorrow and install it than find out how to pause the screen. Also what operating system do you have? I think it works with WinME, actually yeah it does but Win2k would be better.
    I compile code with:
    Visual Studio.NET beta2

  7. #7
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227

    :rolleyes:

    I'm not gonna change my OS just to play with VS.NET. Oh wel, I'll find out how to pause tomorrow.

  8. #8
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227

    :rolleyes:

    erhhmm...today, actually

  9. #9
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    thats java alright...

    appearently microsofts still pi--ed about SGI tellin um no to there trying to own java without paying...
    so they made their own called "C#" hoping to caputre the C/C++ audience with the name similarity...

    end result: Virtually no C/C++ users are switching according to the polls only microsoft owned stooges are gonna switch...

    i for one can't stand java and C# is jave in a 'clever' guise

  10. #10
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    You will have to use .NET or else you will be out of business by the middle of next year.
    I compile code with:
    Visual Studio.NET beta2

  11. #11
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227

    oh c'mon...

    admit it: if there was a free compiler for it, you'd DL it just for the sake of trying it. Only difference is you have to go out into the REAL WORLD and pay 5$ for this compiler. Oh well, I'm willing to get it just for the sake of trying it.

  12. #12
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    >You will have to use .NET or else you will be out of business by the middle of next year.<

    we'll see...

    im sure every buisness is going to fire all their C/C++ programmers for the new C# goons i think not...

    there is the issue of SPEED in most programs still and C# is just a new implementation of Java

    and i'm willing to bet it will never replace C/C++... why?
    IT CAN'T! just as Microsoft's/Sun's "Hot Java" failed so shall C#... soon(probably within the next year) C++ shall have the entirity of the capabilities of Java and C# so they will no longer be needed...

  13. #13
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    WinME is not a good operating system, that's all. Since WinXP is comming out that would be the best choice, the .NET framework is built in. You will like VS.NET and once you start to understand the power of .NET than you will join the darkside.
    I compile code with:
    Visual Studio.NET beta2

  14. #14
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    >if there was a free compiler for it, you'd DL it just for the sake of trying it<

    nope... I could ge the compiler "free", and i do have the ability at will, but im not gonna.

    it would be a waste of my high speed bandwidth...

  15. #15
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    im sure every buisness is going to fire all their C/C++ programmers for the new C# goons i think not...
    You would only say this because you have absolutely no understanding of what .NET is. It is not even worth argueing with someone who knows nothing at all.

    Your total and complete ignorance is disgusting.
    I compile code with:
    Visual Studio.NET beta2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The 7 New Wonders of the World
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 36
    Last Post: 12-08-2006, 01:55 PM
  2. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 05:39 PM
  3. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM
  4. Too much to ask ?
    By deflamol in forum C Programming
    Replies: 2
    Last Post: 05-06-2004, 04:30 PM
  5. No More Technology After World War Three
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 09-20-2001, 07:02 PM