码迷,mamicode.com
首页 >  
搜索关键字:clear    ( 6379个结果
STL—— 容器(vector)元素的删除
1. clear() 将整个 vector 都删除 使用 vectorname.clear() 可以将整个vector 中的元素全部删除,但是内存不会释放,如下代码: 1 #include <iostream> 2 #include <vector> 3 4 using namespace std; ...
分类:其他好文   时间:2020-04-22 10:02:16    阅读次数:56
c#使用Split分割换行符 \r\n
c# 使用Split分割 换行符,方法如下(其余方法有空再添加): string str = "aa" + "\r\n" + "bb"; string[] ss = str.Split(new string[] { "\r\n" }, StringSplitOptions.None); ...
分类:Windows程序   时间:2020-04-21 18:11:57    阅读次数:90
结构化指针和单字节指针的区别
type PTCsRc = ^TCsRc; TCsRc = record ID:Word; Count:Integer; end; TForm1 = class(TForm) Memo1: TMemo; Button1: TButton; procedure FormCreate(Sender: T ...
分类:其他好文   时间:2020-04-21 18:04:02    阅读次数:54
linux send与recv函数详解
转自:http://www.cnblogs.com/blankqdb/archive/2012/08/30/2663859.html linux send与recv函数详解 1 #include <sys/socket.h> 2 ssize_t recv(int sockfd, void *buff ...
分类:系统相关   时间:2020-04-21 18:03:12    阅读次数:64
css中的浮动与清除浮动
浮动元素的四大特性: 1.浮动的元素脱标(脱离标准文档流) 2.浮动的元素互相贴靠 3.浮动的元素由"子围"效果 4.收缩的效果 清除浮动的四种方法: 给父盒子设置高度 clear:both 伪元素清除法 overflow:hidden 伪元素清除法: div::after{ display: bl ...
分类:Web程序   时间:2020-04-21 15:29:42    阅读次数:89
p1554 梦中的统计
题目如下: 思路:将int 类型的转化为字符串类型 利用了stringstream 要想持续使用输入流 必须要s.clear() 代码如下: #include<cstdio> #include<cstring> #include<iostream> #include<sstream> using n ...
分类:其他好文   时间:2020-04-21 13:03:37    阅读次数:53
Word文档下载 流
后台 1 public void DownFiletemple(string filepath) 2 { 3 FileInfo fileInfo = new FileInfo(filepath); 4 Response.Clear(); 5 Response.ClearContent(); 6 Re ...
分类:其他好文   时间:2020-04-20 18:52:45    阅读次数:65
爬取大众点评
clear_data.py #!/usr/bin/env python # -*- coding: utf-8 -*- import requests from docx import Document from docx.shared import Inches,Pt from docx.oxml ...
分类:其他好文   时间:2020-04-20 17:33:50    阅读次数:73
蓝桥历届试题
小计算器 上一轮运算的结果,是下一轮运算的第一个算子。进制也是。 #include<iostream> #include<algorithm> #include<string> const long long MAX=2E5+7; using namespace std; long long n,j ...
分类:其他好文   时间:2020-04-20 14:07:32    阅读次数:58
All about that base
The base (or radix) of a positional numeral system is the number of symbols that can be used to represent a number in that system. The base 1010 syste ...
分类:其他好文   时间:2020-04-20 11:47:10    阅读次数:74
6379条   上一页 1 ... 39 40 41 42 43 ... 638 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!