码迷,mamicode.com
首页 >  
搜索关键字:num lock    ( 23499个结果
结构体
结构的定义定义一个结构的一般形式为:struct结构名{成员表列}例如:struct stu{int num;char name[20];int age;}结构类型变量的说明结构体定义并不是定义一个变量,而是定义了一种数据类型,这种类型是你定义的,它可以和语言本身所自有的简单数据类型一样使用(如in...
分类:其他好文   时间:2014-05-22 05:36:40    阅读次数:172
nyoj--Divideing Jewels
题意:有十种珠宝用数字表示,现在给你每个珠宝的数量,问可不可以平均分给两个人。解题思路:DFS搜索可以写。将完全背包问题转换为搜索问题。具体代码:#include#include#includeusing namespace std;int num[15],sum;bool dfs(int n,in...
分类:其他好文   时间:2014-05-22 03:26:34    阅读次数:206
MySQL存储过程和函数
一、创建存储过程和函数1、创建存储过程的基本形式:create procedure sp_name([proc_parameter[,…]])[characteristic…]routine_body例子:创建一个名为num_from_employee的存储过程delimiter &&create ...
分类:数据库   时间:2014-05-21 22:33:24    阅读次数:515
sql基础复习
--1、while循环declare @sum intdeclare @i intset @i=1set @sum=0while(@i90) print @iendprint @sum--2、goto语句declare @num intset @num=100flag:print @numsel.....
分类:数据库   时间:2014-05-21 22:20:40    阅读次数:468
jsp中的<jsp:setProperty>中的param属性
比如:其中的param属性 相当于value=""还要注意:如果javabean里面的属性(比如说edge属性)对应的类型是int,double或者其他类型,又因为request.getParameter("num")永远返回的是string类型 ,那么param会自动类型转换, 不需手动转换.
分类:Web程序   时间:2014-05-21 21:46:09    阅读次数:288
POJ 2192 Zipper
大体题意: 先输入试验次数num,再输入三个字符串A,B,C,判断C可否由A,B按照某种次序组成。如下图。 #include #include using namespace std; #define MAX_SIZE 205 char A[MAX_SIZE]; char B[MAX_SIZE]; char C[2 * MAX_SIZE]; bool...
分类:其他好文   时间:2014-05-21 16:05:09    阅读次数:209
leetcode -day20 Add Two Numbers
1、 ?? Add Two Numbers  You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two num...
分类:其他好文   时间:2014-05-21 10:49:10    阅读次数:221
二进制优化
1 for(j = 1; j 0){6 value[cout ++] = num * value1[i];7 }View Code如num = 4, 将其优化成1 2,这样4以内的数都可以用1 2组合表示。
分类:其他好文   时间:2014-05-21 05:46:16    阅读次数:211
python的第一个脚本
第一个简单的python脚本#!/usr/bin/python # importos file_1=‘user.txt‘ file_2=‘lock.txt‘ #putanaccount_list f=file(file_1) accout_list=f.readlines() f.close() #putalistofthelockuser f=file(file_2) lock_list=[] foriinf.readlines(): line=i.strip(‘\n‘) lock_list..
分类:编程语言   时间:2014-05-21 01:19:11    阅读次数:391
Ubuntu被远程后Num Lock键不停闪临时解决办法
Ubuntu被远程后NumLock键不停闪临时解决办法:方法一:在远程之前先让其关掉自己的NumLock键方法二:关闭NumLock键点击SystemSettings-KeyboardLayout-Options-UsekeyboardLEDtoshowalternativelayout-选中NumLock-Close
分类:其他好文   时间:2014-05-20 17:23:57    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!