Action()
{
int i=0;//循环订票的游标变量
char temp[255];//临时存储字符串变量
int count=0;//存储循环关联数组长度变量
char tempfly[255];//临时存储字符串变量 web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",...
分类:
其他好文 时间:
2015-04-23 21:51:15
阅读次数:
406
/*第1步:创建临时表空间 */ create temporary tablespace mdb_temp tempfile 'G:\data\oracle\mdb_temp.ora' size 10m autoextend on next 5m maxsize 2048m extent manag...
分类:
数据库 时间:
2015-04-23 21:34:58
阅读次数:
129
#include
#include
using namespace std;
bool is_circle(string src,string des)
{
if(src.empty()||des.empty())
return false;
string temp=src;
temp+=src;
string::size_type pos=0;
pos=temp.find(des)...
分类:
其他好文 时间:
2015-04-23 15:50:07
阅读次数:
131
数组 1 public class Swap3 2 { 3 public static void swap(int[] i) 4 { 5 int temp = i[0]; 6 i[0] = i[1]; 7 i[1] = temp; 8 ...
分类:
其他好文 时间:
2015-04-23 15:11:14
阅读次数:
121
// 输入a,b,c三个值,输出其中最大者
#include
int max( int a, int b, int c )
{
int temp;
if( a > b && a > c )
temp = a;
if( b > a && b > c )
temp = b;
if( c > a && c > b )
temp = c;
return temp;
}
int...
分类:
编程语言 时间:
2015-04-23 13:27:00
阅读次数:
144
// 求两个整数中的较大者
#include
int max( int a, int b )
{
int temp;
if( a > b )
{
temp = a;
}
else
{
temp = b;
}
return temp;
}
int main()
{
int a,b;
printf("请输入要比较的两个数:\n");
scanf("%d %d",...
分类:
编程语言 时间:
2015-04-23 13:25:20
阅读次数:
243
// 有3个数a,b,c,要求按大小顺序把它们输出
#include
int main()
{
int a[3] ;
int i,j;
int temp;
printf("请输入a,b,c三个数: ");
for( i = 0; i < 3; i++ )
{
scanf("%d",&a[i]);
}
for( i = 0; i < 3; i++ )
{
for( j...
分类:
编程语言 时间:
2015-04-23 13:24:53
阅读次数:
205
// 依次将10个数输入,要求输出其中最大的数
#include
int main()
{
int a[10];
int i;
int temp;
printf("请输入10个数:");
for( i = 0; i < 10; i++ )
{
scanf("%d",&a[i]);
}
for( i = 0; i a[...
分类:
编程语言 时间:
2015-04-23 13:24:10
阅读次数:
427
// 求两个数m和n的最大公约数(辗转相除法)
#include
int yue( int x, int y )
{
int temp;
int tem;
// 保证分母不为0
if( y == 0 )
{
x = temp;
temp = y;
y = x;
}
// 辗转相除法
while( tem )
{
tem = x % y;
x = y;
...
分类:
编程语言 时间:
2015-04-23 13:21:51
阅读次数:
187
实现交换int a,b的值的函数,C++可以采用引用或指针传递的方法,当Java不行;
因为Java的参数传递机制与C++不同(http://blog.csdn.net/woliuyunyicai/article/details/44096043),
如下方法均不能够实现:
public void swap(int x, int y)
{
int temp = x;...
分类:
编程语言 时间:
2015-04-23 09:36:25
阅读次数:
190