VB programmer's C #

zhaozj2021-02-08  220

VB programmer's C #

A program usually has a master to indicate the portal of the program, and its name is typically main. Below is a simple main function without the return value, the function name is a void type:

Using system;

Class test

{

Public static void main ()

{

Console.writeline ("Hello Universe!");

}

}

Please see a simple return integer value, the function name is the int type:

Using system;

Class test

{

Public static int main ()

{

Console.writeline ("Hello Universe!");

Return (0);

}

}

转载请注明原文地址:https://www.9cbs.com/read-3259.html

New Post(0)