Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. "Hello World"

"Hello World"

Scheduled Pinned Locked Moved C#
question
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    binglin
    wrote on last edited by
    #1

    using System; namespace rfid_Beta { class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello World!"); } } } when i tried to execute the above codes, nothing seems to happen. Any ideas why?

    S L G M 4 Replies Last reply
    0
    • B binglin

      using System; namespace rfid_Beta { class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello World!"); } } } when i tried to execute the above codes, nothing seems to happen. Any ideas why?

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      I guess you are creating a windows application, which has no console and therefor nothing happens.


      www.troschuetz.de

      1 Reply Last reply
      0
      • B binglin

        using System; namespace rfid_Beta { class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello World!"); } } } when i tried to execute the above codes, nothing seems to happen. Any ideas why?

        L Offline
        L Offline
        levgiang
        wrote on last edited by
        #3

        Add followed expression at the end Console.Read(); the output screen will delay until you press anykey. using System; namespace rfid_Beta { class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.Read(); } } } le van giang

        1 Reply Last reply
        0
        • B binglin

          using System; namespace rfid_Beta { class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello World!"); } } } when i tried to execute the above codes, nothing seems to happen. Any ideas why?

          G Offline
          G Offline
          Gavin Jeffrey
          wrote on last edited by
          #4

          Try putting in Console.ReadLine(); just below Console.Writeline

          1 Reply Last reply
          0
          • B binglin

            using System; namespace rfid_Beta { class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello World!"); } } } when i tried to execute the above codes, nothing seems to happen. Any ideas why?

            M Offline
            M Offline
            Matt Gerrans
            wrote on last edited by
            #5

            Looks like it should work fine. How are you executing it? In a console window? Since it is a console app, you should be running it from the command line in a console window. If you are running it from the IDE (Visual Studio), then look in the "Quick Console" tab down at the bottom. (That's what is is called in VS.Net Beta 2 -- I think it had a different name previously, but I forget exactly what; anyway, look for a likely output window tab at the bottom of the IDE). By the way, it's "code" not "codes". Matt Gerrans

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups