码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
单文档打开操作
ON_COMMAND(ID_FILE_OPEN, &CWinApp::OnFileOpen) void CWinApp::OnFileOpen() { ENSURE(m_pDocManager != NULL); m_pDocManager->OnFileOpen(); } CDocManager*... ...
分类:其他好文   时间:2016-05-13 09:10:19    阅读次数:278
Linux高级编程--02.gcc和动态库
在Linux环境下,我们通常用gcc将C代码编译成可执行文件,如下就是一个简单的例子: 小实验:hello.c #include #include void main(void) { printf("hello world!\r\n"); } 可以通过如下指令来编译出一个可执行文件: gcc hel... ...
分类:系统相关   时间:2016-05-13 09:03:24    阅读次数:201
java如何在函数中调用主函数的数组
import javax.swing.JOptionPane; public class Test { /** * @zdz */ public static void main(String[] args) { double aArray[]= new double[]{1,2,3,4,5}; p ...
分类:编程语言   时间:2016-05-13 08:20:23    阅读次数:222
封装 加载loading动画
#import <UIKit/UIKit.h> @interface SSLoading : UIView - (instancetype)initWithFrame:(CGRect)frame; - (void)showLoading:(UIColor *)backgroundColor alph ...
分类:其他好文   时间:2016-05-13 08:20:16    阅读次数:258
WebService
一、服务端 1.编写webservice服务类, 使用@WebService注解 @WebServicepublic class BaseService { public void add(String value){ System.out.println("add: "+ value); } pu ...
分类:Web程序   时间:2016-05-13 08:14:47    阅读次数:291
通知监听键盘高度变化 自适应键盘高度
-(void)viewDidload { //创建通知 监听键盘的变化 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillCh ...
分类:其他好文   时间:2016-05-13 07:56:40    阅读次数:206
C语言中malloc()和calloc()c函数用法
C语言中malloc()和calloc()c函数用法 函数malloc()和calloc()都可以用来动态分配内存空间,但两者稍有区别。 malloc()函数有一个参数,即要分配的内存空间的大小: void *malloc(size_t size); calloc()函数有两个参数,分别为元素的数目 ...
分类:编程语言   时间:2016-05-13 07:53:57    阅读次数:161
0512随机4位验证码
package com.text_1; import java.util.Random; public class yanzhengma { public static void main(String[] args) { // TODO 自动生成的方法存根 //随机4位验证码 Random num ...
分类:其他好文   时间:2016-05-13 07:30:05    阅读次数:122
iOS图像处理之绘制直线
-(void)drawLine:(CGPoint)fromPnttoPoint:(CGPoint)toPnt{floatxScale=theImageView.p_w_picpath.size.width/theImageView.frame.size.width;floatyScale=theImageView.p_w_picpath.size.height/theImageView.frame.size.height;UIGraphicsBeginImageContext(theImageView.p_w..
分类:移动开发   时间:2016-05-13 05:12:32    阅读次数:239
守护进程
守护进程(daemon)也叫精灵进程,它是运行在后台的与终端无关的一种特殊进程#include<unistd.h>pid_tsetsid(void);setsid()函数调用时,要保证当前进程不是进程组组长,否则出错返回-1可以调用fork()做到这一点,fork出来的子进程和当前进程属于同一个进程组,而一个进..
分类:系统相关   时间:2016-05-13 05:06:55    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!