功能:向文件读入写入一个数据块。用法:fwrite(const void *buffer,size_t
size,size_t count,FILE *stream);(1)buffer:是一个指针,对fwrite
来说,是要输出数据的地址。(2)size:要写入内容的单字节数;(3)count:要...
分类:
其他好文 时间:
2014-05-16 23:37:49
阅读次数:
303
for (int i = 0; i <
this.dataGridView1.Rows.Count; i++) {
this.dataGridView1.Rows[i].Cells["CheckBoxCulums"].Value = this.ch...
一次过 1 public class Solution { 2 public String
countAndSay(int n) { 3 if (n <= 0) return ""; 4 int i = 1; 5 String current
...
分类:
其他好文 时间:
2014-05-16 21:27:59
阅读次数:
267
题目链接在字符串a中查找字符串b出现的次数...貌似不可以用a.count()附上代码:1 a =
raw_input().strip()2 b = raw_input().strip()3 cnt = 0;4 for i in
xrange(len(a)):5 cnt += 1 if a....
分类:
其他好文 时间:
2014-05-14 04:13:06
阅读次数:
308
1 /** 2 大意: 给定区间(a,b), 将其转化为二进制
计算从a+(a+1)+(a+2)。。。。+(a+b-1),一共有多少次进位 3 思路: 将(a,b)区间内的数,转化为二进制后,看其每一位一共有多少个1 4
可知最低位循环为2,第二位循环为4 5 ...
分类:
其他好文 时间:
2014-05-13 20:31:13
阅读次数:
255
#include
using namespace std;
const int size = 1000;
void ArrDel()
{
int arr[size];
//循环结束标志,一直循环到数组中只剩下最后一个元素结束
int currentNum = size;
int count = 0;
for (int k = 0; k < size; k++)
{
arr...
分类:
其他好文 时间:
2014-05-13 15:53:09
阅读次数:
282
题目地址:BZOJ 1036
题目大意:给出一棵树,每个点有一个权值,要求三种操作:1.修改某个点的权值,2.询问x到y路径上各点的权值最大值,3.询问x到y路径上各点的权值之和。
算法讨论:树链剖分模板题。
Code:
#include
#include
#define N 30000
#define oo 0x7f7f7f7f
using namespace std;
int...
分类:
其他好文 时间:
2014-05-13 15:45:57
阅读次数:
336
实现了%d %x %c %s对变长函数的参数取址有了深刻的理解
,蒋yy的实验任务其实还是很有帮助的^_^ 1 int printf ( const char * format, ... ) 2 { 3 int
Count=0; 4 int index=0; 5 char b...
分类:
其他好文 时间:
2014-05-13 11:01:59
阅读次数:
226
当登录AIX系统,用户名或密码不正确以至于多次登录,超过系统设定的次数,如何解锁:
1.用root用户登录系统
2.chuser unsuccessful_login_count=0 db2inst1
此时用户名db2inst1解锁成功,可正常登录
说明:db2inst1是被锁定的用户
参考链接:AIX用户登录次数受限设置...
分类:
其他好文 时间:
2014-05-13 06:20:21
阅读次数:
269
Count the string
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4239 Accepted Submission(s): 1977
Problem Description
It is wel...
分类:
其他好文 时间:
2014-05-13 00:14:55
阅读次数:
357