码迷,mamicode.com
首页 >  
搜索关键字:.cpp    ( 13186个结果
静态成员函数和静态成员变量,以及继承
Father.hpp 1 // 2 // Created by Administrator on 2021/7/15. 3 // 4 5 #ifndef C__TEST01_FATHER_HPP 6 #define C__TEST01_FATHER_HPP 7 8 9 class Father { ...
分类:其他好文   时间:2021-07-16 17:31:08    阅读次数:0
AcWing 每日一题 - 暑假
本篇解题记录题源来自 AcWing 的每日一题 · 暑假 补题链接:Here Week 1 星期四 AcWing 3761. 唯一最小数 利用 map 存出现过数的下标和次数即可 vector<int>a; int n; int main() { cin.tie(nullptr)->sync_wit ...
分类:Windows程序   时间:2021-07-12 17:54:32    阅读次数:0
【题解】可持久化平衡树
Problem \(\text{Solution:}\) 考虑用 fhq_treap 来实现这个东西。 每次的新建版本,我们可以新建一个根,并直接利用 merge 和 split 操作在上一个版本上利用信息。 注意 split 和 merge 中都需要新建节点,否则会影响之前版本的结构。 #incl ...
分类:其他好文   时间:2021-07-05 17:13:41    阅读次数:0
Qt 字符串转md5
Qt 字符串转md5 #include <QCryptographicHash> QString strToMd5(QString str) { QByteArray qba = QCryptographicHash::hash(str.toLatin1(), QCryptographicHash: ...
分类:其他好文   时间:2021-07-02 16:21:17    阅读次数:0
LCS & LCIS
LCS 操作对象:两个长度不一定相等的字符串。 例题 string s, t; int f[maxn][maxn]; int main() { cin >> s >> t; int ls = s.length(), lt = t.length(); for (int i = 1; i <= ls; ...
分类:其他好文   时间:2021-06-29 15:57:12    阅读次数:0
C++ com 组件的使用
// CommonTest.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <atlbase.h> #incl ...
分类:编程语言   时间:2021-06-28 20:36:02    阅读次数:0
Java-IO流系列-FileInputStream和FileOutStream
FileInputStream和FileOutStream 测试FileInputstream和FileOutpuStream的使用 结论: 对于文本文件(. txt,.java,.c..cpp),使用字符流处理 对于非文本文件( . jpg ,.mp3, . mp4, .avi,.doc.ppt. ...
分类:编程语言   时间:2021-06-28 19:37:54    阅读次数:0
关于对‘pthread_create’未定义的引用解决方法
编译时失败是因为: 缺少lpthread该库支持 所以编译时,这样编译即可解决线程创建函数为定义的引用 c语言:gcc xx.c -lpthread -o xx c++语言:g++ xx.cpp -lpthread -o xx ...
分类:其他好文   时间:2021-06-25 16:57:41    阅读次数:0
题解 CF7E 【Defining Macros】
题意 给你一些宏定义,判断最后的式子是否能正确表达原来的意思 思路 首先,对读入进行处理,可以忽略#include,运用1至2次$cin$进行这一步,然后再cin一次读到宏定义名字,再$getline$得到宏定义表达式,进行一下去空格。然后对每一个宏定义先进行判断,分为4种情况: 1、完全正确 2、 ...
分类:系统相关   时间:2021-06-24 18:00:37    阅读次数:0
clion的安装与配置
安装 下载.tar.gz压缩包 方法一:去官网直接下载 https://www.jetbrains.com/clion/download/#section=linux 方法二:使用 wget命令:wget https://download.jetbrains.8686c.com/cpp/CLion- ...
分类:其他好文   时间:2021-06-24 17:42:17    阅读次数:0
13186条   1 2 3 4 ... 1319 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!