博客
关于我
2020.1.29
阅读量:135 次
发布时间:2019-02-27

本文共 348 字,大约阅读时间需要 1 分钟。

唉最近CF真是把人打自闭了,时常会突然意识到自己不过是个编程小白;

在编程时,for循环可是我的老朋友,简单直白,代码量少,适合快速实现需求。而且输入处理时,只要记得在引用时加上&,就能轻松解决问题。

最大值和最小值的寻找工具max_element()和min_element()真的挺实用的,找到最大值或最小值后,只需要减去首地址的值就能得到下标了,这点特别方便。

auto这个关键字实在是太香了,直接代替迭代器,代码简洁得让人心满意足。

至于emplace和push_back、emplace_front和push_front的区别,C++11版本的emplace效率更高,适合在容器初始化时使用,效率比普通的push操作快不少。

其实很多题目看起来都很难,但只要多练练,总能找到解决办法的。

转载地址:http://dfcb.baihongyu.com/

你可能感兴趣的文章
TCP基本入门-简单认识一下什么是TCP
查看>>
tableviewcell 中使用autolayout自适应高度
查看>>
Orcale表被锁
查看>>
svn访问报错500
查看>>
org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned
查看>>
org.apache.ibatis.type.TypeException: Could not resolve type alias 'xxxx'异常
查看>>
org.apache.poi.hssf.util.Region
查看>>
org.apache.xmlbeans.XmlOptions.setEntityExpansionLimit(I)Lorg/apache/xmlbeans/XmlOptions;
查看>>
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
查看>>
org.hibernate.HibernateException: Unable to get the default Bean Validation factory
查看>>
org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
查看>>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
查看>>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
查看>>
org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded
查看>>
org.tinygroup.serviceprocessor-服务处理器
查看>>
org/eclipse/jetty/server/Connector : Unsupported major.minor version 52.0
查看>>
org/hibernate/validator/internal/engine
查看>>
SQL-36 创建一个actor_name表,将actor表中的所有first_name以及last_name导入改表。
查看>>
ORM sqlachemy学习
查看>>
Ormlite数据库
查看>>