Thread: void main????

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    void main????

    Hi,

    I just downloaded the SharpDevelop (from Ken's link in the sticky post with all the links)
    I created my first hello applicatoin. Well, the wizard did, I didn't do anything. And I noticed that it says void Main.
    Is this normal with C#?
    My guess is not because the OS still will expect an integer as return value.
    So is the wizard wrong or am I ?
    Code:
    using System;
    
    class MainClass
    {
    	public static void Main(string[] args)
    	{
    		string test;
    		Console.WriteLine("Hello World!");
    		test=Console.ReadLine();
    		Console.WriteLine(test);
    	}
    }
    Also, what book do you recomend? nvoigt posted some great links (thanks nv ), but what about books? I'm not that good with learning from tutorials, I need a books to learn something


    thanks

    --Maes
    Last edited by maes; 10-01-2003 at 05:24 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 10:25 AM
  2. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 02:20 PM
  3. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  4. need help with handelling multiple source files
    By DarkMortar in forum C++ Programming
    Replies: 38
    Last Post: 05-26-2006, 10:46 PM
  5. getting a headache
    By sreetvert83 in forum C++ Programming
    Replies: 41
    Last Post: 09-30-2005, 05:20 AM