自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(66)
  • 资源 (27)
  • 收藏
  • 关注

转载 Turn off the rightmost set bit

reference: http://www.geeksforgeeks.org/turn-off-the-rightmost-set-bit/Problem Definition:Write a C function that unsets the rightmost set bit of an integer.Solution:Let the in

2013-06-10 09:32:51 990

转载 Multiply a given Integer with 3.5

reference: http://www.geeksforgeeks.org/multiply-an-integer-with-3-5/Problem Definition:Given a integer x, write a function that multiplies x with 3.5 and returns the integer result. Y

2013-06-10 09:32:45 935

转载 Add 1 to a given number

reference: http://www.geeksforgeeks.org/add-1-to-a-given-number/Problem Definition:Write a program to add one to a given number. You are not allowed to use operators like ‘+’, ‘-’, ‘*’

2013-06-10 09:32:41 979

转载 Next higher number with same number of set bits

reference: http://www.geeksforgeeks.org/next-higher-number-with-same-number-of-set-bits/Problem Definition:Given a number x, find next number with same number of 1 bits in it’s binary

2013-06-10 09:32:36 1198

转载 A Boolean Array Puzzle

reference: http://www.geeksforgeeks.org/a-boolean-array-puzzle/Problem Definition:Input: A array arr[] of two elements having value 0 and 1Output: Make both elements 0.Specific

2013-06-10 09:32:31 913

转载 Smallest of three integers without comparison operators

reference: http://www.geeksforgeeks.org/smallest-of-three-integers-without-comparison-operators/Problem Definition:Write a C program to find the smallest of three integers, without usi

2013-06-10 09:32:27 938

转载 Add two numbers without using arithmetic operators

reference: http://www.geeksforgeeks.org/add-two-numbers-without-using-arithmetic-operators/Problem Definition:Write a function Add() that returns sum of two integers. The function should

2013-06-10 09:32:22 1056

转载 Swap bits in a given number

reference: http://www.geeksforgeeks.org/swap-bits-in-a-given-number/Problem Definition:Given a number x and two positions (from right side) in binary representation of x, write a functio

2013-06-10 09:32:18 1038

转载 Count total set bits in all numbers from 1 to n

reference: http://www.geeksforgeeks.org/count-total-set-bits-in-all-numbers-from-1-to-n/Problem Definition:Given a positive integer n, count the total number of set bits in binary repr

2013-06-10 09:31:56 1628

转载 Find the element that appears once

reference: http://www.geeksforgeeks.org/find-the-element-that-appears-once/Problem Definition:Given an array where every element occurs three times, except one element which occurs onl

2013-06-10 09:31:52 931

转载 Count set bits in an integer

reference: http://www.geeksforgeeks.org/count-set-bits-in-an-integer/Problem Definition:Write an efficient program to count number of 1s in binary representation of an integer.So

2013-06-09 14:12:39 1272

转载 Write an Efficient C Program to Reverse Bits of a Number

reference: http://www.geeksforgeeks.org/write-an-efficient-c-program-to-reverse-bits-of-a-number/Problem Definition:Write an Efficient C Program to Reverse Bits of a NumberSolu

2013-06-09 14:12:35 1186

转载 Check for Integer Overflow

reference: http://www.geeksforgeeks.org/check-for-integer-overflow/Problem Definition:Write a “C” function, int addOvf(int* result, int a, int b) If there is no overflow, the function pl

2013-06-09 14:12:30 1269

转载 Find the Number Occurring Odd Number of Times

reference: http://www.geeksforgeeks.org/find-the-number-occurring-odd-number-of-times/Problem Definition:Given an array of positive integers. All numbers occur even number of times excep

2013-06-09 14:12:26 1118

转载 Find the two non-repeating elements in an array of repeating elements

reference: http://www.geeksforgeeks.org/find-two-non-repeating-elements-in-an-array-of-repeating-elements/Problem Definition:Given an array in which all numbers except two are repeated o

2013-06-09 14:12:20 1175

转载 Rotate bits of a number

reference: http://www.geeksforgeeks.org/rotate-bits-of-an-integer/Problem Definition:Bit Rotation: A rotation (or circular shift) is an operation similar to shift except that the bits

2013-06-09 14:12:16 1063

转载 Compute the minimum or maximum of two integers without branching

