ICode9

精准搜索请尝试: 精确搜索
  • bat 命令2022-04-15 20:03:40

    bat 命令 查找指定后缀名文件 @dir>[输出文件名].[格式后缀] /s /a /b [指定盘]:\*.[格式后缀] @dir>name.txt /s /a /b D:\*.mp4 批量修改文件后缀名 把所有待改文件放在同一个文件夹下 该文件夹下新建记事本 书写形如:rend *.flac *.mp3 (.flac->.mp3) 保存,改记事本后缀名为.bat

  • JS设计模式-适配器模式2022-02-04 23:01:45

    JS设计模式-适配器模式 当数据格式要求等发生变化时我们往往采用适配器模式 小例子 function getBeijingCity() { var address = [ {name:'chaoyang',id:101}, {name:'haiding',id:102} ] return address } //我们原来要求的数据格式为[{name: ,id:

  • begin end rbegin rend 迭代器2021-03-28 22:58:03

    位置 str.begin();指向字符串的第一个字符的位置str.end();指向字符串的最后一个字符的后一个位置;str.rbegin();指向字符串的最后一个字符的位置;str.rend();指向第一个字符串的前一个位置; void test() { string str = "1234"; cout << *str.rbegin() << endl; cout <

  • C++ SDL_ttf文字显示2021-03-10 22:33:48

    C++ SDL_ttf文字显示 配置请参照前面的笔记https://www.cnblogs.com/zzr-stdio/p/14514043.html 需要下载配置SDL_ttf,下载地址:http://www.libsdl.org/projects/SDL_ttf/,配置过程与SDL_image类似。 示例程序: #include <iostream> #include<SDL.h> #include<SDL_image.h> #include<S

  • C++ SDL2中SDL_Renderer使用2021-03-10 21:35:25

    C++ SDL2中SDL_Renderer使用 配置请参照前面的笔记https://www.cnblogs.com/zzr-stdio/p/14514043.html 主要介绍SDL_Renderer。 示例程序: #include <iostream> #include<SDL.h> #include<SDL_image.h> using namespace std; const int WIDTH = 800; const int HEIGHT = 600; int

  • 寒假算法训练6-D(清理手机内存问题,重要性有1和2)2021-03-06 10:29:06

    Input 5 5 7 5 3 2 1 4 2 1 1 2 1 1 3 2 1 5 10 2 3 2 3 2 1 2 1 2 1 4 10 5 1 3 4 1 2 1 2 4 5 3 2 1 2 2 1 2 1 Output 2 -1 6 4 3 思路:将两种重要性的app根据内存大小从大到小排序。然后枚举。枚举也很讲究,最好用vector记录下前i项和。 #include <bits/stdc++.h> using n

  • C++学习心得2021-01-16 18:59:11

    1.二叉树的遍历(先序,中序,后序,层次):https://zhuanlan.zhihu.com/p/56895993 2.链表处理:http://c.biancheng.net/view/1570.html 3.循环本身在处理数据时就存在先后顺序,可以利用这一点简化编程 4.数组Vector排序:从小到大:sort(vector.begin(),vector.end());从大到小:sort(vector.rbeg

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有