65,208
社区成员
发帖
与我相关
我的任务
分享
void func(){
using namespace std;
……
}
#include <string>
typedef struct roommate
{
std::string name;
int age;
} gay;
而在dormitory.cpp文件里写
#include "dormitory.h"
using std::string;
dormitory::dormitory {
.
.
.
}
#include <string>
typedef struct roommate
{
std::string name;
int age;
}gay;