C++
文章平均质量分 79
创不了浩
代码练习生
展开
-
GCC是什么? gcc与g++的区别 具体编译细节
GCC是什么?gcc与g++的区别?原创 2022-09-25 12:14:40 · 4384 阅读 · 0 评论 -
VSCode 报错:GDB failed with message:“path : not in executable format: File format not recongnized.
VSCode 报错:GDB failed with message:“path : not in executable format: File format not recongnized.原创 2022-09-25 11:42:34 · 2394 阅读 · 1 评论 -
C++ 中vector常见的使用方法
vector常用方法初始化,插入,删除,遍历,打印,迭代器/*https://blog.csdn.net/msdnwolaile/article/details/52708144*/ #include<stdio.h>#include<vector>#include<iostream>using namespace std;int main(...原创 2020-04-29 12:08:21 · 308 阅读 · 0 评论 -
c++中sort函数的用法,如何自定义排序方法(数组,结构体,向量)
sort用法0 参数意义1 给数组排序 默认排序+自定义排序2给结构体排序3给向量排序不太清楚vector用法的可以参考这里stio的用法0 参数意义Sort函数有三个参数:(1)第一个是要排序的数组的起始地址。(2)第二个是结束的地址(最后一位要排序的地址)(3)第三个参数是排序的方法,可以是从大到小也可是从小到大,还可以不写第三个参数,此时默认的排序方法是从小到大排序。1 给数组排...原创 2020-04-29 11:40:09 · 3055 阅读 · 0 评论