本文共 477 字,大约阅读时间需要 1 分钟。
觉得有必要把C++再学一下,上学的时候学的是C++,VC6 后来就一直放下了,那已经是差不多十年前的事了。 今天从头学吧,C++做CAD二次开发是非常有前途的。 一、新建Visual Studio C++中的空项目 二、右击源文件目录,添加C++文件(.cpp) 输入以下代码,ctrl + shift + B 生成一下。 在命令行下进入debug目录,运行FirstCpp.exe
代码 /* C++ Hello World */ #include < stdio.h > #include < iostream > int main() { printf( " Hello World " ); // 2000年我上大学的课本写法 puts( " Hi " ); // 只用来输出字符串,没有格式控制 puts( " hi "" greatverve "" ok " ); // 直接连接字符串 std::cout << " Hello World " << std::endl; // c++中新定义的要加上命名空间std return 0 ; } 转载地址:http://vwhwm.baihongyu.com/