reference: http://www.geeksforgeeks.org/compute-the-minimum-or-maximum-max-of-two-integers-without-branching/Problem Definition:The key idea is to incorporate the branch into one equation.

2013-06-09 14:12:13 921

转载 Compute modulus division by a power-of-2-number

reference: http://www.geeksforgeeks.org/compute-modulus-division-by-a-power-of-2-number/Problem Definition:Compute n modulo d without division(/) and modulo(%) operators, where d is a

2013-06-09 14:12:09 927

转载 Compute the integer absolute value (abs) without branching

reference: http://www.geeksforgeeks.org/compute-the-integer-absolute-value-abs-without-branching/Problem Definition:Compute the integer absolute value (abs) without branching.Solut

2013-06-09 14:12:04 1638

转载 Find whether a given number is a power of 4 or not

reference: http://www.geeksforgeeks.org/find-whether-a-given-number-is-a-power-of-4-or-not/Problem Definition:Find whether a given number is a power of 4 or not.Solution:

2013-06-09 14:12:00 1028

转载 Swap all odd and even bits

reference: http://www.geeksforgeeks.org/swap-all-odd-and-even-bits/Problem Definition:Given an unsigned integer, swap all odd bits with even bits. For example, if the given number is 23 (000

2013-06-09 14:11:40 1620

转载 Binary representation of a given number

reference: http://www.geeksforgeeks.org/binary-representation-of-a-given-number/Problem Definition:Write a program to print Binary representation of a given number.Solution:Thi

2013-06-09 14:11:36 1372

转载 Position of rightmost set bit

reference: http://www.geeksforgeeks.org/position-of-rightmost-set-bit/Problem Definition:Write a one line C function to return position of first 1 from right to left, in binary representat

2013-06-09 14:11:32 960

转载 Write one line C function to find whether a no is power of two

reference: http://www.geeksforgeeks.org/write-one-line-c-function-to-find-whether-a-no-is-power-of-two/Problem Definition:Write one line C function to find whether a no is power of two.

2013-06-09 14:11:28 955

转载 Efficient way to multiply with 7

reference: http://www.geeksforgeeks.org/efficient-way-to-multiply-with-7/Problem Definition:Figure out a way to multiply with 7 efficiently.Solution:We can multiply a number by

2013-06-09 14:11:24 871

转载 Write a C program to find the parity of an unsigned integer

reference: http://www.geeksforgeeks.org/write-a-c-program-to-find-the-parity-of-an-unsigned-integer/Problem Definition:Parity: Parity of a number refers to whether it contains an odd or

2013-06-09 14:11:19 1086

转载 Write an Efficient Method to Check if a Number is Multiple of 3

reference: http://www.geeksforgeeks.org/write-an-efficient-method-to-check-if-a-number-is-multiple-of-3/Problem Definition:The very first solution that comes to our mind is the one tha

2013-06-09 14:11:12 1176

转载 Next Power of 2

reference: http://www.geeksforgeeks.org/next-power-of-2/Problem Definition:Write a function that, for a given no n, finds a number p which is greater than or equal to n and is a power of

2013-06-09 14:11:06 2423

转载 Count number of bits to be flipped to convert A to B

reference: http://www.geeksforgeeks.org/count-number-of-bits-to-be-flipped-to-convert-a-to-b/Problem Definition:You are given two numbers A and B. Write a program to count number of bits

2013-06-09 14:10:12 981

原创 Bit manipulation

When should you use bitwise operators?Bitwise operators are used forsaving more space orsaving some time. There are also times when you need to use bitwise operators: if you're working with co

2013-06-03 11:42:00 3177 2

原创 [LeetCode]ZigZag Conversion

