一、原题输入n之后,生成1~n的排列。(题目来源:《算法竞赛入门经典》【刘汝佳】)二、题目源代码#include #define MAXN 1000int a[MAXN][MAXN];void print_permutation(int n,int*a,int cur){ int i,j; ...
分类:
其他好文 时间:
2014-07-22 22:57:53
阅读次数:
243
我们知道,在对话框中,屏蔽ESC键自己主动退出能够选择重载OnCancel为哑函数的方法: void CXXXXDlg::OnCancel() { // TODO: Add your specialized code here and/or call the base class //CD...
分类:
其他好文 时间:
2014-07-22 22:56:35
阅读次数:
194
转载地址:http://blog.sina.com.cn/s/blog_6819fa800100lwr6.html 1.函数原型 void add(intindex, Eelement) 在列表的指定位置插入指定元素(可选操作)。将当前处于该位置的元素(如果有的话)和所有后续元素向右移动(...
分类:
编程语言 时间:
2014-07-22 22:56:15
阅读次数:
262
1. 创建按钮#pragma mark 创建橙色按钮- (void) createOrangeBtn{ // 创建按钮 //[[UIButton alloc] initWithFrame:]; UIButton *btn = [[UIButton alloc] init]; ...
分类:
其他好文 时间:
2014-07-22 22:56:13
阅读次数:
248
1、在控件的上方:private void showPopUp(View v) { LinearLayout layout = new LinearLayout(this); layout.setBackgroundColor(Color....
分类:
移动开发 时间:
2014-07-22 22:55:56
阅读次数:
217
源码下载:http://download.csdn.net/detail/njxiaogui/7609687前台:.aspx 后台 .cs (通过后台获取flv的地址,进行视频播放) protected void Page_Load(obj...
分类:
Web程序 时间:
2014-07-22 22:55:52
阅读次数:
314
///using System;using System.Web;using System.Data;public class DHallZTinfo : IHttpHandler{ public void ProcessRequest(HttpContext context) { ...
分类:
Web程序 时间:
2014-07-22 22:54:15
阅读次数:
246
package lianxi;public class StaticTest { int a = 0; static int b =0; StaticTest(){ a++; b++;// } /** * @param args */ public static void main(Stri...
分类:
其他好文 时间:
2014-07-22 22:54:14
阅读次数:
188
刚学完uiview,uicontrol类,许多人知道 touchesBegain,touchesMoved,touchesEnd,GestureRecognizer的用途,但仔细考虑这些事件之间的关系,却令人头疼. 现在以一个例子来分析它们的内部实现:- (void)viewDidLoad{ ...
分类:
移动开发 时间:
2014-07-19 21:25:31
阅读次数:
236
public void checkCase() { string strSql = " ID>0"; int num = bll.GetRecordCount(strSql); ...
分类:
Web程序 时间:
2014-07-16 23:38:11
阅读次数:
371