自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 收藏
  • 关注

原创 端午H5游戏反思

最近做了个H5小游戏,很简单,可是依旧遇到了很多问题,在一一解决后,由此反思。

2016-06-05 16:31:52 602

原创 随手记

HTML5 Chrome中用mp4格式只有声音无图像。ogg转化出来又只是音频。最后用webm格式视频解决。目前只测了chrome可以播放。IE说是无效视频。持续更新。。。

2015-04-19 09:40:19 779

转载 Learning Note【UML基础练习-概念类图】

UML类图概念讲解(一)来源:UML建模 发布时间:2013/7/27

2014-05-09 15:19:29 1021

原创 0002[虚构函数]

abstract.h#ifndef abstract_H#define abstract_H#include using std::string;class System {public: virtual string info() = 0; virtual ~System() {}};class Activity {protected: System* syst

2014-04-16 15:53:58 722

原创 0001[Easy Inheritance]

ABCDE.cpp#includeusing namespace std;class C {public: C() { cout << "In C()" << endl; } ~C() { cout << "In ~C()" << endl; }};class E {public: E() { cout << "In E()" << endl; }

2014-04-02 15:51:59 516

原创 1388[quicksum]

键盘输入法害死人 - -fine还是比较简单的题目。通过strlen()函数知道字符串的长度然后就好计算了。include#includeusing namespace std;int main(){ char a[256]; while( cin.getline( a, 256 ) ) { if(a[0] == '#')

2014-03-03 16:45:01 527

原创 1232[eletrical outlets]

主要是理解题目算法是后面的数字之和减去数的个数再加上1.#includeusing namespace std;int main(){ int n, m, i, sum; int a; cin >> n; if( n>=1 && n<=20 ) { while( n-- ) { cin >> m; sum = 0; for ( i =

2014-02-26 14:37:24 632

转载 [HTML]CSS中的class与id区别及用法

我们平常在用DIV CSS制作Xhtml网页页面时,常会用到class 和id来选择调用CSS样式属性。对学习CSS的新手来说class和id可能比较模糊,同时不知道什么时候该用class,什么时候又用id,以及它们用法与限制是怎么样的。接下来我们就来详细了解CLASS与ID基本属性及用法。Class 在程序中称“类”,同时在CSS中也书面语也叫“类”。在CSS样式中以小写的“点”及“.”

2014-01-28 22:01:46 1244

转载 [HTML]display:inline、block、inline-block的区别

display:block就是将元素显示为块级元素.  block元素的特点是:  总是在新行上开始;  高度,行高以及顶和底边距都可控制;  宽度缺省是它的容器的100%,除非设定一个宽度  , , , , 和 是块元素的例子。  display:inline就是将元素显示为行内元素.  inline元素的特点是:   和其他元素都在一行上;  

2014-01-24 21:11:04 1079

转载 [HTML]Css设置img属性让图片水平居中,居左,居右

图片的居中显示css有很多方法,但在很多情况下有的方法无效,这是件很头疼的事情,在研究wordprss程序的时候,无意发现这个系统的官方处理图片居中,居左,居右的css写法,分享一下!比如一个图片的,居左,设置图片的img属性左浮动;居右,设置右浮动;水平居中,设置margin:auto。后来一想,这个办法很不错,应该是一个在很多情况下都有效的方法!一般设置图片属性text-ali

2014-01-24 21:05:21 12923

转载 [HTML]DIV+CSS clear both清除产生浮动

DIV+CSS clear both清除产生浮动我们知道有时使用了css float浮动会产生css浮动,这个时候就需要清理清除浮动,我们就用clear样式属性即可实现。接下来我们来认识与学习css clear知识与用法一、clear语法与结构clear : none | left|right| both2、clear参数值说明none :  允

2014-01-24 21:02:20 876

原创 1145[校门外的树]

