"Hello World"
-
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?
I guess you are creating a windows application, which has no console and therefor nothing happens.
-
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?
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
-
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?
Try putting in Console.ReadLine(); just below Console.Writeline
-
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?
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