先说说修改基本类型变量的值,比如说int类型,可以直接修改,也可以通过函数修改,看下代码 #include void change(int *a)
{ int temp = 555; a = &temp;
} int main()
{ int i = 5; int j = 55; int *p = ...
分类:
其他好文 时间:
2014-10-10 22:40:14
阅读次数:
238
public void downLoadApplication(HttpServletRequest request, HttpServletResponse response) { // 项目里路径 String path = request.getRealPath("/static/temp.....
分类:
其他好文 时间:
2014-10-10 16:53:24
阅读次数:
132
以时间/日期服务器为例来说明进程间的通信这里用shell脚本来实现1,服务程序, 更新当前时间到一个文件,#! /bin/sh# time serverwhile true;dodate > /temp/current_datesleep 1done2,客户程序,通过共享文件获得当前时间进程。#! ...
分类:
系统相关 时间:
2014-10-10 16:51:44
阅读次数:
197
#include #include #include using namespace std;int n,m,num,temp,sum;int re[201][201],link[201];//牛与牛栏的对应关系bool tag[201];//增益路径bool DFS(int a){ for(...
分类:
其他好文 时间:
2014-10-10 13:34:24
阅读次数:
141
/*分为四步 *//*第1步:创建临时表空间 */create temporary tablespace user_temp tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf' //临时表空间存储位置size 50m //表空间初始大小aut...
分类:
数据库 时间:
2014-10-10 10:58:44
阅读次数:
226
题意:给一个矩阵,里面有正负数,求子矩阵和的最大值#include #include #include #include using namespace std;int s[105][105],dp[105],n,temp[105];int main(){ // freopen("in.txt...
分类:
其他好文 时间:
2014-10-10 00:13:21
阅读次数:
342
for(int i=1;i#includeint main(){ int temp; /********************************/ temp=clock(); for(int i=1;i#includeint main(){ int n,...
分类:
其他好文 时间:
2014-10-09 23:53:47
阅读次数:
172
// 全排列问题.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include
using namespace std;
template
void swap(T *str1,T *str2)
{
T temp;
temp=*str1;
*str1=*str2;
*str2=temp;
}
void permStr(char *str,...
分类:
其他好文 时间:
2014-10-09 16:32:48
阅读次数:
187
create function f_myWord(@s varchar(50))returns varchar(50) asbegindeclare @i intset @i=1while @i=1 BEGIN INSERT @TEMP_Table VALUES(left(@Sour...
分类:
数据库 时间:
2014-10-09 01:00:07
阅读次数:
342
点评:此题的通过率看起来挺吓人的,其实也不难。 题目大意:你要写一个OS,要实现磁盘碎片整理的功能。磁盘分为N个簇,一个文件可以占用K个簇,(1#include#includeusing std::stack;stack s;int main(){ int count,i,j,k,l,temp...
分类:
其他好文 时间:
2014-10-09 00:38:37
阅读次数:
448