代码搜索结果

找到约 10,000 项符合 C++ 的代码

北大oj 1454 c++源代码.cc

#define MAXSIZE 800 #include #include void strturn(char str[MAXSIZE]) { int i = 0, len = strlen(str); char temp; while (i < len){ temp = str[i]; str[i] = str[len -

北大oj 3481 c++源代码.cpp

#include #define MAXSIZE 1000000 typedef struct{ long id; long prior; } elem; typedef struct{ elem order[MAXSIZE]; long length; } Client; void MAX_HEAPIFY(Client &a, int i

pso程序的源代码c++ .txt

pso程序的源代码 pso程序的源代码-粒子群优化算法源程序 作者:FashionXu 一个pso程序的源代码。在vc.net2003下面通过。 建议:看代码之前,请先弄明白pso是怎么回事。然后请对应着来:程序中用Agent代表一只鸟,PSO代表鸟群。阅读源代码,不要顺着看,先看main(),然后按