![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
文章平均质量分 57
shizheng0124
这个作者很懒,什么都没留下…
展开
-
编译和链接的区别
在多道程序环境中,要想将一个用户源代码变成一个可以在内存中执行的程序,通常分为三个步骤:编译、链接、载入。 (1)编译:由编译程序将用户的源代码编译成若干个目标模块。 (2)链接:由链接程序将编译后形成的一组目标模块以及它们所需要的库函数链接在一起,形成一个完整的载入模块。 (3)载入:由载入程序将载入模块载入内存。 编译...原创 2012-11-22 21:35:30 · 117 阅读 · 1 评论 -
内存地址的操作
#include using namespace std;void main(){ float a = 12.0f; float * p = (float *)0x0012FF7C;// 0x0012FF7C对应的是a的地址 *p = 2; printf("%f\n",a);}原创 2012-10-03 10:25:49 · 151 阅读 · 0 评论 -
算法题:求四个数的和为定值的组合
算法题:有数组【1,2,3,...10】,请找出四个数的和为16的这四个数。请给出算法。[code="c"]/****a.cpp - In order to solve the specified sum of several numbers in a array** Copyright (c) 2012. All rights reserved.**...原创 2012-10-04 10:47:08 · 550 阅读 · 0 评论 -
打印集合中的所有的排列组合
void Traversal_n(char str[],int cur){ int N=strlen(str); char tmp; for (int j = 0 ; j < cur ; j++) { cout原创 2012-10-06 17:17:40 · 307 阅读 · 0 评论 -
用C语言实现瑞利分布,莱斯分布,高斯分布的分布函数
# include "stdio.h"# include "math.h"# include "stdlib.h"# include "math.h"# include "dos.h"# define MAX_N 3000 /*这个值为N可以定义的最大长度*/# define N 100 /*产生随机序列的点数,注意不要大于MAX_N*//*产生均匀分布的随机变量*/void...原创 2013-11-29 21:31:53 · 945 阅读 · 0 评论