博文
简易更改windows xp开机画面(2006-08-14 08:13:00)
摘要:1.制作/选用一张图片,将其存为640*480,16色bmp格式,放入windows 目录,重命名为Boot.bmp
2.更改boot.ini(可在系统-属性里更改),在"....Microsoft Windows XP Professional" /fastdetect......" 后加入“/bootlogo /noguiboot”
重启即可
注意:
1、生成的图片大小应该是150k
2、此方法仅适用于WindowsXP和Windows 2003
3、Boot.ini是隐藏和只读的。先去掉它的只读属性才可以保存。
boot.ini应该类似于
引用内容:
[boot loader]
timeout=0
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn /bootlogo /noguiboot
......
用java模拟生产者与消费者问题(2006-04-25 22:05:00)
摘要:package lly;
public class Box
{
private int value;
private boolean available = false;
public synchronized int get()
{
while (available == false)
{
try
{
// 等待生产者写入数据
wait();
} catch (InterruptedException e)
{
// TODO: handle exception
&n......
申请二维空间(2006-01-01 22:00:00)
摘要://**************申请二维空间**************************
m_ImageData=new BYTE*[m_nHeight];//检索表
*m_ImageData=new BYTE[m_nHeight*m_nWidth];//存储空间
for(int k=0;k<m_nHeight;++k)
{
m_ImageData[k]=m_ImageData[0]+m_nWidth*k;//配置检索表
}//for
//****************************************************......
利用VC实现图像的特殊显示效果(2006-01-01 21:58:00)
摘要:利用VC实现图像的特殊显示效果
一、"浮雕"图像
"浮雕"效果是指图像的前景向前凸出背景。所谓的"浮雕"处理就是指图像上的一个像素和它左上方的那个像素之间差值的一种处理过程。
为了使图像保持一定的亮度并呈现灰色,在处理过程中为这个差值加了一个数值为128的常量。
当设置一个像素值的时候,它和它左上方的像素都要被用到,为了避免用到已经设置过的像素,应该从图像的右下方的像素开始处理,下面是实现的VC源代码:
int i,j,buf;
for( i=pBi->biHeight-1; i>=2; i--)
{
for( j=width-1; j>=2; j--)
{
//"浮雕"处理
buf=*(pD+i*width+j)-*(pD+(i-1)*width+j-1)+128;
if(buf>......
匈牙利符号表示法的前缀代码指导说明书(2006-01-01 21:54:00)
摘要:匈牙利符号表示法的前缀代码指导说明书
_______________________________________________________________________________
前缀 | 数据类型(基本类型)
_______________________________________________________________________________
c | 字符
by | 字节(无符号字符)
n | 短整数和整数(表示一个数)
i | 整数
x,y | 短整......
常见位图类型(2006-01-01 21:53:00)
摘要:‘BM’ : Windows 3.1x, 95, NT, …
‘BA’ :OS/2 Bitmap Array
‘CI’ :OS/2 Color Icon
‘CP’ :OS/2 Color Pointer
‘IC’ : OS/2 Icon
‘PT’ :OS/2 Pointer
......
约瑟夫环程序(顺序实现)(2005-05-03 22:48:00)
摘要:本程序用顺序表实现,相对复杂一点了
#include
#include
#include
#define ok 1
#define error 0
#define overflow -2
typedef int status;
typedef struct node{
int number;
int password;
}node;
typedef struct sqlist{
node *elem;
int length;
int listsize;
}sqlist;
void initlist(sqlist &l,int n) /* 初始化函数*/
{ int i; node *newbase;
newbase=(node *)malloc(n*sizeof(node));
if(!newbase) exit(overflow);
l.elem=newbase;
printf("Input %d password.\n",n);
for(i=0;i......
约瑟夫环程序(2005-05-03 22:47:00)
摘要:此程序用链表实现,比较简单.
#include
#include
#include
#define overflow -2
#define ture 1
#define False 0
typedef struct circle{
int number;
int password;
struct circle *next;
}circle,*linkcircle;
void initcircle(linkcircle &l,int n) /*初始化循环单链表*/
{ int i; linkcircle p,newbase;
newbase=(linkcircle)malloc(sizeof(circle));
if(!newbase) exit(overflow);
p=l=newbase;
printf("Input %d passwords:\n",n);
for(i=1;i......
表达式求值程序(2005-05-03 22:42:00)
摘要:以字符序列的形式从终端输入语法正确的,不含变量的整数表达式.实现对算术四则混合运算表达式的值.利用栈来实现.
#include
#include
#include
#define true 1
#define false 0
#define ok 1
#define error 0
#define overflow -2
#define STACK_INIT_SIZE 100
#define STACKINCERMENT 10
typedef int status;
typedef int operandtype;
typedef char operatortype;
typedef struct sqstack{
int *base;
int *top;
int stacksize;
}sqstack;
char a[8][8]={
{'\0','+','-','*','/','(',')','#'},
{'+','>','>','<','<','<','>','>'},
{'-','>','>','<','<','<','>','>'},
{'*','>','>','>','>','<','>','&......