visual c++ 2008
刚装的这个软件,以前用6的。 谁告诉我怎么建立一个小的程序,希望提供详细的步骤。 实现vc++6.0的如下语句就行: #include <iostream.h> void main() { cout<<1; }
vc6.0以后必须声明使用标准命名空间(using namespace std;如果你用的话),否则像cin>> cout>...;std::cout<<...;等等,其他操作和vc6.0一样 的。
File->New->Project Project Types->Other Languages->Visual c++ Templates->Win32 Console Application 选择你想要的项目名称和路径,ok后自动生成的cpp稍作改动即可 #include "stdafx.h" #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout << "Hello World"; }
问:挺简单的一C函数,不过我是初学者,暂时还不会写,请好心人多多帮忙!
答:int mystrlen(char *str) { int n = 0; while (*str) { n++; str++;} return n; } voi...详情>>