初学VC的人最容易遇到的问题,就是VC6在编译的时候,linking.....,一直就这样link下去,打击了多少渴望掌握VC的人。
网上的所谓vc集成sp6版本,由于没有测试完全,留下了bug,导致非常容易link卡死,由于这些版本自称集成了sp6,这造成了假象迷惑了非常多的vc学习者。
解决vc6卡死的办法就是打上官方的原版VC6sp6补丁|VS6sp6补丁。下载地址如下:请看清你需要的是中文还是英文
英文版地址:
http://download.microsoft.com/download/1/9/f/19fe4660-5792-4683-99e0-8d48c22eed74/Vs6sp6.exe
简体中文版地址:
http://download.microsoft.com/download/e/c/9/ec94a5d4-d0cf-4484-8b7a-21802f497309/Vs6sp6.exe
http://hi.baidu.com/qq1901920/blog/item/b83d9eecd45d952263d09f53.html
Essential C++第一章1.1
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string user_name;
- cout << "please enter your first name and last name:";
- cin >> user_name;
- cout << '/n'
- << "hello ,"
- << user_name
- << "... and goodbye! /n";
- return 0;
- #include <iostream>
#include <string>
using namespace std;
int main()
{
string first_name, last_name;
cout << "please enter your first name and last name:";
cin >> first_name;
cin >> last_name;
cout << '/n'
<< "hello ,"
<< first_name
<< " "
<< last_name
<< "... and goodbye! /n";
return 0;
}