编程一个盒子并交换它 [英] programming a box and swapping it

查看:87
本文介绍了编程一个盒子并交换它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试对4×4数组上的实际彩色框进行编程,并为它们分配输入,然后交换框.我该怎么做.我对c ++

I am trying to program actually colored boxes on a 4 by 4 array and assign inputs to them and then swap boxes. How can i go by doing this. i am a little bit familiar with c++

推荐答案

有点熟悉,首先要做的是思考如何按逻辑步骤进行操作并将其写下来.这将使编写代码在某种程度上更容易可视化.它还应帮助您考虑每个正方形应具有的属性.

您知道如何处理Windows消息,如何在Window中绘制彩色正方形,如何编写基本的Windows程序等吗?
The first thing to do is think how to do it in logical steps and write that down. That will make writing the code somewhat easier to visualise. It should also help you to think about the attributes that each square should have.

Do you know how to deal with Windows messages, how to paint coloured squares in a Window, how to write a basic Windows program, etc.?


我喜欢有人试图欺骗家庭作业问题.我的意思是,谁仍然使用C ++开发Windows软件?至少使用MFC.
Sounds to me like someone''s trying to cheat on a homework problem. I mean, who uses C++ to develop Windows software anyways? At least use MFC.


这篇关于编程一个盒子并交换它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