代码搜索:背包问题
找到约 10,000 项符合「背包问题」的源代码
代码结果 10,000
www.eeworm.com/read/276181/10758501
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/273188/10923486
txt 金山问题.txt
1.new delete malloc free
delete会调用对象的析构函数,和new对应free只会释放内存,
new调用构造函数。
malloc与free是C++/C语言的标准库函数,new/delete是C++的运算符。它们都可用于申请动态内存和释放内存。
对于非内部数据类型的对象而言,光用maloc/free无法满足动态对象的要求。对象在创建的同时要自动执行构造函数, ...
www.eeworm.com/read/271311/11000998
cpp 生日问题.cpp
#include
struct Date
{
int month;
int day;
int year;
};
class datetype
{
public:
datetype(Date b);
void modify(int m,int d,int y);
void tomorrow();
void
www.eeworm.com/read/461892/7214825
dsw 炒饭问题.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
www.eeworm.com/read/461892/7214831
dsp 炒饭问题.dsp
# Microsoft Developer Studio Project File - Name="炒饭问题" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Cons
www.eeworm.com/read/461892/7214833
cpp 寻宝问题.cpp
#include
using namespace std;
#include
struct data{
int w;
int p;
}a[100000];
inline bool psort(data a,data b)
{
if(a.p>b.p)
return true;
else return false;
www.eeworm.com/read/461892/7214835
opt 炒饭问题.opt
www.eeworm.com/read/461892/7214848
ncb 炒饭问题.ncb
www.eeworm.com/read/461892/7214852
plg 炒饭问题.plg
Build Log
--------------------Configuration: 炒饭问题 - Win32 Debug--------------------
Command Lines
Creating temporary file "d:\Temp\RSP16E.tmp"
www.eeworm.com/read/461892/7214863