![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
文章平均质量分 66
flower1360
这个作者很懒,什么都没留下…
展开
-
c++实现魔方小游戏(qt开发)
此为大三的c++大作业使用c++实现,并使用qt开发成果如图所示目前只有三阶与四阶的实现并且新建功能存在些许bug,重复新建会导致游戏崩溃调试功能介绍:点击菜单栏的公式->调试功能此功能可以长段的执行代码例如:完好的三阶魔方执行完公式后点击提交就可以执行R U R_ U_操作注意:每个公式之间使用空格隔开,逆时针使用_表示,没有写旋转180°的操作,也就是不能R2公式如下:意如其名此外还有为四阶魔方写的FM1 FM1_等等,此类只能四阶魔方使原创 2020-06-21 22:53:59 · 1564 阅读 · 4 评论 -
C3848 具有类型“const MyCompare”的表达式会丢失一些 const-volatile 限定符以调用“bool MyCompare::operator ()(int,int)”
今日在使用c++的set容器时,通过仿函数改变set容器的默认排序规则,但提示以下:C3848 具有类型“const MyCompare”的表达式会丢失一些 const-volatile 限定符以调用“bool MyCompare::operator ()(int,int)”#include <iostream>using namespace std;#include <set>class MyCompare {public: bool operat...原创 2020-05-24 11:18:28 · 610 阅读 · 0 评论 -
qt报错:static assertion failed: Signal and slot arguments are not compatible
原因为信号的参数与槽函数参数不对应通常发生在槽函数有参数时槽函数:#include "student.h"#include <QDebug>Student::Student(QObject *parent) : QObject(parent){}void Student::treat(){ qDebug()<< "请老师吃饭";}vo...原创 2020-04-17 14:31:52 · 12813 阅读 · 5 评论