
Greatest Works of Art
这篇文章没有摘要。
Chapter2-贪心算法
#include<iostream> #include<algorithm> using namespace std; int main() { double c; int n; cout << "请输入载重总量及古董个数:"; cin >> c >> n; int* a = new int(n); cout << "请输入每件物品重量,用空格隔开:"; for (int i = 0; i …
1,129 2020-09-29 0 去围观
第二章-应用程序接口
测试程序 茶壶 #include<GL/glut.h> using namespace std; int main(int argc,char** argv) { void SetupRC(); void RenderScene(); glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE);//设置颜色缓冲区及颜色模式 glutInitW…
1,177 2020-09-19 0 去围观
Chapter 1-算法之美
1、算法复杂性 #include<iostream> using namespace std; int main() { int fac(int n); int x = 5; int result = fac(x); cout << "5的阶乘是:" << result; return 0; } // 递归计算阶乘 int fac(int n) { if (n < 0) …
1,181 2020-09-17 0 去围观