![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其它
文章平均质量分 59
EnochChen_
这个作者很懒,什么都没留下…
展开
-
CUDA和cuDNN安装配置
CUDA(Compute Unified Device Architecture),是显卡厂商NVIDIA推出的运算平台。CUDA™是一种由NVIDIA推出的通用并行计算架构,该架构使GPU能够解决复杂的计算问题。原创 2022-11-15 15:43:41 · 6433 阅读 · 1 评论 -
卷积神经网络实践-猫狗分类
近年来,深度学习理论和技术都得到了迅速的发展,并且受到了越来越多的研究者的关注,深度学习技术在图像识别领域具有广泛的应用。原创 2022-10-25 20:05:34 · 3979 阅读 · 3 评论 -
共享自行车需求预测学习记录
共享自行车需求预测原创 2022-08-18 11:11:58 · 732 阅读 · 0 评论 -
用scanf、printf输入输出string型字符串
c语言里是没有string型的,string在c++里面。有的时候在c++里要用scanf、printf输入输出string型字符串,这是可以实现的,不过要做一点处理。具体操作看代码:#include<cstdio>#include<string>using namespace std;int main(){ int n; string str1; scanf("%d",&n); str1.resize(n); //给字符串原创 2022-02-13 14:15:48 · 3242 阅读 · 0 评论 -
char,short ,int ,long,long long,unsigned long long数据范围
char -2^7 ~ 2^7-1 (1 Byte)short -2^15 ~ 2^15-1 (2 Bytes)unsigned short 0 ~ 2^16-1 (2 Bytes)int -2^31 ~ 2^31-1 (4 Bytes)unsigned int ...原创 2022-01-23 14:40:57 · 319 阅读 · 0 评论 -
为什么cin,cout比scanf,printf慢
昨天一位同学找我询问这个问题,我大概明白,又不太明白之前只是知其然不知其所以然,所以今天特意总结一下cin、cout之所以效率低,是因为先把要输出的东西存入缓冲区,再输出,导致效率降低,而这段语句可以来打消iostream的输入、输出缓存,可以节省许多时间std::ios::sync_with_stdio(false);cin.tie(0);tie是将两个stream绑定的函数,空参数的话返回当前的输出流指针sync_with_stdio这个函数是一个“是否兼容stdio”的开原创 2021-11-30 10:19:21 · 1719 阅读 · 0 评论 -
greater<int>()和less<int>()的区别于用法
greater和less是头文件<xfunctional>中定义的两个结构。下面看它们 的定义,greater和less都重载了操作符()。 // TEMPLATE STRUCT greatertemplate<class _Ty> struct greater : public binary_function<_Ty, _Ty, bool> { // functor for operator> bool operator()(const _Ty原创 2021-11-23 20:40:41 · 376 阅读 · 0 评论