
C++
熔岩XXX
这个作者很懒,什么都没留下…
展开
-
Effective C++读书笔记(条款01-04)
条款01:View C++ as a federation of languages作者将C++分为四个部分C:C++以C为基础,C++完全兼容C,所以在C++的编程过程中部分的写法本质上依然是C,但是C语言具有的局限有没有模板(template)、异常(exceptions)、重载(overloading) Object-Oriented C++:包括classes、封装(encaps...原创 2019-03-05 22:43:55 · 270 阅读 · 0 评论 -
macOS clion配置pmp-library环境
macOS clion配置pmp-library环境pmp-library提供了计算机图形学中mesh的half-edge数据结构表示以及一些有效的算法和可视化工具pmp-library官网本文将介绍其在mac上的环境配置和在clion中的使用1.pmp的环境配置首先在终端中输入如下命令:git clone --recursive https://github.com/pmp-libr...原创 2019-06-17 15:27:46 · 592 阅读 · 0 评论 -
【leetcode】#2 Add Two Numbers【Linked List】【Medium】
2.Add Two NumbersYou are given twonon-emptylinked lists representing two non-negative integers. The digits are stored inreverse orderand each of their nodes contain a single digit. Add the two ...原创 2019-04-28 19:23:52 · 279 阅读 · 0 评论 -
【leetcode】#509 Fibonacci Number【Array,DP】【Easy】
509.Fibonacci NumberTheFibonacci numbers, commonly denotedF(n)form a sequence, called theFibonacci sequence, such that each number is the sum of the two preceding ones, starting from0and1. T...原创 2019-04-27 19:21:45 · 233 阅读 · 0 评论 -
【leetcode】#14 Longest Common Prefix【Array】【Easy】
14.Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty string"".Example 1:Input: ["flowe...原创 2019-04-25 21:21:34 · 248 阅读 · 0 评论 -
HalfEdge实现1——Mesh的建立、查询相关操作、Mesh的读入与输出(Paraview可视化)
0.前言本文将从HalfEdge简介、数据结构的定义、mesh的建立、顶点的顶点邻居查询、顶点的面邻居查询、边的邻居查询、网格数据结构的输入与输出、测试结果八个方面。因作者水平有限,文中难免会有错误之处,希望读者批评指正。1.HalfEdge简介HalfEdge(半边)是一种用于表示多边形网格(Polygon Mesh)的一种常用方法,它能够表示任意的多边形网格(必须是流形)。Half...原创 2019-03-15 20:07:50 · 4220 阅读 · 3 评论 -
【leetcode】#4 Median of Two Sorted Arrays【Array】【Hard】
4.Median of Two Sorted ArraysThere are two sorted arraysnums1andnums2of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+...原创 2019-03-07 21:57:05 · 187 阅读 · 0 评论 -
【leetcode】#1 Two Sum【Hash】【Easy】
1.Two SumGiven an array of integers, returnindicesof the two numbers such that they add up to a specific target.You may assume that each input would haveexactlyone solution, and you may not u...原创 2019-03-07 21:15:50 · 202 阅读 · 0 评论 -
【leetcode】#15 3Sum【Array】【Medium】
15.3SumGiven an arraynumsofnintegers, are there elementsa,b,cinnumssuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:The solution set mus...原创 2019-03-09 17:02:12 · 211 阅读 · 0 评论 -
【leetcode】#11 Container With Most Water【Array】【Medium】
11.Container With Most WaterGivennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of lineiis ...原创 2019-03-09 16:57:30 · 211 阅读 · 0 评论 -
Clion配置OpenGL
参考链接:https://blog.youkuaiyun.com/m0_37748310/article/details/80391026由于我用的是Dev c++配置的MinGW,这里贴上我的CMakeList.txtcmake_minimum_required(VERSION 3.13)project(OpenGL3)link_directories("D:\\Dev-Cpp\\MinGW...转载 2019-03-06 15:10:47 · 1338 阅读 · 0 评论 -
利用泊松变形实现平面浅浮雕生成
利用泊松变形实现平面浅浮雕生成**参考论文:**Zhang Y W , Zhou Y Q , Li X L , et al. Bas-Relief Generation and Shape Editing through Gradient-Based Mesh Deformation[J]. IEEE Transactions on Visualization and Computer Grap...原创 2019-07-15 21:42:49 · 1198 阅读 · 0 评论