![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
程序基础
小laot
我只是一个普通的程序员
展开
-
函数指针以及函数指针数组的定义与使用
函数指针定义 int (*a)(), (*b)(), (*c)(); a = aa; b = bb; c = cc;原创 2014-09-26 16:06:42 · 627 阅读 · 0 评论 -
随机数
#include #include #include int main(void) { srand((unsigned)time(0)); for (int i=0;i printf("%d ",rand()); getchar(); return 0; }原创 2014-10-06 11:06:19 · 596 阅读 · 0 评论 -
值交换
int a = 1 ,b = 2; 方法一: a = a^b; b = a^b; a = a^b; 方法二: a = a+b; b = a-b; a = a-b; 方法三: i原创 2014-09-25 16:59:23 · 625 阅读 · 3 评论 -
动态链接库的生成与调用
点击解决方案中的项目,右键属性,常规配置类型选择DLL //.h文件 #include extern "C" __declspec(dllexport) int __stdcall funs(int a,int b); //.cpp文件 #include "DLL.h" extern "C" __declspec(dllexport) int __stdcall funs(in原创 2014-11-01 16:40:52 · 1095 阅读 · 0 评论