Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - INT 1
Search - INT 1 - List
VC various types of conversion -VC various types of conversion
Date : 2026-01-06 Size : 1.42mb User : siyouran

C++完美演绎 经典算法 如 /* 头文件:my_Include.h */ #include <stdio.h> /* 展开C语言的内建函数指令 */ #define PI 3.1415926 /* 宏常量,在稍后章节再详解 */ #define circle(radius) (PI*radius*radius) /* 宏函数,圆的面积 */ /* 将比较数值大小的函数写在自编include文件内 */ int show_big_or_small (int a,int b,int c) { int tmp if (a>b) { tmp = a a = b b = tmp } if (b>c) { tmp = b b = c c = tmp } if (a>b) { tmp = a a = b b = tmp } printf("由小至大排序之后的结果:%d %d %d\n", a, b, c) } 程序执行结果: 由小至大排序之后的结果:1 2 3 可将内建函数的include文件展开在自编的include文件中 圆圈的面积是=201.0619264-C perfect interpretation of classic algorithms/* header files : my_Include.h* /# include lt; Stdio.hgt;/* Start with the built-in C language function instructions* /# define PI 3.1415926/* Acer constants later, in another chapter Elaborates on* /# define circle (radius) (PI** radius radius)/* Macro function, a round of the area*//* to compare the numerical size of the write functions include writing paper*/int show_big_or_small (int a, b int, int c) (int tmp if (Agt; b) (tmp = a b a = b = tmp) if (BGT; c) (tmp = b b = c c = tmp) if (Agt; b) ( tmp = a b a = b = tmp) printf ( "ascending order by the following results :% d% d% d \ n", a, b, c)) procedures : in ascending order by the following results : 1 2 3 will the built-in functions include documents writte
Date : 2026-01-06 Size : 127kb User : 立功

C语言库函数速查[CHM文档]是一个很好的C语言函数查询器.属于CHM文档. iscntrl 原型:extern int iscntrl(int c) 用法:#include <ctype.h> 功能:判断字符c是否为控制字符 说明:当c在0x00-0x1F之间或等于0x7F(DEL)时,返回非零值,否则返回零。-C language library functions Check [CHM documentation] is a very good C language function for inquiries. CHM belonging to the text Ref. iscntrl prototype : extern int iscntrl (int c) Usage :# include
Date : 2026-01-06 Size : 81kb User : 王敏

