HTML:在屏幕上显示HelloWorld;
<html>
<head>
<title>HelloWorld</title>
</head>
<body>
<p><h1>HelloWorld!</h1></p>
</body>
</html>
<html>
<head>
<title>HelloWorld</title>
</head>
<body>
<p><h1>HelloWorld!</h1></p>
</body>
</html>
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HelloWorld
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
label1.Text = "Hello World!";
}
}
}
#include <QApplication>
#include <QLabel>
int main(int argc, argv[]){
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}
#include <stdio.h>
int main(void){
printf("HelloWorld");
return 0;
}