代码搜索:编程问题
找到约 10,000 项符合「编程问题」的源代码
代码结果 10,000
www.eeworm.com/read/447573/7549411
doc 背包问题.doc
www.eeworm.com/read/441649/7667717
txt 骑士问题.txt
#define OK 1
#define ERROR 0
#include
#include
#include
int N; //骑士总数
typedef int Status;
//定义循环链表
typedef struct LNode{
int data;
LNode *next;
}LN
www.eeworm.com/read/435015/7799156
txt 金山问题.txt
1.new delete malloc free
delete会调用对象的析构函数,和new对应free只会释放内存,
new调用构造函数。
malloc与free是C++/C语言的标准库函数,new/delete是C++的运算符。它们都可用于申请动态内存和释放内存。
对于非内部数据类型的对象而言,光用maloc/free无法满足动态对象的要求。对象在创建的同时要自动执行构造函数, ...
www.eeworm.com/read/399816/7833106
cpp 众数问题.cpp
#include"iostream"
#include"fstream"
using namespace std;
#define N 50000 //数组的长度(元素的数量不能超过这个数)
//快速排序子函数
void exchange(int &a,int &b){
int temp;
temp=a;a=b;b=temp;
}
//快速排序子函数
in
www.eeworm.com/read/434483/7864250
txt 迷宫问题.txt
迷宫问题
class TMaze //迷宫类
{
public:
TMaze(){} //构造函数
TMaze(char* fname);
www.eeworm.com/read/298817/7933266
c 灯塔问题.c
//灯塔问题
#include
#include
#include
int sz[11][11],cf=1,k,n,a[20],b[20],c[20];
void shuru(void);
void shuchu(void);
bool panduan(void);
void goujian(void);
vo
www.eeworm.com/read/298817/7933313
c 迷宫问题.c
#include
#define r 64
#define m2 8
#define n2 10
int m=m2-2,n=n2-2;
typedef struct
{
int x,y; //行列坐标
int pre;
}sqtype;
sqtype sq[r];
struct moved
{
int x, y; //坐标增量,取值-1
www.eeworm.com/read/297988/7982644
cpp 约瑟夫问题.cpp
#include
#include
struct DNode //定义双向链表型的节点类
{
int data;
DNode *left;
DNode *right;
};
void InitList(DNode *&HL)//初始化节点
{
HL=NULL;//表头指针置空
}
int ListEmpty(