- 博客(8)
- 收藏
- 关注
原创 FindMaxSubArray
#include <iostream>using namespace std;struct MaxSubArray{ int low; int high; int sum; MaxSubArray(int InLow, int InHigh, int InSum) { low = InLow; high = InHigh; sum = InSum; }};...
2022-05-31 19:53:27 74
原创 CalculateCapacity
#include <iostream>using namespace std;int GetMaxIndex(int arr[], int start, int stop){ if (stop - start > 1) { int currentMax = arr[start + 1]; int currentMaxIndex = start + 1; for (int i = start + 2; i ...
2022-05-31 19:52:35 141
原创 gl 配置教程
1、vs安装目录\VC\Tools\MSVC\14.15.26726\include\建立"GL"文件夹。并将glut.h文件放置其中。2、glew32.lib、glew32s.lib、glut.lib放置在vs安装目录\VC\Tools\MSVC\14.15.26726\lib\x86中。3、glut.dll和glut32.dll放到C:\Windows\system324、(可先步骤)v...
2018-08-23 13:53:15 14600
原创 the first opengl program
#include "stdafx.h"#include <GL/glew.h>#include <GL/glut.h>#include <iostream>#pragma comment( lib, "glew32d.lib" ) using namespace std;void Init(){ glEnable(GL_CULL_FACE); GLfloat ...
2018-06-26 09:23:34 210
原创 select sort
//select sort int arr[20] = { 65,25,14,58,69,35,16,85,41,5,654,253,165,269,486,214,657,986,25,14 }; for (int s = 0; s < sizeof(arr) / sizeof(int); s++) { for (int ss = s + 1; ss...
2018-04-27 17:23:17 82
原创 insert sort
int arr[18] = { 65,25,14,58,69,35,16,85,41,5,654,253,165,269,486,214,657,986 }; for (int a = 1; a < sizeof(arr) / sizeof(int); a++) { for (int b = 0; b < a; b++) { ...
2018-04-27 15:42:18 105
原创 unreal engine pawn controlled spring arm camera
// Fill out your copyright notice in the Description page of Project Settings.#pragma once#include "CoreMinimal.h"#include "GameFramework/Pawn.h"#include "Camera/CameraComponent.h"#inclu
2017-06-23 13:16:36 459
原创 unreal engine timeline function
// Fill out your copyright notice in the Description page of Project Settings.#pragma once#include "Curves/CurveFloat.h"#include "Components/TimelineComponent.h"#include "CoreMinimal.h"#
2017-06-23 13:15:30 434
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人