📄 constraintmap.cpp
字号:
#include "constraintmap.h"ConstraintMap map; /* Okay, ConstraintMap is already included. *//* redundant but harmless if #ifndef wrapped. */#include "constraintmap.h"Constraint * constraintP; /* Using forward declaration from constraintmap.h. */// Constraint p; /* error: incomplete type. */ #include <constraint.h> Constraint q; /* Now it is a complete type. */void ConstraintMap::addConstraint(Constraint& c) { cout << c.name(); /* complete type required here */ }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -