指针变量与间址访问能够存放地址值的变量成为指针变量声明:int *p;//在变量说明语句中,*是表示指针类型,也就是用来说明p是存放地址的变量int a=10;p=&a;coutusing namespace std;int main(){long int a=10,b=20,temp;long i...
分类:
编程语言 时间:
2015-04-10 13:22:20
阅读次数:
188
一、由于在压力测试执行中,出现一个-10803的错误 ,为解决这个错误,重新设置的环境变量,在次执行错误,这个问题解决了,但另外一个问题出来了,LR,打开脚本编辑器老提示找不到TEMP目录,当时没有想到会是设置 环境变量的问题,结果重新安装LR 11,在破解时,提示license security ...
分类:
其他好文 时间:
2015-04-10 13:06:38
阅读次数:
372
格式说明符的语法对齐说明符 正数表示右对齐,负数表示左对齐。如果要表示的字符数比对齐说明符中指定的数少,会用空格填充;如果多了,就会被忽略掉。1 static void Main(string[] args)2 {3 var temp = 1...
分类:
其他好文 时间:
2015-04-09 19:42:37
阅读次数:
126
use master
go
if exists(select * from sysdatabases where name = '学生管理系统')
drop database 学生管理系统
create database 学生管理系统
on primary
(
name = '学生管理系统_data',
filename = 'E:\temp\学生管理系统_data.mdf',
...
分类:
数据库 时间:
2015-04-09 08:51:53
阅读次数:
208
这道题目是一道动态规划的题目,动态规划的点不在面积上,而在每个矩形可左右扩展的坐标上。找出每个矩形最左边和最右边比它高的矩形的下标,最后求面积即可;#include"stdio.h"__int64 h[100010],ans,temp;int l[100010],r[100010];int main...
分类:
其他好文 时间:
2015-04-09 00:47:24
阅读次数:
121
// demo4.cpp : 定义控制台应用程序的入口点。
// #include "stdafx.h"
#include using namespace std; void swap1(int &a,int &b) //使用引用
{ int temp; temp=a; a=b; b=temp;
}...
分类:
其他好文 时间:
2015-04-08 19:41:27
阅读次数:
126
背景: 下面是获取文件的行数的方法: 一个文件如果知道有几行的话,就可以控制获取一定的行数的数据,然后放入数据库。这样不管的读取大文件的性能,还是写入数据库的性能,都能得到很大的提高了。 下面是获取文件的行数的方法 $temp_file = 'error.log';$fp =...
分类:
Web程序 时间:
2015-04-08 19:37:22
阅读次数:
165
c#加密解密研究加密:usingSystem;usingSystem.IO;usingSystem.Security.Cryptography;publicclassExample19_9{publicstaticvoidMain(){//CreateanewfiletoworkwithFileStreamfsOut=File.Create(@"c:\temp\encrypted.txt");//CreateanewcryptoproviderTripleDESCryptoServicePro..
受《CSAPP》P453启发,想实际的看看ELF文件的内容,所以做了简单的尝试,希望不虚此行。
采用的程序demo是:
swap.c
extern int buf[];
int *bufp0 = &buf[0];
int *bufp1;
void swap()
{
int temp;
bufp1 = &buf[1];
temp = *bufp0;
...
分类:
其他好文 时间:
2015-04-07 21:39:56
阅读次数:
221
创建相同的对称密钥非常容易。使用相同的 KEY_SOURCE、ALGORITHM 和 IDENTITY_VALUE 密钥选项创建的对称密钥将是相同的。
-- 创建测试
use [Temp]
go
-- drop table EnryptTest
create table EnryptTest
(
id int not null primary key,
E...
分类:
数据库 时间:
2015-04-07 21:38:10
阅读次数:
248