腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
反向
C++
vector
<
char
>
、
我在
C++
上并不是很棒。问题是一个简单的
反向
字符串。这是一个Leetcode问题,我正在尝试递归地解决它。void reverse_str(
vector
<
char
>& s, int len) if (len <= 1) return; swap(s[0], s[len-1]reverse_str(s.front(), len-2); // Compilation error when I call s.front() void reve
浏览 17
提问于2020-10-09
得票数 0
回答已采纳
5
回答
逆序推入向量
、
如何将
char
[]数组中的byes按
反向
顺序推入std::
vector
<
char
>中?我想推转到因此,最终v将包含 {'g','n','i','r','t','s',' ','a'
浏览 5
提问于2013-10-21
得票数 5
回答已采纳
2
回答
C++
cast std::
vector
<
char
*> to
char
**
、
、
如何在
C++
中将std::载体转换为
char
**? 我使用std::push_back,因为我需要在一个循环中使用一些字符串,但是我必须调用一个需要
char
**的C函数。
浏览 1
提问于2015-12-30
得票数 1
1
回答
C++
:
vector
<string> to
char
**
、
我遇到的问题实际上是创建
char
**。这是我目前的实现,在源代码中注释掉了,因为它不工作: int argc=strings.size(), i=0;
vector
<string>::iterator it; a
浏览 16
提问于2016-01-08
得票数 1
1
回答
尝试在类中使用
vector
<
vector
<int>>
std::
vector
<int>}’ to ‘std::basic_ostream<
char
>::__ios_type& (*)(std::basic_ostream<
char
>::__ios_type&) {aka std::basic_ios<
char
>& (*)(std::basic_ios<
char
>&)}’ /usr/include/
c++
/6.3
浏览 1
提问于2017-03-26
得票数 0
回答已采纳
3
回答
如何在程序中改变多维数组的大小?
、
、
、
int choicei = 17;const int row = 15;int play = 0; {
char
Array[row][col]; } void fill(
char
Array[row][c
浏览 0
提问于2014-01-08
得票数 0
1
回答
完全不了解大规模
c++
错误输出。我认为这与预定义的函数和迭代器有关。
、
、
'c:\mingw\include\
c++
\4.9.1\bits\stl_
vector
.h_Alloc = std::allocator<std::basic_string<
char
> >]' c:\mingw\include\
c++
\4.9.1\bits\stl_
vector
.h:413<s
浏览 2
提问于2015-03-27
得票数 0
回答已采纳
2
回答
如何在
C++
中合法地声明向量变量?
以下是一些例子:std::
vector
<
char
[256]> k;std::
vector
<std::
vector
<int>/include/
c++
/v1/
vector
:369:29: note: in instantiation of member function 'std::__
浏览 14
提问于2020-08-05
得票数 2
回答已采纳
3
回答
以
反向
顺序将向量复制到另一个向量
、
、
我是
C++
的新手。int temp[] = {3, 12, 17}; reverse(n_v.begin(), n_v.end()); //Reversing new
vector
有没有简单的方法将向量
反向
复制到STL中的另一个向量?
浏览 3
提问于2015-01-26
得票数 7
回答已采纳
4
回答
C++
和C#中的混合数组
、
、
是否可以在
C++
和C#中创建混合阵列例如: Array [][] = {{'a',1},{'b',2},{'c',3}};
浏览 2
提问于2010-12-09
得票数 5
4
回答
反向
迭代器无法编译
我正在尝试编译一个
反向
迭代器,但是我的尝试给了我一个可怕的混乱。代码的最小示例是...In file included from /usr/include/
c++
/4.4/bits/stl_algobase.h:69, from /usr/
浏览 0
提问于2010-07-01
得票数 5
回答已采纳
3
回答
c++
从字符串创建二义词
、
、
我有一个任务来实现"void
char
(makeAmbigram*)“,它将在屏幕上打印拉丁字符串或返回类似于‘ not ’的东西。我猜它只是检查字符串是否只包含SNOXZHI,并向后打印字符串。在处理cpp时,我完全是个新手,所以这就是我创建的:using namespace std;
char
[]reversed; { if(*s != '\0
浏览 2
提问于2010-03-23
得票数 2
3
回答
试图输出向量时在第30行出现编译器错误
、
、
、
我刚开始在线学习
C++
课程,现在,我正在做向量。有人能告诉我我在30号和31号线上做错了什么吗?在索引0和1处,我似乎无法输出
vector
_2d中的内容。谢谢!<
char
>} In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/
c++
/iostream:39,std::
vector
<int>'} to 'std
浏览 8
提问于2021-12-13
得票数 0
2
回答
过载ostream::<<到向量的打印向量
、
、
<int>*; _OI = std::ostream_iterator<std::
vector
<int>,
char
, std::
char
_traits<
char
> >]’ /usr/include/
c
<int>*; _OI = std::ostream_iterator<std::
vector
<int>,
char
, std::
char
_tra
浏览 3
提问于2015-07-13
得票数 2
回答已采纳
1
回答
通过std::istream从const std::
vector
<
char
>读取
、
、
(int argc,
char
** argv) { doStuff(v);}());}; const_vectorbuf<const
char
>
浏览 1
提问于2014-08-04
得票数 1
回答已采纳
2
回答
函数模板参数推导中是否有强制隐式转换的方法?
、
、
<
char
const*> const& vcp,
char
const * const& value) std::cout << "count_(
vector
<
char
const*>,_(vs, std::string("
C++
")) << '\n'; std::
vector
<double> vd{3.14, 5.2, 7.7, 3.14
浏览 6
提问于2020-12-31
得票数 1
回答已采纳
1
回答
gcc编译器错误: stl_construct.h
、
我有一个
C++
源文件FileLogger.cpp,它包括:#include <sstream> from /mnt/c/<snip>/FileLogger.cpp:23: /usr/include/
c++
/4.8/bits
浏览 0
提问于2017-03-21
得票数 0
2
回答
递归
C++
中的向量切片
、
、
、
、
下面是一个使用python
反向
打印列表的简单函数。print_list(lst): return我必须在不修改函数原型的情况下用
C++
重写这个函数,而且我也不想使用静态/全局索引变量。 <e
浏览 3
提问于2020-08-26
得票数 0
4
回答
gcc reverse_iterator比较运算符缺失了吗?
、
、
、
我和gcc在非常数容器上使用常量
反向
迭代器时遇到了问题。嗯,只有某些版本的“gcc”。#include <
vector
> const
char
v0[4] = "abc";
浏览 1
提问于2010-01-26
得票数 5
回答已采纳
3
回答
vector
<unsigned
char
>的
c++
find函数
、
、
、
、
我想在我的
vector
<unsigned
char
> message中找到空格
char
" "pos = find(message.begin*, std::
vector
<unsigned
char
> >, _Tp =
char
[2]]’: /usr/include/
c++</
浏览 0
提问于2011-06-26
得票数 4
回答已采纳
点击加载更多
相关
资讯
C++中的vector和Java中的ArrayList的构造函数的区别
C++的range-based for循环
遍历字符串
Bitcoin 序列化库使用
你们以为我在学C加加?其实我在学Python!人生苦短!
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
智聆口语评测
活动推荐
运营活动
广告
关闭
领券