About this site
来源:互联网 发布:如何创建app软件 编辑:程序博客网 时间:2024/05/07 19:07
In here we will discuss some program language,like the server script language PHP,shell,Python,Ruby and so on.In addition to this like the browser script language javascript,and the compile language C,C++,Obj-C,Java and so on.Perhaps it has many errors,but I want you can find it and tell us.Thanks.
Below is some code segments which was wrote by the top main language in the internet.All the segment’s result is output a string “Hello World” in one line.
A sample of PHP code:
1
2
3
4
<?php
$a
=
'Hello World'
;
echo
$a
;
?>
A sample of Shell code:
1
2
3
#!/bin/sh
a =
"Hello World"
echo
a
A sample of Python code:
1
2
3
4
# -*- coding: utf-8 -*-
import
sys
a
=
"Hello World"
print
a
A sample of Ruby code:
1
2
a =
"Hello World"
puts a
A sample of JavaScript code:
1
2
3
4
5
<script type=
"text/javascript"
>
function
sayHelloWorld() {
alert(
"Hello World"
);
}
</script>
A sample of C code:
1
2
3
4
5
6
#include <stdio.h>
int
main (
int
argc,
char
**argv)
{
printf
(
"Hello World!"
);
return
1;
}
A sample of C++ code:
1
2
3
4
5
6
#include <iostream>
using
namespace
std;
int
main (
int
argc,
char
**argv)
{
std::cout<<
"Hello World"
<<std::end1;
}
A sample of Obj-C code:
1
2
3
4
5
#import <Foundation/Foundation.h>
int
main (
int
argc,
char
**argv)
{
NSLog(@
"Hello World"
);
}
A sample of Java code:
1
2
3
4
5
public
class
HelloWorld {
public
static
void
main(String args[]) {
System.out.println(
"Hello World"
);
}
}
- About this site
- A good site about EDI
- What is this site?
- hack this site--level6
- hack this site--level 3
- sth about "this"
- something about this week
- about this industry
- about this blog
- thinking about this
- about this pointer
- About this Blog
- 1About This Guide
- Some web site about Network security
- Using VoltDB About This Book
- Will Be write on this site!
- hack this site learn -----> Basic missions
- hack this site--level 2 Notice
- mhook编译为静态库
- 深入剖析WTL—WTL框架窗口分析
- 对spring AOP的理解
- Tiny210(S5PV210) U-BOOT(九)----DDR2工作时序与原理
- POJ 2311 —— 博弈Grundy值
- About this site
- INL文件(c++)
- 内存管理的那些事儿之Obj-C
- Amritapuri 2009 (UValive 4676 ) - Geometry Problem
- ImageView的background属性与src属性的区别
- jQuery 筛选查找
- jQuery 筛选查找
- strtok的用法
- 安装Ubuntu13.10 - Saucy Salamander(活泼的蝾螈)后的首要事情