在学习windows程序设计中,我们希望通过一个完整的程序来学习windows API这是本人在上杨力祥老师的课程是自己写的扫雷程序。
下面是。cpp文件
#include
#include"resource.h"
#include
#pragma comment( lib,"winmm.lib")
//地雷的结构
class Mine{
int x,y;
int value;...
输出如下矩阵:
0000
0111
0122
0123
public static void main(String[] args){
for(int i=0;i<4;i++){
for(int j=0;j=j?j:i);
}
System.out.println();
}
}...
分类:
编程语言 时间:
2014-07-08 19:15:05
阅读次数:
733
ServerMqFramework.h
#import "MqttFramework.h"
@interface ServerMqFramework : MqttFramework
/**
* @brief 得到模块控制器的句柄单例
*
* @param [in] N/A
* @param [out] N/A
* @return void
* @note
*/
+(S...
分类:
移动开发 时间:
2014-07-08 18:29:44
阅读次数:
272
Description
During winter, the most hungry and severe time, Holedox sleeps in its lair. When spring comes, Holedox wakes up, moves to the exit of its lair, comes out, and begins its new life.
Hol...
分类:
其他好文 时间:
2014-07-08 17:28:54
阅读次数:
256
Description
During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, villages connected by tunnels lay in a...
分类:
其他好文 时间:
2014-07-08 16:51:42
阅读次数:
506
1.1. Roles
角色
OAuth defines four roles:
OAuth 设定了四个角色
resource owner
资源拥有者
An entity capable of granting access to a protected resource.
When the resource owner...
分类:
其他好文 时间:
2014-07-08 14:29:22
阅读次数:
227
1.config.properties文件写不进中文,写进去都变成了unicode,解决办法是右键该文件——Properties——Resource——Text file encoding ,选other,我将other改为了UTF-8,这样可以写进去中文,但是读取时又变成乱码了。
2,解决读取乱码:
String content = new String(PropertiesConfig.getProperty("mail.content").getBytes("ISO8859-1"), "utf-8"...
分类:
编程语言 时间:
2014-07-08 13:23:03
阅读次数:
160
Interesting enough to find out the Reader function in Safari is actually Javascript and there are many interesting stuff from the 2000 line code:
* 5 main parts in the file:
* 1. define const
* 2...
分类:
其他好文 时间:
2014-07-08 13:11:46
阅读次数:
469
??
// TODO Auto-generated method stub
//获取本地主机IP对象
InetAddress ip = InetAddress.getLocalHost();
System.out.println(ip.getHostAddress());
System.out.println(ip.getHostName());
//获取其他主...
分类:
编程语言 时间:
2014-07-08 12:58:09
阅读次数:
278
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication1
{
classProgram
{
staticvoidMain(string[]args)
{
inti=10;//值类型
intj=10;//必须初始化
intk;//不需要初始化
int[]iarr={..
分类:
其他好文 时间:
2014-07-08 09:42:06
阅读次数:
221