码迷,mamicode.com
首页 >  
搜索关键字:invalid namespace    ( 44721个结果)
Northern Eurasia Finals Online 2020 L - Lookup Performance
处理了一年的边界问题 #include <bits/stdc++.h> using namespace std; const int N = 2e5 + 10; #define fi first #define se second #define sz(v) ((int)(v).size()) #d ...
分类:其他好文   时间:2021-03-15 11:18:36    阅读次数:0
C++ vector动态容量变化
Tips:也可以尝试对deque,list进行类似的实验以加深理解。 #include <iostream> #include <vector> //#include <deque> using namespace std; int main() { vector <int> a; for(int ...
分类:编程语言   时间:2021-03-15 11:09:37    阅读次数:0
LRU代码实现
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> PII; #define ls l,mid,rt<<1 #define rs mid+1,r,rt<<1|1 const ...
分类:其他好文   时间:2021-03-15 11:08:22    阅读次数:0
C++实现对本地文件加行号并输出到本地文件
#include <fstream> #include <strstream> using namespace std; int main(int argc,char*argv[]) { strstream textfile; ifstream in(argv[1]); textfile << in ...
分类:编程语言   时间:2021-03-15 11:07:17    阅读次数:0
E - Number of Simple Paths
一个图,n个点,n条边,没有重边和自环。 那么多出的一条边必定使他成为基环树。 要求去计算简单路径的个数。 简单路径:与方向无关的路径。 又因为在树上,两点的路径唯一确定,那么路径仅仅与起点与终点有关。 也就是C(2,n)这样。 但是如果路径经过环,那么中间经过环的部分就可以有两种走法。 也就是说答 ...
分类:其他好文   时间:2021-03-15 10:49:05    阅读次数:0
20201009-安装TortoiseGit报错误信息:Invalid Driver: E:\
出错原因是因为原来C盘不够用,重新调整了磁盘大小。导致之前安装的“TortoiseGit”无法使用。 解决方法: 步骤1:工具名:Windows Install Clean Up,大家可以在百度上搜索安装即可。 步骤2:删掉之后还得清理注册表,这个百度也有教程。 步骤3:使用管理员身份打开cmd窗口 ...
分类:其他好文   时间:2021-03-12 14:25:09    阅读次数:0
C#的格式化输出字符串
using System; //导入命名空间 using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lesson_one //这里 ...
分类:Windows程序   时间:2021-03-12 14:18:50    阅读次数:0
C#数据库连接
SQLMANAGE 数据库连接管理 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;u ...
分类:数据库   时间:2021-03-12 14:16:14    阅读次数:0
引发类型为“System.Windows.Forms.AxHost+InvalidActiveXStateException”的异常 解决办法
出现题目的异常,多是引用第三方控件引起的。 在NEW时,需要初始化该对象。 AxESACTIVEXLib.AxESActiveX ax = new AxESACTIVEXLib.AxESActiveX(); ((System.ComponentModel.ISupportInitialize)(th ...
分类:Windows程序   时间:2021-03-10 13:40:42    阅读次数:0
C++11 shared_ptr(智能指针)详解
要确保用 new 动态分配的内存空间在程序的各条执行路径都能被释放是一件麻烦的事情。C++ 11 模板库的 <memory> 头文件中定义的智能指针,即 shared _ptr 模板,就是用来部分解决这个问题的。只要将 new 运算符返回的指针 p 交给一个 shared_ptr 对象“托管”,就不 ...
分类:编程语言   时间:2021-03-10 13:24:26    阅读次数:0
共44721条   上一页 1 ... 29 30 31 32 33 ... 4473 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!