作业:1、二进制,八进制,十进制之间的相互转换2、测试转义字符3、测试强制类型转换4、测试赋值运算符 = += -= *= /= %= >= ^= |=
&=number += 2;5、测试不同类型数字的运算(+ - * /)结果6、从键盘输入一个实数,求其绝对值。7、从键盘输入三个数,按升序输出。...
分类:
编程语言 时间:
2014-06-09 00:49:30
阅读次数:
339
这部分讨论决策理论与 PGM 的关系,一个主要的思路就是将决策与 PGM 的 inference
完美的融合在一起。MEU为了引入决策理论中的 maximum expected utility
原则,我们先引入一些概念:lottery(彩票)是一个结果与概率的映射关系,用户对不同的 lottery ...
分类:
其他好文 时间:
2014-06-08 23:29:23
阅读次数:
433
Given n points on a 2D plane, find the maximum
number of points that lie on the same straight line.思路:(1)点1到点n
(a)以点1为参考点,求“点1”与“点2到点n”各个斜率下点的个数; (求出直...
分类:
其他好文 时间:
2014-06-08 22:30:56
阅读次数:
266
Transmission Control Protocol,
TCP是一种面向连接的、可靠的、基于字节流的传输层通信协议.应用层向TCP层发送用于网间传输的、用8位字节表示的数据流,然后TCP把数据流分区成适当长度的报文段(通常受该计算机连接的网络的数据链路层的最大传输单元(MTU:Maximum
...
分类:
Web程序 时间:
2014-06-08 22:27:46
阅读次数:
341
//定义二维平面上的点struct Point{ int x; int y;
Point(int a=0, int b=0):x(a),y(b){}};bool operator==(const Point& left,
const Point& right){ return...
分类:
其他好文 时间:
2014-06-08 22:26:17
阅读次数:
357
A simple problemAccepted : 30Submit : 303Time
Limit : 15000 MSMemory Limit : 655360 KBProblem DescriptionThere is a simple
problem. Given a number N. ...
分类:
其他好文 时间:
2014-06-08 21:14:04
阅读次数:
226
Happy Number
Accepted : 110
Submit : 263
Time Limit : 1000 MS
Memory Limit : 65536 KB
Problem Description
Recently, Mr. Xie learn the concept of happy numb...
分类:
移动开发 时间:
2014-06-08 05:44:33
阅读次数:
264
A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means th...
分类:
其他好文 时间:
2014-06-08 04:05:14
阅读次数:
315
因为工作需要,再加上个人爱好,经过分析整理出短彩应用中从发送至收到附件为音频的彩信的下载,预览,播放整个流程,给大家一起分享。
第一步,添加附件:ComposeMessageActivity类下,addAttachement();
private void addAttachment(int type, boolean replace) {
// Calculate th...
分类:
移动开发 时间:
2014-06-08 03:54:59
阅读次数:
244
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2014-06-08 02:12:04
阅读次数:
216