码迷,mamicode.com
首页 >  
搜索关键字:python type    ( 184368个结果
C++术语
声明( declaration )是告诉编译器某个东西的名称和类型( type ),但略去细节。下面是声明的例子:extern int x; //对象(object )声明size_t numDigits( int number ); //函数声明( function ) 声明class...
分类:编程语言   时间:2014-05-01 08:20:43    阅读次数:414
[leetcode]Linked List Cycle II @ Python
原题地址:http://oj.leetcode.com/problems/linked-list-cycle-ii/题意:如果链表中存在环路,找到环路的起点节点。解题思路:这道题有点意思。首先使用快慢指针技巧,如果fast指针和slow指针相遇,则说明链表存在环路。具体技巧参见上一篇http://w...
分类:编程语言   时间:2014-05-01 08:19:31    阅读次数:340
常量指针,指针常量,C++类型转换[转]
一、const应用1.const关键字,他后面内容的不可修改,一般来说,其修饰的变量不可再进行赋值操作;2.常量指针int a= 3;int b = 4;const int* pt = &a;a = 5;*pt的值为5,pt只是一个指针,所以他指向的是a的内容,const限制的是*pt,所以,只是不...
分类:编程语言   时间:2014-05-01 08:16:44    阅读次数:427
VC中添加web控件的方法
在VC中使用WebBrowser控件的两方法黄森堂(vcmfc)著ClassWizard方式:1.创建包装类:View->ClassWizard->Add Class->Form a Type Library->C:\winnt\system32\shdocvw.dll->只选择IWebBrowse...
分类:Web程序   时间:2014-05-01 08:15:32    阅读次数:470
回文验证
A_byte_of_Python-v192-for_Python_3.0-中文版.pdf 中的一道题:练习题: 检测一个文本是否为回文应该忽略标点,空格和大小写。 例如”Rise to vote, sir.”同样是一个回文,但是我们当前的例子无法识别它。你能改善这个例子让它做都这点吗?代码有点挫,莫...
分类:其他好文   时间:2014-05-01 06:52:33    阅读次数:359
[leetcode]Swap Nodes in Pairs @ Python
原题地址:http://oj.leetcode.com/problems/swap-nodes-in-pairs/题意:将链表中的节点两两交换。Given1->2->3->4, you should return the list as2->1->4->3.解题思路:这题主要涉及到链表的操作,没什么...
分类:编程语言   时间:2014-05-01 06:44:21    阅读次数:339
[leetcode]Remove Nth Node From End of List @ Python
原题地址:http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/题意:Given a linked list, remove thenthnode from the end of list and return its he...
分类:编程语言   时间:2014-05-01 06:42:15    阅读次数:332
C++ 的template
vector的标准模板是:template > class T>而普通模板则是template class T>,如何创建一个模板能包容以上两个形式通用?http://zhidao.baidu.com/question/412950067.html
分类:编程语言   时间:2014-05-01 06:06:16    阅读次数:331
Mathtype使用技巧
1. 打开/关闭MathType窗口 Alt+Ctrl+q:插入inline公式 Ctrl+S:更新公式到Word相应位置 Alt+F4:保存并关闭MathType窗口,返回Word。2. 公式输入快捷键Ctrl+H上角标Ctrl+L下角标Ctrl+J上、下角标Ctrl+F分式Ctrl+I积分...
分类:其他好文   时间:2014-05-01 04:13:23    阅读次数:477
[复变函数]第21堂课 6 留数理论及其应用 6. 1 留数
0. 引言---回忆(1) Cauchy 积分公式 (第三章) $$\beex \bea f\mbox{ 在 }D\mbox{ 内解析}, \mbox{ 在 }\bar D=D+\p D\mbox{ 上连续}&\ra \int_C \cfrac{f(z)}{z-a}\rd z=2\pi if(a),...
分类:其他好文   时间:2014-05-01 03:47:46    阅读次数:352
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!