「要成為絕世高手,並非一朝一夕,除非是天生武學奇才,但是這種人…萬中無一」
作者
閆小林
白天搬磚,晚上做夢。我有故事,你有酒麼?
經典:C語言實現元旦快樂,應該沒人看不懂叭#include <stdio.h>//頭文件
int main() //主函數
{
printf("元旦快樂!\n");//輸出語句
return 0;//主函數返回值為0
}
元旦快樂!
--
Process exited after 1.401 seconds with return value 0
請按任意鍵繼續. . .
#include<iostream>//預處理
using namespace std;//命名空間
int main()//主函數
{
cout<<"元旦快樂!"<<endl;
return 0; //函數返回值為0;
}
元旦快樂!
--
Process exited after 0.06104 seconds with return value 0
請按任意鍵繼續. . .
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("元旦快樂!");
}
}
}
public class HappyNew{
public static void main(String []args) {
System.out.println("元旦快樂!");
}
}
#!/usr/bin/python3
print("元旦快樂!")