1 #include 2 3 char str[]="Hello~world!"; 4 5 char *ptr=str;//数组名只代表数组元素的首地址,即str[0]的地址, 6 //故此处也可以这样写: char *ptr=str[0]; 7 8 void main() 9 {10 1...
分类:
编程语言 时间:
2015-08-06 21:58:14
阅读次数:
125
1 #include 2 3 int num[]={1,3,5,45,67,18,64,82,34,62}; 4 5 int *pnum; 6 7 int *Fun(int *num);//该函数可以实现输入一个数组且输出一个数组的功能 8 9 void main()10 {11 ...
分类:
编程语言 时间:
2015-08-06 21:47:01
阅读次数:
188
组合数时间限制:3000ms | 内存限制:65535KB难度:3描述找出从自然数1、2、... 、n(0#includeint a[20],b[20];int n,m;void dfs(int cur,int pos){ int i; if(pos==m+1) { for(i=1;in) ret....
分类:
其他好文 时间:
2015-08-06 21:45:16
阅读次数:
125
一:filter过滤器
1.简单使用
public classSimpleFilter extends HttpServlet implements Filter {
public void init(FilterConfig config)throws ServletException {
String initParm=config.getIn...
分类:
其他好文 时间:
2015-08-06 20:36:05
阅读次数:
190
??
#include
#include
#include
#include
using namespace std;
typedef struct Node
{
Node * lchild,*rchild;
char value;
} Tree;
void ReBuild(char *PreOrder,char *InOrder,int TreeLen,Tree** r...
分类:
其他好文 时间:
2015-08-06 20:34:44
阅读次数:
127
普通方法求素数与筛法求素数比较
20150806
package day06;
/*
* 普通方法求素数与筛法求素数比较
*/
import java.util.*;
public class TestSushu {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in...
分类:
其他好文 时间:
2015-08-06 20:29:30
阅读次数:
85
只刷新cell不刷新section,这问题还难住了一阵子需要用到:- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;- (void)del....
分类:
其他好文 时间:
2015-08-06 20:24:09
阅读次数:
129
package 第十二章;import java.io.*;import java.net.*;public class TcpServer { public static void main(String[] args) throws IOException { // TODO Auto-gen....
分类:
其他好文 时间:
2015-08-06 20:20:54
阅读次数:
141
1. 读取Excel:【从Excel里面读取数据】 private void button1_Click(object sender, EventArgs e) { //先创建一个文件流,指向磁盘上的某个Excel文件 using (FileStream fsRead ...
分类:
其他好文 时间:
2015-08-06 20:18:22
阅读次数:
110
2015-08-0619:37:58 1 /*! 2 * 3 * 4 * 2015/08/06 by 5 */ 6 #include 7 #include 8 #include 9 10 void timestampToFormat(time_t& t_1, tm& tm_1);...
分类:
其他好文 时间:
2015-08-06 20:13:46
阅读次数:
107