帮别人调试个程序,程序的功能主要涉及动态数组,实现动态数组元素的添加,删除,查找,显示功能。但是在执行添加功能的时候,连续执行三次添加的时候就会出现问题,让人感到非常的莫名其妙。
涉及到的函数如下所示:
void adddata(int * arr, int * len)
{
int n;
int *add;
int cnt=0, t1;...
分类:
其他好文 时间:
2014-07-24 10:38:22
阅读次数:
342
Fear can hold you prisoner, hope can set you free. A strong man can save himself, a great man can save another.懦怯囚禁人的灵魂,希望可以令你感受自由。强者自救,圣者渡人。 ...
分类:
其他好文 时间:
2014-07-23 18:04:05
阅读次数:
207
题目链接:点击打开链接
白书的例题练练手。。。P161
#include
#include
#include
#include
#include
#include
using namespace std;
#define ll int
#define LL long long
const int mod = 1000000009;
const int maxn = 510;
con...
分类:
其他好文 时间:
2014-07-23 17:19:01
阅读次数:
268
android 下Protobuff常用的框架有三个: protobuff自身, square出的wire , protostuff由于protobuff会为每个属性生成大量不常用的方法,当程序比较复杂时容易超过android的60K个方法的上限, 所以本次测试未包括protobuff测试逻辑是循环...
分类:
移动开发 时间:
2014-07-23 11:59:56
阅读次数:
414
Time Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionA factory produces products packed in square packets of the s...
分类:
其他好文 时间:
2014-07-22 22:50:32
阅读次数:
209
Staff and children backpack can be worn as a backpack or diaper bag carries ramieniu.Plecak keep residents in the arm keeps your hands free to perform...
分类:
其他好文 时间:
2014-07-22 22:41:35
阅读次数:
290
做网页设计时经常要用到各种形状的图形,对于规则的图形很简单,但是对于不规则的图形,一般我们都是用图片,今天就在这里教大家怎样用css代码写出各种规则不同的图形1.正方形#square {width: 100px;height: 100px;background: red;}2.长方形#rectang...
分类:
Web程序 时间:
2014-07-22 22:41:14
阅读次数:
326
UVA 11542 - Square
题目链接
题意:给定一些数字,保证这些数字质因子不会超过500,求这些数字中选出几个,乘积为完全平方数,问有几种选法
思路:对每个数字分解成质因子后,发现如果要是完全平方数,选出来的数字的每个质因子个数都必然要是偶数,这样每个质因子可以列出一个异或的方程,如果数字包含质因子,就是有这个未知数,然后进行高斯消元,求出自由变量的个数,每个自由变量...
分类:
其他好文 时间:
2014-07-22 22:38:34
阅读次数:
175
# Copyright 2006 Joe Wreschnig## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public Li...
分类:
其他好文 时间:
2014-07-22 22:36:33
阅读次数:
351
CSS各种图形绘制 /*绘正方形*/
.square{
width:100px;
height:100px;
}
/*绘长方形*/
.retangle{
width:200px;
height:100px;
}...
分类:
Web程序 时间:
2014-07-21 23:22:04
阅读次数:
303