题意:求2000.1.1(周六)过n天后,是哪年哪月哪日星期几
思路:看到过好多次了这种题,细心点模拟就是了
#include
#include
#include
#include
using namespace std;
char w[7][10]={"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ,...
分类:
其他好文 时间:
2014-05-10 09:28:33
阅读次数:
266
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosDenshion;
CCScene* HelloWorld::scene()
{
CCScene *scene = CCScene::create();
HelloWo...
分类:
其他好文 时间:
2014-05-10 09:26:12
阅读次数:
337
一、创建卡片类
首先想想卡片是一个精灵,那么我们就继承精灵类。然后还要有数字,背景颜色。基本就这些,那么看代码吧。
Card.h代码
#ifndef _CARD_H_
#define _CARD_H_
#include "cocos2d.h"
USING_NS_CC ;
class CardSprite : public Sprite
{
public :
...
分类:
其他好文 时间:
2014-05-10 09:25:46
阅读次数:
280
【题目】
原文:
1.3 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two additional variables are fine. An
extra copy of...
分类:
其他好文 时间:
2014-05-07 08:48:12
阅读次数:
372
Nido Framework at Use - The diagram below shows how Nido Framework reduces the size of your DAL and BLL.
Nido Framework is a reusable and highly generic code library developed using Microsoft ....
分类:
其他好文 时间:
2014-05-07 07:22:40
阅读次数:
333
这是微软官方SignalR 2.0教程Getting Started with Entity
Framework 6 Code First using MVC 5 系列的翻译,这里是第五篇:MVC程序中实体框架的Code
First迁移和部署原文:Code First Migrations and ...
分类:
Web程序 时间:
2014-05-06 13:16:59
阅读次数:
511
题目:穷举法:由于3 1 1和1 3 1 是一种分法,所以也就是说在N个篮子里的苹果数目是
n1 2 using namespace std; 3 int count; 4 int foo(int n,int m,int prei,int
temp[10]) 5 { 6 int i=0,j=...
分类:
移动开发 时间:
2014-05-06 13:08:55
阅读次数:
489
很多道相似的半平面交,但只过了这个,心都碎了。。#pragma
warning(disable:4996)#include #include #include #include #include #include
#include using namespace std;#define maxn 2...
分类:
其他好文 时间:
2014-05-06 12:58:01
阅读次数:
344
今天打算做两道半平面交,一题卡太久了,心都碎了。。。#pragma
warning(disable:4996)#include #include #include #include #include #include
#include using namespace std;#define maxn...
分类:
其他好文 时间:
2014-05-06 12:27:57
阅读次数:
389
using UnityEngine;using System.Collections;using
System.IO.Ports;using System;using System.Collections.Generic;using
System.Threading;public class Por...
分类:
其他好文 时间:
2014-05-06 10:15:17
阅读次数:
5671