一个“hello”程序,请教。。
Akagg 2004-11-12 09:40:22 //child.cpp
char str[] = "Hello World!\n";
//main.cpp
#include <iostream>
extern char *str; // The string to print
int main()
{
std::cout << str << std::endl;
return (0);
}
为什么在主程序得不到指向数组的指针???
问题何在?如何最简单改动最少??