经典C语言程序设计100例1-10 如【程序1】 题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去        掉不满足条件的排列。 2.程序源代码: main() { int i,j,k printf("\n") for(i=1 i<5 i++)    /*以下为三重循环*/   for(j=1 j<5 j++)     for (k=1 k<5 k++)     {      if (i!=k&&i!=j&&j!=k)    /*确保i、j、k三位互不相同*/      printf("%d,%d,%d\n",i,j,k)     } } -classic C Programming Language Design 100 cases [1-10 as a procedure-- topic : 1,2,3, 4 figures, the number can be formed without contending with repeat the three-digit figures? Are? 1. Program Analysis : can be filled in 100, 10,- digit figures are 1,2,3,4. With all the components removed after not satisfied with the conditions. 2. Source code : main () (int i, j, k printf ( "\ n") for (i = 1 i
Date : 2026-01-06 Size : 127kb User : lidan

DL : 0
void statistics(int signo) unsigned short cal_chksum(unsigned short *addr,int len) int pack(int pack_no) void send_packet(void) -void statistics (int signo) unsigned short cal_chksum (unsigned short* addr, int len) int pack (int pack_no) void send_packet (void)
Date : 2026-01-06 Size : 134kb User : zhenyun

DL : 0
C语言单链表实现集合的交集 并集以及差集- CreateListR(LinkList*&L,ElemType a[],int n)
Date : 2026-01-06 Size : 7kb User : 雨梦缘

DL : 0
一个最简单的MFC程序,这是我的第一个MFC程序,实现最简单的整数加法-a simple exmaple to add to int type data to get the total result
Date : 2026-01-06 Size : 1.78mb User : 20073500

c++数据结构 ssd5的答案 很有用 保证正确 很有用 我亲自写的-#include "car.h" Car::Car(string plate) : license_plate(plate), moved(0), aisle(-1) {} Car::Car(string plate, int aisle) : license_plate(plate), moved(0), aisle(aisle) {} int Car::getTimesMoved(void) const { return moved } void Car::setTimesMoved(int m) { moved = m } int Car::getAisle(void) const { return aisle } string Car::getPlate(void) const { return license_plate } bool Car::operator < (const Car& rhs) const { return this->getPlate() < rhs.getPlate() } bool Car::operator == (const Car& rhs) const { return this->getPlate() == rhs.getPlate() }
Date : 2026-01-06 Size : 8kb User : linchen

DL : 0
设计一个栈,要求如下: 1、使用模版技术实现,要求该栈内能存储各种数据类型如int、char、string以及自定义类型 2、设计一个基类,基类定义栈的所有接口,子类来具体实现 3、每个子类使用不同类型的容器来组织底层数据-Design a stack requirements are as follows: 1, using template technology, requires that the stack can store various data types such as int, char, string, and custom type 2, the design of a base class, base class defines all of the interface stack, sub- concrete realization of class 3, each sub-class of different types of containers used to organize the underlying data
Date : 2026-01-06 Size : 877kb User : nicai

DL : 0
假设有3个网页文件,网页1.txt,网页2.txt,网页3.txt。 读出所有数据并存入数据的结构体的链表中。 然后按价格排序后输出出来所有货品信息。 网页内容:货物名称:小麦 价格:¥3000.00,成交量1200, 涨幅:1.58 ,振幅:2.52 . struct SData { char sName[10] float jg int cj float zaf float zef } -Suppose there are three web documents, web 1.txt, pages 2.txt, pages 3.txt. Read all the data and the data structure into the linked list. Then sorted by price out of all the items of information output. Web Content: Name of Goods: wheat price: ¥ 3000.00, volume 1200, or: 1.58 , amplitude: 2.52 . Struct SData {char sName [10] float jg int cj float zaf float zef }
Date : 2026-01-06 Size : 710kb User : fdsf

string int char float之间的相互转换,非常全面实用。-string int char float between the conversion is very comprehensive and practical.
Date : 2026-01-06 Size : 1kb User : 彬彬

DL : 0
设计一个表示圆的类Circle,其数据成员有圆心坐标x和y及半径r。其成员函数为set(int,int,double)设置圆的属性、double circumference(void)计算周长、double area(void)计算面积。 在主函数中,声明圆类的对象,输入数据,通过类的成员函数设置圆的属性,计算并显示圆的周长和面积。 -Design said a round of classes Circle, the members of its data center coordinates x and y and radius r. Its member function set (int, int, a double) set round property, calculate the circumference of a double circumference (void), double the area (void) calculate the area. In the main function, the object of the class declaration round, the input data by a class member function to set the properties of a circle, calculate and display the circumference of a circle and area.
Date : 2026-01-06 Size : 910kb User : 秦润

DL : 0
用C++语言编写的int 栈的实现。为iStack 栈选择了固定长度的内存 -The int stack written C++ language implementation. IStack stack selected fixed length memory
Date : 2026-01-06 Size : 1.04mb User : lucy

DL : 0
编写一个void sort(int *x,int n)实现将x数组中的n个数据从大到小 排序 -Write a void sort (int* x, int n) descending order of the x array of n data
Date : 2026-01-06 Size : 3kb User : xioamage

DL : 0
最短路劲    假设湖是100×100的正方形,设湖的中心在(0,0),湖的东北角的坐标是(50,50)。湖中心的圆形小岛的圆心在(0,0),直径是15.一些凶猛的鳄鱼分布在湖中不同的位置。现已知湖中鳄鱼的位置和James Band可以跳的最大距离,请你告诉James Band一条最短的到达湖边的路径。他逃出去的路径的长度等于他跳的次数。-     typedef struct GraphNodeRecord{       int X /* x轴坐标*/       int Y /* y轴坐标*/       unsigned int Step /*跳至该点的步数*/       Vertex Path /*记录上一个点*/      } GraphNode      typedef GraphNode*Graph
Date : 2026-01-06 Size : 244kb User : 田茵

DL : 0
银行家算法是避免死锁的一种重要方法。通过编写一个模拟动态资源分配的银行家算法程序,进一步深入理解死锁、产生死锁的必要条件、安全状态等重要概念,并掌握避免死锁的具体实施方法。-#include<iostream> #include<string.h> #include<stdio.h> #define False 0 #define True 1 using namespace std int Max[100][100]={0} //各进程所需各类资源的最大需求 int Avaliable[100]={0} //系统可用资源 char name[100]={0} //资源的名称 int Allocation[100][100]={0} //系统已分配资源 int Need[100][100]={0} //还需要资源 int Request[100]={0} //请求资源向量
Date : 2026-01-06 Size : 222kb User : 陈最

int转换成char数组,即将int型数据转换成char数组型数据-int change to char array
Date : 2026-01-06 Size : 2.56mb User : 淋林

This magical single line can swap two number Do you want to know how it works just read following example code: #include<stdio.h> #define swap(x,y) (x^=y^=x^=y) main() { int a=3,b=5 swap(a,b) printf( d d a,b) } Output : 5 3 -This magical single line can swap two number Do you want to know how it works just read following example code: #include<stdio.h> #define swap(x,y) (x^=y^=x^=y) main() { int a=3,b=5 swap(a,b) printf( d d a,b) } Output : 5 3
Date : 2026-01-06 Size : 33kb User : ng

DL : 0
6-20 实现一个名为SimpleCircle的简单圆类,其数据成员int *itsRadius为一个指向其半径值的指针,设计对数据成员的各种操作,给出这个类的完整实现并测试这个类。(6-20 implement a simple circle named SimpleCircle, whose data member int *itsRadius is a pointer to its radius value, designs various operations on the data members, gives the complete implementation of the class and tests the class.)
Date : 2026-01-06 Size : 369kb User : lutt

我们在C语言编程中会遇到一些参数个数可变的函数,例如printf()这个函数,它的定义是这样的:   int printf( const char* format, ...) 它除了有一个参数format固定以外,后面跟的参数的个数和类型是可变的,例如我们可以有以下不同的调用方法: (We in the C programming language will encounter some function of the variable number of arguments, such as printf () function, which is defined like this: int printf (const char* format, ...) It is in addition to a fixed parameter format outside, followed by the number and type of parameters is variable, for example, we can have the following different calling method: )
Date : 2026-01-06 Size : 2kb User : 185058675
« 12 3 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.