腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
反向迭代流
、
、
、
这涉及到从std::istream_iterator或std::istreambuf_iterator构造std::
reverse
_iterator。<Iterator>{} from /opt/local/
浏览 5
提问于2013-07-04
得票数 1
回答已采纳
3
回答
与Armadillo稀疏矩阵无关的加法和减法
、
In file included from /usr/include/
c++
/4.8/bits/stl_algobase.h:67:0, from /usr/include/
c++
/4.8/iostream:39,
浏览 2
提问于2015-12-22
得票数 0
回答已采纳
5
回答
在模板类中使用排序(
C++
)
、
<class _Iterator> typename std::
reverse
_iterator<_Iterator>::difference_type std::operator-(const std::
reverse
_iterator<_Iterator>&, const std::
reverse
_iterator<_Iterator>&) operator-(const
reverse
_iterator::_List_iterator<i
浏览 6
提问于2014-01-01
得票数 1
回答已采纳
1
回答
逆迭代算法
、
incList.rend() && uniqueElement; ++searchIter) { In file included from /usr/local/include/
c+
+/6.1.0/bits/stl_algobase.h:67:0, from /usr/local/include/
c++
/6.1.0/list:60,from main.cpp:
浏览 0
提问于2016-06-30
得票数 1
回答已采纳
1
回答
自定义双向迭代器的for_each在
reverse
_iterator上需要OutputIterator
、
、
、
、
<my_iterator>
reverse
_it_end(12); from /usr/include/
c++
/4.9/
浏览 3
提问于2015-02-20
得票数 4
回答已采纳
3
回答
这个
c++
反转字符串函数有什么问题
、
void
reverse
(char s[]){int j = len - 1; cout:s ..我没有
C++
practice :$。
浏览 1
提问于2010-06-25
得票数 2
回答已采纳
1
回答
STL
reverse
_iterator错误
、
、
= fMap.rend()) { from c:\mingw\lib\gcc\mingw32\6.3.0\include\
c++
\iostreamIn instantiation of 'std::
reverse
_iterator<_Iterator> std::
r
浏览 20
提问于2019-03-18
得票数 1
回答已采纳
3
回答
在下面的代码中,这个反向()函数是如何工作的?
、
、
我理解它的大部分,但我不理解
reverse
()函数:为什么它要使用length / 2void
reverse
(char *s) { begin =
浏览 1
提问于2019-06-24
得票数 0
回答已采纳
3
回答
无法在list<int>上执行push_heap,在向量上有效
> decltype ((__x.base() - __y.base())) std::operator-(const std::
reverse
_iterator<_Iterator>&, conststd::
reverse
_iterator<_Iterator>&) ^~~~~~<_Iterator>&, const std::
浏览 0
提问于2017-02-17
得票数 0
1
回答
静态constexpr模板数组成员本身递归地需要
、
、
: unsigned i;}; struct Template { Element (
Reverse
?1 : 0), Element (
Reverse
?
浏览 1
提问于2017-04-07
得票数 7
3
回答
使用
C++
中的指针反转任意长度的字符串
、
、
#include<stdio.h> void
reverse
(char*); { gets(string); end =
浏览 0
提问于2013-04-19
得票数 0
3
回答
编写简单的
C++
测试
、
我的任务是为一些
C++
代码编写测试。我做了一个非常简单的函数来颠倒一个字符串。我用C#写过测试,但从来没有用过
C++
。
C++
测试是什么样子的?下面是我的代码: main接受一个命令行参数,将其发送到
reverse
以反转字符串,然后返回它。include <iostream>using namespace std; {bool test()
浏览 1
提问于2015-07-15
得票数 1
2
回答
C&
C++
中使用交换和递归的字符串反向性能
、
、
我在练习我的C&
C++
技能,然后我决定在使用两种语言中使用的方法时,做字符串反向问题。我写了一个递归的解决方案和索引方法。这里有4个反向函数;2个使用严格的C方法来计算,另2个使用
C++
(STL,String,algorithm)调用。 #include <string> // string #include <algorithm>
浏览 4
提问于2015-07-16
得票数 0
4
回答
使用
reverse
_iterator而不是const_
reverse
_iterator,并得到严重的编译器警告和错误
、
、
、
、
我目前正在学习
C++
,并且在使用反转一根绳子。当我试图运行下面的函数时,我会遇到严重的编译器错误。一个在这种情况下肯定是不够的。任何帮助都将不胜感激。:){ std::string+/7/
浏览 2
提问于2018-09-27
得票数 2
回答已采纳
1
回答
如何使用常量getters对std::set进行排序
、
、
谢谢: /usr/include/
c++
/4.6/bits/stl_algo.h: In function ‘void std::sort(_RAIter, _RAIter, _Compare) [with> typename std::
reverse
_iterator::difference_type std::operator-(const std::
reverse
_iterator<_Iterator>&, const std::
revers
浏览 0
提问于2012-09-25
得票数 5
回答已采纳
1
回答
如何将
C++
中的反转函数代码转换为Java
、
、
、
我已经用
c++
完成了处理器仿真器的分配,现在我正试着把整个代码转换成Java语言。这里出现的问题是,我们正在通过使用
C++
中的反向函数来混洗进程。用
c++
和Java编写的shuffle()函数代码就在下面!if (priority[0]<priority[1]){
reverse
(timeReq, timeReq + length + 1);
reverse</
浏览 2
提问于2015-05-04
得票数 0
2
回答
如何用循环反转数字?
我正确地使用了用
c++
编写的代码输出倒排数字,同时循环并输出了“无限”。var n = 352,
reverse
= 0, remainder; remainder = n%10; n = n / 10; console.
浏览 2
提问于2017-01-12
得票数 0
回答已采纳
3
回答
在
c++
中查找C样式字符*字符串的长度
、
、
我的主要职能是:#include "
reverse
.hpp" void
reverse
(char*); cout << str1 << " " << str2 << " " << str3 << " " << str4 << " " <
浏览 0
提问于2016-12-01
得票数 1
回答已采纳
1
回答
用C#编写
C++
std::
reverse
等价物最接近的方法是什么?
、
、
、
C++
标准库中的
reverse
算法等同于 void
reverse
(BidirectionalIterator first我想用C#编写等同的代码:{} 首先,如何传入两个对IEnumerator的引用,第二个引用可以反向传递其次,如果前一个问题的答案是否定的,那么有没有一种Skee
浏览 0
提问于2016-03-16
得票数 4
1
回答
C++
reverse
_iterator替代方案
、
、
、
显然,我的第一个想法是使用iterator和
reverse
_iterator,但奇怪的是,我正在使用的容器类的设计者认为不适合为容器定义一个有效的
reverse
_iterator (这里的
reverse
_iterators我已经有了一个需要
reverse
_iterator的算法。 我的想法是在算法的第一部分使用第一遍迭代器,当我执行算法时,将项push_front到一个新容器中,然后遍历新容器。这将占用内存,这在我的应用程序中并不关键,但这让我想知道:
C++
中是否有更干净的
reverse</em
浏览 1
提问于2010-11-20
得票数 3
回答已采纳
点击加载更多
相关
资讯
【LeetCode题解-007】Reverse Integer
LeetCode小白菜笔记2:Reverse Integer
C++
Django基础:URL重定向的HttpResponseDirect,redirect和reverse的用法详解
C++编程启蒙
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券