转自:图像处理:黑白效果(灰度处理)1.效果图:2.实现原理:图像灰度化就是使色彩的三种颜色分量R、G、B的值相同,由于颜色值的取值范围是[0,255],所以灰度的 级别只有256种,即灰度图象仅能表现256种灰度颜色,常用有3种处理方法:*最大值法(Maximum):R=G=B=Max(R,G,B...
分类:
其他好文 时间:
2014-06-25 17:53:20
阅读次数:
420
第五章的最后一个练习题,5-8.要求:/*输入一个华氏温度。以double类型读入温度值,并将它作为一个参数传递给用户提供的函数Temperatures()。该函数将计算对应的摄氏温度和绝对温度,并以小数点右边有两位数字的精度显示这三种温度。它应该用每个值所代表的温度刻度来标识这三个值。Celsiu...
分类:
其他好文 时间:
2014-06-25 16:52:36
阅读次数:
241
程序清单6.5 compflt.c是比较浮点数是否相等的例子。原程序如下:// cmpflt.c -- 浮点数比较#include #include int main(void){ const double ANSWER = 3.14159; double response; printf("Wha...
分类:
其他好文 时间:
2014-06-25 15:58:30
阅读次数:
273
GRAITEC.ADVANCE.CONCRETE.V8.1IkonScience.RokDoc.V5.3.2IMSI.DesignCAD.3D.MAX.v20.0IMSI.TurboCAD.Professional.Platinum.v17.0Lighting.Technologies.Photop...
分类:
其他好文 时间:
2014-06-25 15:53:17
阅读次数:
308
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m...
分类:
其他好文 时间:
2014-06-25 15:26:21
阅读次数:
203
http://johndyer.name/native-fullscreen-javascript-api-plus-jquery-plugin/HTML5 is great, but when it was first released, one of the big complaints wa....
分类:
编程语言 时间:
2014-06-25 14:49:46
阅读次数:
229
相信大家做网页时经常会碰到大分辨率的图片会把表格涨破以致漂亮的网页面目全非,但只要使用以下的CSS语句即可解决。 该CSS的功能是:大于600的图片自动调整为600显示。上面的代码在使用的过程中发现第一次打开页面时图片会缩到很小,需要刷新页面才能实达所设置的大小,故又找到了以下代码:img{max-...
分类:
Web程序 时间:
2014-06-25 11:22:04
阅读次数:
324
题目链接:点击打开链接
题意:
给定一个数n
问把这个数拆成多个不相同的fibonacci数
有多少种拆法
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define ll __int64
#define N 90
ll n ,m...
分类:
其他好文 时间:
2014-06-25 08:44:51
阅读次数:
177
1、连接
SQL*Plus system/manager
2、显示当前连接用户
SQL> show user
3、查看系统拥有哪些用户
SQL> select * from all_users;
4、新建用户并授权
SQL> create user a identified by a;(...
分类:
数据库 时间:
2014-06-25 07:33:46
阅读次数:
365
【题目】
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find the total sum of all root-to-leaf numbers.
For example,
1
...
分类:
其他好文 时间:
2014-06-25 07:32:27
阅读次数:
209