vc++ 定义string类型变量时 提示未定义标示符"string"
#include"stdafx.h"#include<iostream>#include<string>externintmyfirst();intmain(){stri...
#include "stdafx.h"
#include <iostream>
#include <string>
extern int myfirst();
int main()
{
string switch_on = "myfirst";
switch (switch_on)
{
default:
break;
}
myfirst();
//int a;
//cin >> a;
system("pause");
return 0;
} 展开
#include <iostream>
#include <string>
extern int myfirst();
int main()
{
string switch_on = "myfirst";
switch (switch_on)
{
default:
break;
}
myfirst();
//int a;
//cin >> a;
system("pause");
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询