摘要:
TheC Programming Language says:Scanf stops when it exhausts its format string, or when some input fails to match the control specification.Itreturns a... 阅读全文
摘要:
//Define a delegate type with no return value and no parameters.delegate void PrintFunction();class Test{ public void Print1() { Console.WriteLine("Print1 - instance"); } public static void Print2() { Console.WriteLine("Print2 - static"); }}namespace ConsoleApplicatio... 阅读全文
摘要:
static void SimpleProgram() // A block is a sequence of zero or more statements enclosed by a matching set of curly braces; it acts as a single syntactic statement. { //A statement is a source code instruction describing a type or telling the program to perform an a... 阅读全文
摘要:
//Tells the complier that this program uses types from the System namespace.using System; //Declares a new namespace, called HelloWorld//A namespace is a set of type declarations associated with a name.namespace HelloWorld { //Declares a new class type, called Program class Program { ... 阅读全文