码迷,mamicode.com
首页 >  
搜索关键字:delete void    ( 74275个结果
[c++]this指针理解
#include using namespace std;/** * this 指针理解 */class A{ int i;public: void hello(){ couthello();}由于单独开发基于c++的编译器,c++程序翻译成c程序后在,在使用c语...
分类:编程语言   时间:2014-05-12 16:34:20    阅读次数:283
rsync inotify
rsync客户端+inotify-tools1.1.1.12rsync服务器1.1.1.111.1.1.12配置[root@slave3wwwroot]#cat/etc/rsyncd-web.sh #!/bin/bash host1=1.1.1.11 src=/web/wwwroot/ dst1=web1 /usr/bin/inotifywait-mrq--timefmt‘%d/%m/%y%H:%M‘--format‘%T%w%f%e‘-emodify,delete,create,attrib..
分类:其他好文   时间:2014-05-03 01:08:22    阅读次数:426
MEX程序中的mexFunction函数【转】
与C中的main函数一样,MEX程序中的开始函数为mexFunction.默认变量参数是:void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])其中nlhs输出参数数目plhs[]指向输出参数的指针nr...
分类:其他好文   时间:2014-05-02 18:01:35    阅读次数:386
类属性不能写在try{}catch(){}里面
public class cal{public static void main(String[] args){calculator ca=new calculator();byte[] first=new byte[4];byte[] second=new byte[4];System.out.p...
分类:其他好文   时间:2014-05-02 15:23:23    阅读次数:395
OpenGL画圆
OpenGL画圆代码,代码很简单。。。截图如下:#include#include#includeGLint x=250;GLint y=450;void init(){ glClearColor(1.0,1.0,1.0,0.0); glMatrixMode(GL_PROJECTION);...
分类:其他好文   时间:2014-05-02 11:23:03    阅读次数:988
黑马程序员-c语言变量作用域问题
c语言中的变量作用域总结不管什么语言,main好像总是程序的入口,大括号是它的内容;变量的作用域总是困扰着我们,接下来,我们循序渐进的搞明白c语言中的变量作用域,首先得知道c是弱类型的语言,弱类型表现在很多方面:1:你可以直接在程序中写一个常量,然后一个分号:1;2:在定义函数时,void型的函数可...
分类:编程语言   时间:2014-05-02 10:17:59    阅读次数:382
多线程之同步与死锁
方法定义的完整格式。 访问权限{public |default|protected|private}[final][static][synchronized]返回值类型|void 方法名称(参数类型 参数名称,.....)[throws Exception1,Exception2]{return[返回值|返回用处]}; 一个多线程的程序如果通过Runnable接口实现的,则意味着类中的属性将被...
分类:编程语言   时间:2014-05-02 10:11:29    阅读次数:346
void f(int(&p)[3]){} 和void f(int(*p)[3]){}的区别
#include using namespace std; void f(int(&p)[3]){          cout     cout } int main(){     int a1[3]={1,2,3};     cout     cout     f(a1); } 编译后输出:...
分类:其他好文   时间:2014-05-02 05:32:02    阅读次数:265
看书小记5(《C专家编程》)
函数指针 1. 函数与函数指针类型要匹配; 2. 函数指针用来保存函数首地址,即可以通过该指针访问函数; 3. 函数指针可以指向一类函数,而不是一个函数,即可以重新赋值。 int maxNumber(int a, int b) { return a > b? a: b; } void fileFunc(){ cout void editFunc(){ ...
分类:其他好文   时间:2014-05-02 04:33:25    阅读次数:276
串的模式匹配算法(KMP)
算法: #include using namespace std; #define MAXSIZE 100 void calNext(const char *T,int *next);//T为模式串,next为预判数组 int kmp_match(const char *S,const char *T);//在主串S中寻找模式串T,如果找到返回其位置,否则返回-1。位置从0开始 void ...
分类:其他好文   时间:2014-05-02 02:25:40    阅读次数:280
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!