用C语言,C++,Java程序输出一个字符!急

来源:百度知道 编辑:UC知道 时间:2024/06/24 23:39:45
C语言,C++,Java程序输出"Hello word"字符,代码只写最重要那句就行,三个程序要三句.谢谢了,急用.
代码尽可能详细些.

java:
public class Test2 {
public static void main(String[] args)
{
System.out.println("Hello Word");
}
}

C:
#include<stdio.h>
main()
{
printf("Hello Word");
}
C++:
#include "iostream.h"
main()
{
cout << "Hello Word";
}

C语言版:
#include<stdio.h>
int main()
{
printf("hello world !");
return 0;
}

C++版:
#include<iostream.h>
int main()
{
cout<<"hello world!"<<endl;
return 0;
}

java版:
public class test{
public static void main(String args[])
{
System.out.println("hello world !");
}
}

C语言:
#include <iostream>
int main()
{
printf("Hello, world!\n");
return 0;
}

C++语言: