原创 動態規劃--0/1揹包問題

#include <iostream> #include <algorithm> using namespace std; int w[5]={0,2,7,3,8}; int v[5]={0,4,4,3,6}; int Space[5]

原创 C++不使用頭結點創建單鏈表,並實現刪除某個結點的功能

頭部聲明如下 #include <iostream> #include <malloc.h> using namespace std; typedef int ElemType; typedef struct LNode{ El