constraintmap.cpp

来自「压缩包里有教材<<C++模式设计-基于QT4开源跨平台开发框架&gt」· C++ 代码 · 共 17 行

CPP
17
字号
#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 + =
减小字号Ctrl + -
显示快捷键?