class Solution {//be careful with the special case//when done with coding, figure out some cases (including illegal, normal, edge cases)//to run with this solution, this will help to get a bug-free

2013-06-03 09:09:50 1114

原创 [LeetCode]Word Search

int Dir[4][2]={{0,1},{0,-1},{1,0},{-1,0}};class Solution {//DFS Find the pathpublic: void DFS(int curX, int curY, int curPos, vector>& visit, bool& OK, vector> &board, string& word ) { if(

2013-06-03 09:09:41 3411

原创 [LeetCode]Word Ladder II

class Solution { //Split the problem in three steps: // //1.build the adjacency list //2.do a BFS to get a vector> prev array. For example, prev[1] = [2, 3, 0] means we can go from (2 to 1) or (3

2013-06-03 09:09:29 2325

原创 [LeetCode]Word Ladder

class Solution {public: int ladderLength(string start, string end, unordered_set &dict) { // Start typing your C/C++ solution below // DO NOT write int main() function //BFS(because all edge i

2013-06-03 09:09:11 1271

原创 [LeetCode]Wildcard Matching

class Solution {//1. No match. Simply return false. This is the last case in the program.//2. Single match. Either *s == *p, or *p == '?'. The return value of this case depends on the //result of t

2013-06-03 09:09:05 2296

原创 [LeetCode]Validate Binary Search Tree

struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {}};class Solution {//hint: when involved with BST, always remember that special e

2013-06-03 09:09:00 1452 1

原创 [LeetCode]Valid Sudoku

class Solution {public: bool isValidSudoku(vector > &board) { // Start typing your C/C++ solution below // DO NOT write int main() function return CheckBlock(board) && CheckStrip(board); } b

2013-06-03 09:08:55 2441

原创 [LeetCode]Valid Parentheses

class Solution {//stackpublic: bool isValid(string s) { // Start typing your C/C++ solution below // DO NOT write int main() function stack charStack; for (int i = 0; i < s.size(); ++i) {

2013-06-03 09:08:48 971

原创 [LeetCode]Valid Palindrome

class Solution {public: bool isPalindrome(string s) { // Start typing your C/C++ solution below // DO NOT write int main() function TransmitString(s); for (int i = 0, j = s.size()-1; i <= j;

2013-06-03 09:08:42 2579

原创 [LeetCode]Valid Number

class Solution {//finite state machine//status 1 => 小数点前面的部分//status 2 => 小数点后到'e'前面的部分//status 3 => e后面的科学计数法部分//should practice couple times morepublic: bool isNumber(const char *s) { // St

2013-06-03 09:08:28 2224 2

color transfer 颜色转化

代码中实现了两个用于颜色转化的论文 1.《Color Transfer Between Images》对应类HistogramCT.h 2.《Color Transfer Based on Normalized Cumulative Hue Histograms》对应类HistogramCT.h

2011-12-06

浙大机试解题报告2005-2011

这里面包括了浙大2005-2011年的上机复试解题报告

2011-04-02

浙大CS复试相关资源

里面包含了 我准备浙大CS复试的一些英语、上机、专业课面试经验。希望对你们有用!

2011-04-02

全国软考04-09上真题答案全

全国软考04-09上真题答案全(除09上选择题)

2010-05-11

浙江省计算机三级数据库技术复习资料(包含点全国的)

全国、浙江省计算机三级数据库技术复习资料 适合赶考的人

2010-04-19

连连看 mfc 混音 鼠标效果

这是一个有带着混音效果和鼠标效果的连连看mfc做的 和大家共享下 有什么不懂得 评论下 有空我会回复的

2009-08-20

java课实验设计代码全集

这是大学java课程的java实验全部代码 上传仅仅为了与大家共享 希望对你有所帮助

2009-08-04

计算机组成原理课程设计16进制指令生成器

计算机组成原理课程设计16进制指令生成器 根据框图即可得到16进制指令

2009-08-04

精致通讯录(MFC+链表+数据库)

这是个非常精致的通讯录 MFC的界面 与数据库接口 里面还有使用手册 适合中等学者学习

2009-03-10

c语言DOS界面菜单式四则运算自编(菜单功能很不错宝贵资源)

自己编写的一个四则运算DOS界面菜单式小程序 适合一般C语言学者学习 里面内带我演讲时的PPT 所以不用担心看不懂 非常宝贵的资源

2009-03-10

Vc6.0++MFC编程实例4讲解详细(宝贵资源)

第4章 绘图 51 4.1 设备环境 51 4.2 在MFC环境中创建一个设备环境 52 4.2.1 屏幕 52 4.2.2 打印机 53 4.2.3 内存 54 4.2.4 信息 54 4.3 绘图例程 55 4.3.1 画点 55 4.3.2 画线 55 4.3.3 画形状 55 4.3.4 形状填充和翻转 55 4.3.5 滚动 56 4.3.6 绘制文本 56 4.3.7 绘制位图和图标 56 4.4 绘图属性 56 4.4.1 设备环境属性 57 4.4.2 画线属性 58 4.4.3 形状填充属性 58 4.4.4 文本绘制属性 58 4.4.5 映像模式 59 4.4.6 调色板属性 62 4.4.7 混合属性 62 4.4.8 剪裁属性 63 4.4.9 位图绘制属性 64 4.5 元文件和路径 65 4.5.1 元文件 65 4.5.2 路径 66 4.6 颜色和调色板 66 4.6.1 抖动色 67 4.6.2 未经抖动色 67 4.6.3 系统调色板 67 4.6.4 使用系统调色板 68 4.6.5 动画色 71 4.7 控制什么时候在哪里绘图 71 4.7.1 处理WM_PAINT 71 4.7.2 只绘制被无效化的区域 72 4.7.3 处理WM_DRAWITEM 72 4.7.4 在其他时间绘图 73 4.8 小结 74 第二部分 用户界面实例

2009-03-10

Vc6.0++MFC编程实例16~20讲解详细(宝贵资源)

这是Vc6.0++MFC编程实例讲解详细(宝贵资源)系列种的最后五章16,17,18,19,20章

2009-03-10

Vc6.0++MFC编程实例15讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介: 第15章 库 291 15.1 例82 静态链接C/C++库 291 15.2 例83 动态链接C/C++库 295 15.3 例84 动态链接MFC扩展类库 300 15.4 例85 资源库 303 第五部分 附录 附录A 控件窗口风格 305 附录B 消息、控件通知和消息映像宏 323 附录C 访问其他应用程序类 328 附录D 开发中注意事项 330 附录E MFC快速参考指南 339

2009-03-10

Vc6.0++MFC编程实例14讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介: 第14章 杂类 263 14.1 例74 剪切、拷贝和粘贴文本 数据 263 14.2 例75 剪切、拷贝、粘贴多信 息文本数据 268 14.3 例76 剪切、拷贝和粘贴二进制 数据 273 14.4 例77 数组函数 280 14.5 例78 列表函数 281 14.6 例79 映像函数 283 14.7 例80 系统键盘输入 285 14.8 例81 时间 288 第四部分 打包实例

2009-03-10

Vc6.0++MFC编程实例13讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介: 第13章 文件、串行化和数据库 225 13.1 例63 访问二进制文件 225 13.2 例64 访问标准I/O文件 227 13.3 例65 访问内存文件 228 13.4 例66 在数据类中实现串行化 229 13.5 例67 串行化SDI或MDI文档 235 13.6 例68 按要求串行化 240 13.7 例69 透明地更新串行化的文档 242 13.8 例70 串行化多态类 246 13.9 例71 串行化数据集 248 13.10 例72 访问ODBC数据库 252 13.11 例73 访问DAO数据库 257 数据 263 14.2 例75 剪切、拷贝、粘贴多信 息文本数据 268 14.3 例76 剪切、拷贝和粘贴二进制 数据 273 14.4 例77 数组函数 280 14.5 例78 列表函数 281 14.6 例79 映像函数 283 14.7 例80 系统键盘输入 285 14.8 例81 时间 288 第四部分 打包实例

2009-03-10

Vc6.0++MFC编程实例12讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介: 第12章 消息 215 12.1 例59 添加消息处理函数或重 载MFC类 216 12.2 例60 添加命令范围消息处理函数 219 12.3 例61 重定向命令消息 221 12.4 例62 创建自己的窗口消息 222

2009-03-10

Vc6.0++MFC编程实例11讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介: 第11章 绘图 198 11.1 例53 绘制图形 198 11.2 例54 绘制文本 201 11.3 例55 从任意位置装入一个图 标并绘制 203 11.4 例56 从任意位置装入一个位 图和绘制一个位图 204 11.5 例57 从文件中创建一个位图 206 11.6 例58 创建一个自绘位图 211 第三部分 内部处理实例

2009-03-10

Vc6.0++MFC编程实例10讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介: 第10章 控件窗口 182 10.1 例46 在任意位置创建一个控 件窗口 182 10.2 例47 用子分类定制一个通用 控件窗口 183 10.3 例48 用超分类定制一个通用 控件窗口 188 10.4 例49 在按钮上放置位图 190 10.5 例50 动态填充一个组合框 192 10.6 例51 排序一个列表控件 194 10.7 例52 分隔线控件 196

2009-03-10

Vc6.0++MFC编程实例9讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介: 第9章 对话框和对话条 166 9.1 例38 使用对话框编辑器 166 9.2 例39 创建一个对话框类 168 9.3 例40 模式对话框 170 9.4 例41 无模式对话框 171 9.5 例42 在无模式对话框的控件间 切换焦点 172 9.6 例43 对话框中的动画 173 9.7 例44 消息框 174 9.8 例45 对话条 176

2009-03-10

Vc6.0++MFC编程实例8讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介: 第8章 视图 145 8.1 例32 滚动视图 145 8.2 例33 改变鼠标光标形状 147 8.3 例34 沙漏光标 148 8.4 例35 窗体视图 149 8.5 例36 列表视图 152 8.6 例37 动态分割一个视图 163

2009-03-10

Vc6.0++MFC编程实例7讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介:第7章 工具栏和状态栏 120 7.1 例22 使用工具栏编辑器 120 7.2 例23 启用和禁用工具栏按钮 122 7.3 例24 为工具栏按钮添加字 123 7.4 例25 非标准工具栏大小 128 7.5 例26 保持工具栏按钮按下 129 7.6 例27 保持工具栏按钮组中 一个按钮按下 130 7.7 例28 为工具栏添加非按钮控件 131 7.8 例29 修改应用程序的状态栏 136 7.9 例30 更新状态栏窗格 138 7.10 例31 为状态栏添加其他控件 139

2009-03-10

Vc6.0++MFC编程实例6讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介: 第6章 菜单 107 6.1 例12 使用菜单编辑器 107 6.2 例13 添加一个菜单命令处理函数 109 6.3 例14 根据当前可视文档动态改 变菜单 110 6.4 例15 启用和禁用菜单命令 111 6.5 例16 复选标记菜单命令 112 6.6 例17 单选标记菜单命令 113 6.7 例18 动态修改菜单 114 6.8 例19 动态修改系统菜单 116 6.9 例20 触发一个菜单命令 117 6.10 例21 创建弹出式菜单

2009-03-10

Vc6.0++MFC编程实例3讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介:

2009-03-10

Vc6.0++MFC编程实例1讲解详细(宝贵资源)

第1章 窗口 2 1.1 窗口和API环境 2 1.1.1 三种类型窗口 2 1.1.2 客户区和非客户区 3 1.2 窗口和MFC环境 4 1.3 怎样应用MFC创建一个窗口 5 1.4 怎样使用MFC销毁一个窗口 9 1.4.1 捆绑到一个已有的窗口 9 1.4.2 窗口类 10 1.4.3 窗口进程 10 1.5 怎样使用MFC创建一个窗口类 11 1.5.1 使用AfxRegisterWndClass () 函数注册一个窗口类 11 1.5.2 使用AfxRegisterClass ()函数 创建一个窗口类 12 1.6 怎样销毁一个MFC窗口类 14 1.7 厂商安装的窗口类 14 1.8 其他类型窗口 15 1.9 桌面窗口 16 1.10 小结 16

2009-03-09

Vc6.0++MFC编程实例2讲解详细(宝贵资源)

本书有20章由于太大故分开上传 内容简介: 第2章 类 18 2.1 基类 18 2.1.1 CObject 18 2.1.2 CCmdTarget 19 2.1.3 CWnd 19 2.2 应用程序、框架、文档和视图类 19 2.2.1 CWinApp(O/C/W) 20 2.2.2 CView (O/C/W) 21 2.3 其他用户界面类 22 2.3.1 通用控件类 23 2.3.2 菜单类 23 2.3.3 对话框类 24 2.3.4 控制条类 24 2.3.5 属性类 25 2.4 绘图类 25 2.4.1 设备环境类 25 2.4.2 图形对象类 25 2.5 文件类 26 2.6 数据库类 26 2.6.1 ODBC类 26 2.6.2 DAO类 27 2.7 数据集类 27 2.8 其他数据类 27 2.9 通信类 28 2.10 其他类 29 2.11 小结 31

2009-03-09

链表C语言实现 功能齐全

/* head 为链表的头指针,也就是第一个节点的地址,只有在加入第一个节点的时候有用 last 是这样一个节点,当你输入数据的时候,内存首先开辟一个区域,此时,last指向上一个节点的地址 curPosi 永远指向当前新开辟的区域,一旦指向当前新开辟的区域,那么curPosi 就和以前的所有节点没有关系了 为了让last永远指向上一个节点,在给last的 next指针赋值之后,last要指向当前节点 */

2009-03-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除