做过几次了~#includeusing namespace std;int main(){ int a[10001] = {0}; int m, n; int begin, end; int i; int count = 0; cin >> m >> n; for( i = 0; i <= m; i++ ) a[i

2013-12-04 16:07:43 565

转载 1087[A funny game]

/*当n==1 || n==2时,明显先手必胜。当n==3时,明显先手必败。由于每次只可取1或2个,而取2个时,2个必须相邻,推断有:当n>3时,若n为偶数,先手无论如何取,后手可在先手对称的位置上取同等数量,于是先手必败。若n为奇数,先手取1个时,后手可在先手对称的位置上取2个,之后无论先手如何取,后手都可在先手对称的位置上取同等数量,先手必败。如果先手一开始取2个时,后

2013-12-01 17:08:03 508

原创 1070[Hansel and Grethel]

题目鬼长的。意思就是给出两已知点坐标,还有目的坐标与这两点坐标的角度值,求出目的坐标。一下想到的是坐标系上两线交叉的位置即目的坐标但是再求斜率的时候遇上了麻烦- -于是就找了一份代码研究~下面放代码,然后再解释:#include #include #define PI acos(-1.0) //圆周率int main(){ int t; double x1,

2013-12-01 16:55:46 658

原创 HTML[My 2nd Web]-0001

先mark一下网址- -中国 IT 实验室 : http://www.chinaitlab.com/达内学院 : http://www.yc-edu.org/蓝色理想 : http://job.blueidea.com/[请无视]======================================================下来是学习时间。

2013-11-21 14:15:29 721

原创 HTML[My 2nd Web]-0000

Fine- -第一个网站在实验室做的没什么东西估计只有纪念意义所以就没存回来。那么……就用第二个网站借以还念1st Web好了-----------------------------------------------------------------------------2nd Web的内容主题是什么好呢还没想- -就暂时用做个人网站好了0 0好了1st

2013-11-20 15:20:03 1014

原创 1818[成绩转换]

Description保存学生姓名和成绩,然后通过姓名查询该学生的成绩等级。输入为百分制的成绩,将其转换成对应的等级,具体转换规则如下:90~100 为 A;80~89 为 B;70~79 为 C;60~69 为 D;0~59 为 E;Input输入有多组数据。第一行为数据组数T。对于每组数据,第一行包含两个整数 n(1注意: 数

2013-11-14 16:10:04 561

原创 1817[校园歌手大赛]

Description校歌手大奖赛中每个评委会给每个参赛选手打分,请用类描述每个选手的被评委的评分。选手得分规则为去掉一个最高分和一个最低分,然后计算平均得分,请编程输出某选手的得分。 Input输入数据有多组,第一行为数据组数T每组数据第一行两个正整数 n m (3 接下来 n 行,每行 m 个正整数。每行表示一个评委给 m 个选手的分数,分数为[0,10

2013-11-14 14:33:29 1607

原创 【Chapter 3】基于Chp2的贪吃蛇的例子

稍微看了下还是好难啊啊啊啊啊QAQPlease请对我好一点啊啊啊啊啊TAT 放代码慢慢分析代码依旧是有俱乐部培训的师兄提供什么时候能自己写啊[望天]代码渣画画渣读书废都不知道怎么有勇气活到现在的是么嗯哼? 会写注释的程序员都是好男人/女人#include #include #include #include #define LEFT 0#de

2013-11-09 12:03:34 690

原创 【Chapter 2】基于Chp1的实例详解

写blog好累一定要坚持下去啊TAT代码是给我们培训的师兄的里面的注释已经很详细了特此鸣谢>3 #include #include /* Declare Windows procedure */LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);/* Make the class na

2013-11-09 10:30:05 838

原创 【Chapter 1】入门

刚写了一半的blog结果不小心backspace的时候浏览器后退了伤心到爆。动力大减QAQ但是日子还是要过Blog还是要写TAT[啜泣] 本该上学期就应该开始学的东西被我拖拖拉拉到现在才开始学求一个黄色or蓝色类型人监督红色类型人容易自我放弃TAT 以前用c++/c写出来的总是小黑窗毫无美感可言现在开始学习怎么写出图形界面的程序[ 话说你写这

2013-11-09 09:26:52 629

原创 1815[Distance]

求两个坐标点的距离- -主要是输出保证有两个小数点~ #include#include#include using namespace std;int main(){ int n; double x1, y1 ,x2, y2; double y; cin >> n; while( n-- ) { cin >> x1 >> y1 >> x2 >> y2;

2013-11-07 21:18:59 448

原创 Learning Note【控制小数位和位宽】

#include #include using namespace std; const double d1 = 1.23456789;const double d2 = 12.3456789;const double d3 = 123.456789;const double d4 = 1234.56789;const double d5 = 12345.6789;cons

2013-11-07 17:00:03 796

原创 1798[Bob and Alice]

肚子疼还写了两水题~哼 程序媛好苦逼TAT//这题略捞- -//解法是说一定要走完所有格子的情况//格子总是是单数就一定是Bob赢,双数就一定是Alice赢//其实如果玩家动下脑筋谁赢还是不一定的#includeusing namespace std;int main(){ int n; while( cin >> n && n != 0 ) { if( n

2013-11-07 16:16:58 631

原创 1795[Table Tennis]

这一题题目不难看懂,也好写今天肚子疼TAT#include#includeusing namespace std;int big( int x, int y ){ if( (x-30) * (x-30) + (y-30) * (y-30) < 20 * 20 ) return 1; else return 0;}int middle( int x, int y

2013-11-07 15:53:57 742

原创 Learning Note【queue】

queues are a type of container adaptor(容器适配器), specifically designed to operate in aFIFO context (first-in first-out), where elements are inserted into one end of the container and extracted from th

2013-10-31 15:39:48 572

原创 1510[Mispelling]

DescriptionMisspelling is an art form that students seem to excel at. Write a program that removes the n th character from an input string.*****************************************************

2013-10-17 16:52:07 768

原创 1293[3n+1数链问题]

Description在计算机科学上,有很多类问题是无法解决的,我们称之为不可解决问题。然而,在很多情况我们并不知道哪一类问题可以解决,那一类问题不可解决。现在我们就有这样一个问题,问题如下:1.       输入一个正整数n;2.       把n显示出来;3.       如果n=1则结束;4.       如果n是奇数则n变为3n+1 ,否则n变为n/2;5.    

2013-10-17 16:34:15 913

原创 1157[The hardest problem]

本来看起来好简单的题目但是总是wrong answer!好恼火!下面是对的#includeusing namespace std;int main(){ int n, num, max; while( cin >> n && n ) { cin >> max; for(int i = 1; i < n; i++) { cin >>num;

2013-10-17 16:04:15 692

原创 1147[谁拿了最多奖学金]

题目懒得复制了意思就是根据要求谁拿了最多的奖学金。思路是给学生建立一个struct,然后进行那些麻烦判断。直接放代码#include#include#includeusing namespace std;struct Student{ string name; int end; int cla; char moni; char west; in

2013-10-17 15:52:17 953

原创 1036[Crypto Columns]

DescriptionThe columnar encryption scheme scrambles the letters in a message (or plaintext) using a keyword as illustrated in the following example: Suppose BATBOY is the keyword and our message i

2013-10-17 15:07:10 797

原创 1024[MJ, Nowhere to Hide]

DescriptionOn BBS, there is a familiar term called MJ (short for MaJia), which means another BBS ID of one person besides his/her main ID.These days, a lot of ACMers pour water on the ACMICPC Bo

2013-10-17 14:03:56 658

原创 1014[Specialized Four-Dig]

DescriptionFind and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (base

2013-10-10 16:27:44 775

原创 1007[To and Fro]

DescriptionMo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra ran

2013-10-10 15:27:38 710

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除