求结构化设计的HELLO WORLD。

来源:百度知道 编辑:UC知道 时间:2024/05/17 09:04:08
求结构化设计的HELLO WORLD。
补充一个,我不是要各种语言最简单的HELLO WORLD。
我要的是如何把子模块HELLO和子模块WORLD用结构化的方式来串起来

C
#include

int main(void) {
printf("Hello, world!\n");
return 0;
}

C++
#include
using namespace std;

int main() {
cout << "Hello, world!" << endl;
return 0;
}

C#
class HelloWorldApp {
public static void Main() {
System.Console.WriteLine("Hello, world!");
}
}
Java
public class Hello {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}

#include "stdio.h"
#include "StdAfx.h"
CString h()
{
return "hellow";
}
CString w()
{
return "world";
}
void main()
{
CString str;
str.Format("这是第一部分:%s这是第二部分:%s&