功能:向文件读入写入一个数据块。用法: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
fread是一个函数。从一个文件流中读数据,最多读取count个元素,每个元素size字节,如果调用成功返回实际读取到的元素个数,如果不成功返回
0。函数原型size_tfread (void*buffer,size_tsize,size_tcount,FILE*stream) ;参 数buffer...
分类:
其他好文 时间:
2014-05-16 21:06:26
阅读次数:
417
//创建数组,其值可以放任意的数据类型 $arr[0]=111; $arr[1]=121;
$arr[2]="nihao"; $arr[3]=141.9; $arr[4]=null;//null要记入长度,并要占用空间,但是不会输出 echo
"数组长度".count($arr);...
分类:
Web程序 时间:
2014-05-16 08:07:56
阅读次数:
372
将数组转成字符串/// /// 将数组转成字符串/// /// 分隔符///
要字符串数组private string Implode(char glue,string[] pieces) { string result =
string.Empty; int count = piece...
分类:
其他好文 时间:
2014-05-14 07:48:42
阅读次数:
363
#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
一: 新建文件夹和文件:
Mongo安装在F:\DataBase\MongoDB_2.6, 在此目录下新建文件夹:
F:\DataBase\MongoDB_2.6\data\db
F:\DataBase\MongoDB_2.6\data\log
F:\DataBase\MongoDB_2.6\data\log\MongoDB.log
二: 创建数据库
跳到 F:\D...
分类:
数据库 时间:
2014-05-13 14:19:45
阅读次数:
421
实现了%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