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环境下,我们通常用gcc将C代码编译成可执行文件,如下就是一个简单的例子: 小实验:hello.c #include #include void main(void) { printf("hello world!\r\n"); } 可以通过如下指令来编译出一个可执行文件: gcc hel... ...
分类:
系统相关 时间:
2016-05-13 09:03:24
阅读次数:
201
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
#import <UIKit/UIKit.h> @interface SSLoading : UIView - (instancetype)initWithFrame:(CGRect)frame; - (void)showLoading:(UIColor *)backgroundColor alph ...
分类:
其他好文 时间:
2016-05-13 08:20:16
阅读次数:
258
一、服务端 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函数用法 函数malloc()和calloc()都可以用来动态分配内存空间,但两者稍有区别。 malloc()函数有一个参数,即要分配的内存空间的大小: void *malloc(size_t size); calloc()函数有两个参数,分别为元素的数目 ...
分类:
编程语言 时间:
2016-05-13 07:53:57
阅读次数:
161
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
-(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