// 汉诺塔.cpp : 定义控制台应用程序的入口点。 // //程序在VS2017写的 #include “stdafx.h”//程序在VS2017写的,需要这个头来预加载 #include <iostream> #include<stdlib.h>//在VS2017中在运行结束后不关闭窗口用
标签: C#
//一个使用 C# 编写的 Hello World! 程序。 using System; namespace HelloWorld { class Hello { static void Main() { Console.WriteLine("Hello World!"); Console.WriteLine("世界,你好!"); //保持窗口在调试模式中打开。 Console.WriteLine("请按任意键继续……"); Console.ReadKey(); } } }
此为代码高亮演示,如上所示。