C语言经典算法--冒泡详细排序流程代码:#include #define N 10int main(int argc, const char * argv[]){ int i,j,k,temp,array[N]; for(i=0;iarray[k+1]) { temp=a...
分类:
编程语言 时间:
2015-04-18 15:57:36
阅读次数:
141
//要求任意输入10个数,然后按从小到大顺序输出
#include
int main()
{
int a[10];
int i,j;
int temp;
printf("请输入10个整数:");
for(i=0;i<10;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<9;i++)
{
for(j=0;j<9-i;j++)
{
if...
分类:
编程语言 时间:
2015-04-18 11:38:52
阅读次数:
439
友情题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1247
#include
#include
#include
#include
using namespace std;
const int N=30;
const int MAX=50005;
char word[MAX][30];
struct node
{
bool temp;
no...
分类:
其他好文 时间:
2015-04-18 08:52:58
阅读次数:
148
一、Tomcat下有9个目录,分别是:bin,common,conf,logs,server,shared,temp,webapps,work。Tomcat的根目录在.1、/bin下放的一般是可执行文件。比如startup.sh,shutdown.sh(linux),以及在windows下的star...
分类:
其他好文 时间:
2015-04-17 20:09:50
阅读次数:
126
原文:http://blog.sina.com.cn/s/blog_7c983ca60100yfdv.html#SinaEditor_Temp_FontName(1)sizeof是操作符,不是函数。MSDN:The sizeof keyword gives the amount of storage...
分类:
编程语言 时间:
2015-04-17 17:21:17
阅读次数:
194
格式说明符的语法对齐说明符 正数表示右对齐,负数表示左对齐。如果要表示的字符数比对齐说明符中指定的数少,会用空格填充;如果多了,就会被忽略掉。1 static void Main(string[] args)2 {3 var temp = 1...
分类:
其他好文 时间:
2015-04-17 13:11:50
阅读次数:
149
模拟STL中的freelist,有这个思想在内。
union obj
{
union obj* next;
char p[1];
};
class MemoryPool
{
public:
MemoryPool()
{
union obj* temp;
m_...
分类:
其他好文 时间:
2015-04-16 21:55:13
阅读次数:
170
格式说明符的语法对齐说明符 正数表示右对齐,负数表示左对齐。如果要表示的字符数比对齐说明符中指定的数少,会用空格填充;如果多了,就会被忽略掉。1 static void Main(string[] args)2 {3 var temp = 1...
分类:
其他好文 时间:
2015-04-16 19:43:51
阅读次数:
154
oracle 一般分页的写法为 select?a.id,a.title,rownum?as?rn,a.create_time?from?
???????????????????(select?a.*?from?temp?a?order?by?create_time?desc)?a??where?rownu...
分类:
数据库 时间:
2015-04-16 14:38:04
阅读次数:
165
解决方法:1、找到C:\windows\Temp文件夹 右键属性-->安全选项卡,给IIS_IUSRS帐号赋予权限