c++ - vs代码不加载向量库的问题
问题描述
我正在做一个在线课程来尝试在 vs 代码中使用 c++ 构建一个地牢爬虫,但是在导入矢量库时它不会让我使用任何矢量命令或功能,我已经检查了我的编译器设置和一切似乎都很好,我一辈子都无法找出问题所在。
#include <vector>
#include "Item.h"
#include "GameCharacter.h"
#ifndef ROOM_H
#define ROOM_H
using namespace std;
class Room
{
public:
int pos;
bool isExit;
vector<Item> items;
vector<GameCharacter> enemies;
Room(int, bool, vector<Item>, vector<GameCharacter>);
void clearLoot();
void clearEnemies();
};
#endif
智能感知似乎根本没有捡起它,但其余的代码似乎很好。
使用mingw在windows上运行vs代码
解决方案
推荐阅读
- python - Python 3 中 sorted 函数与 compare 函数的等价物
- spring-boot - 在 Spring Boot 中运行 Cassandra
- python - Spark-SQL 中 DISTRIBUTE BY 和 Shuffle 的区别
- keras - fit_generator 标志停止迭代问题并且预测图像为空
- html - 如何使第一个 div 比一行中的第二个更宽
- java - oracle和mysql的常用函数?
- elasticsearch - 弹性服务器登录本地主机的位置?
- javascript - 测试期间未为子样式组件提供正确的主题
- ios - 如何在 Swift 中通过蓝牙流式传输音频和发送数据?
- php - 为什么我可以使用 Swift Mailer 从本地主机发送电子邮件,但不能使用 PHP 的 mail() 函数?