2012年3月15日

摘要: headercmath (math.h)C numerics librarycmathdeclares a set of functions to compute common mathematical operations and transformations:Trigonometric functions:cosCompute cosine(function)sinCompute sine(function)tanCompute tangent(function)acosCompute arc cosine(function)asinCompute arc sine(function)a 阅读全文

posted @ 2012-03-15 20:40 无忧consume 阅读(672) 评论(0) 推荐(0) 编辑

摘要: headercstdlib (stdlib.h)C Standard General Utilities LibraryThis header defines several general purpose functions, including dynamic memory management, random number generation, communication with the environment, integer arthmetics, searching, sorting and converting.FunctionsString conversion:atofC 阅读全文

posted @ 2012-03-15 20:39 无忧consume 阅读(497) 评论(0) 推荐(0) 编辑

摘要: headercstring (string.h)C StringsThis header file defines several functions to manipulateC stringsand arrays.FunctionsCopying:memcpyCopy block of memory(function)memmoveMove block of memory(function )strcpyCopy string(function)strncpyCopy characters from string(function)Concatenation:strcatConcatena 阅读全文

posted @ 2012-03-15 20:39 无忧consume 阅读(197) 评论(0) 推荐(0) 编辑

摘要: headercstdio (stdio.h)C library to perform Input/Output operationsInput and Output operations can also be performed in C++ using theCStandardInput andOutput Library (cstdio, known asstdio.hin the C language). This library uses what are calledstreamsto operate with physical devices such as keyboards, 阅读全文

posted @ 2012-03-15 20:38 无忧consume 阅读(294) 评论(0) 推荐(0) 编辑

摘要: http://www.blogjava.net/orangewhy/archive/2007/05/24/119645.html[JNI] Eclipse直接完成JAVA调用C/C++ (Eclipse上使用CDT结合MinGW)网上都有很多在windows平台下JAVA调用C/C++方法的介绍说明。但是,在此过程中,绝大多数都是利用VC等其他工具来进行DLL的生成。试想一下,在eclipse平台开发了JAVA,突然又要打开VC的工作环境,多不爽!何况如果内存不够的话,还得先把其中一个退出。到需要再重新打开,多费劲啊!!现在,我们让这一系列的工作都在eclipse上完成!首先、安装eclips 阅读全文

posted @ 2012-03-15 18:16 无忧consume 阅读(247) 评论(0) 推荐(0) 编辑

摘要: http://topic.csdn.net/t/20020917/14/1030420.html感谢大家支持,这几天我在IBM中文及SUN官方网站中找了不少关于JNI的文章,受益非浅,希望有相关问题的朋友,可到那找查相关资料. 1)在 Windows 中实现 Java 本地方法 http://www-900.ibm.com/developerWorks/cn/java/jnimthds/index.shtml 2)Java Native Interface: Programmer's Guide and Specification http://java.sun... 阅读全文

posted @ 2012-03-15 18:14 无忧consume 阅读(267) 评论(0) 推荐(0) 编辑

该文被密码保护。 阅读全文

posted @ 2012-03-15 16:45 无忧consume 阅读(5) 评论(0) 推荐(0) 编辑

摘要: 在终端,应用程序中,打开,输入ifconfig 阅读全文

posted @ 2012-03-15 14:55 无忧consume 阅读(350) 评论(0) 推荐(0) 编辑

摘要: http://www.cnblogs.com/cxun/archive/2010/03/07/1680427.html如果在很短的时间内连接获取随机数,会发现获取的随机数是同一个,下面例子可以实现短时间内快速获取不一样的随机数:#include <windows.h>#include <iostream>using namespace std;//#define USE_QUICK_RANDDWORD WINAPI thread(PVOID pBuf){ LARGE_INTEGER li; QueryPerformanceCounter(&li); srand( 阅读全文

posted @ 2012-03-15 12:35 无忧consume 阅读(244) 评论(0) 推荐(0) 编辑

摘要: http://www.cnblogs.com/cxun/archive/2009/02/24/1397153.html#include<iostream>#include<io.h>#include<sys\stat.h>#include<afx.h>#define_AFXDLLusingnamespacestd;voidmain(){//此文件在工程打开状态下为不可访问char*filepath="..\\test.ncb";//方法一struct_statinfo;_stat(filepath,&info);int 阅读全文

posted @ 2012-03-15 12:33 无忧consume 阅读(206) 评论(0) 推荐(0) 编辑

摘要: typedef 的用法用途一:定义一种类型的别名,而不只是简单的宏替换。可以用作同时声明指针型的多个对象。比如:char* pa, pb;//这多数不符合我们的意图,它只声明了一个指向字符变量的指针,//和一个字符变量;以下则可行:typedef char* PCHAR;PCHAR pa, pb; 用途二:用在旧的C代码中,帮助struct。以前的代码中,声明struct新对象时,必须要带上struct,即形式为:struct结构名对象名,如:struct tagPOINT1{int x;int y;};struct tagPOINT1 p1;而在C++中,则可以直接写:结构名对象名,即:.. 阅读全文

posted @ 2012-03-15 12:14 无忧consume 阅读(222) 评论(0) 推荐(0) 编辑

摘要: http://www.cnblogs.com/cxun/archive/2007/05/05/736208.html一、生成DLL1.新建DLL工程生成DLL可以多种方法,这里介绍一种。在VS中,新建一个空的项目,选Win32 Console Application,新建完后修改工程属性:把生成EXE改为生成DLL2.源代码:#include <iostream>#include <windows.h>using namespace std;#ifdef __cplusplus// if used by C++ codeextern "C" {// 阅读全文

posted @ 2012-03-15 12:10 无忧consume 阅读(375) 评论(0) 推荐(0) 编辑

摘要: http://blog.163.com/prevBlogPerma.do?host=zyc-to&srl=171524002010104680552&mode=prevConvert NSString to int1、NSString*aNumberString =@"123";2、inti = [aNumberString intValue];Convert int to NSStringNSString*boo =[NSString stringWithFormat:@"%@",ln]; 1、intaNumber = 123;2、NS 阅读全文

posted @ 2012-03-15 01:14 无忧consume 阅读(409) 评论(0) 推荐(0) 编辑

摘要: 先说这个:NSString*path =[[NSBundle mainBundle] pathForResource:@"LoginStatuses" ofType:@"plist"];不用加inDerectory。你需要在Xcode工程里加入一个group(右键->new group);将文件导入即可不论在哪一个文件夹里。 阅读全文

posted @ 2012-03-15 00:09 无忧consume 阅读(915) 评论(0) 推荐(0) 编辑


Copyright © 2024 无忧consume
Powered by .NET 8.0 on Kubernetes