腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(40)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
超载预增量算子
以下是宣言:以下是定义: Node* next; class Iterator{ Iterator& operator++();//
pre-increment
浏览 1
修改于2020-05-03
得票数 2
回答已采纳
1
回答
如何区分C++中两个相似的操作符重载
void show() { cout << longitude << "," << latitude << endl; } location operator++(); //
pre-increment
location operator++(int); // post-increment location location::operator
浏览 5
提问于2020-08-03
得票数 0
回答已采纳
3
回答
操作符优先级不明确,请解释为什么这里没有遵循运算符的优先顺序?
x = y = z = 1;运算符的优先顺序如下--所以答案应该是--2.
浏览 1
修改于2013-08-02
得票数 4
回答已采纳
2
回答
后增量运算符和前增量运算符的性能差异?
for (int n = 0; idx < max; ++idx) { /* Note
pre-increment
*/}for (int n = 0; idx < max
浏览 0
修改于2019-10-10
得票数 9
1
回答
Swift中的增量前后算子
//Post and
Pre-Increment
Test { var a : Int = 10
浏览 1
提问于2014-08-06
得票数 0
回答已采纳
3
回答
重载++运算符以递增迭代器
iterator& operator ++ () { //
pre-increment
std::list<int>::iterator i = list_Values.begin(
浏览 1
修改于2012-02-22
得票数 2
回答已采纳
2
回答
在bash中,变量后增量/递减和前增量/递减有什么区别?
: variable post-increment and post-decrement variable
pre-increment
浏览 1
提问于2013-06-13
得票数 0
回答已采纳
1
回答
Java中的增量前后行为
op1 = ++j (Since it is
pre-increment
, the value is 2, and j is 2) op2 = j++ (Since it is post-increment
浏览 2
提问于2015-03-03
得票数 1
回答已采纳
3
回答
arr[x++]的优先级--
我对C语言优先级和绑定的研究没有提供与这种情况相关的答案,我想知道当与其他post/pre - crements结合使用时,post/
pre-increment
和post/pre-decrement的一般规则
浏览 1
提问于2015-08-03
得票数 3
2
回答
错误C2027:使用未定义类型-如何声明类
generic_iterator(int *ptr); generic_iterator& operator++(); //
pre-increment
generic_iterator(int *ptr); generic_iterator& operator++(); //
pre-increment
浏览 5
修改于2015-11-27
得票数 7
回答已采纳
2
回答
增量后超载中的冗余?
// The following operator++() represents overloading of
pre-increment
MyIncrDecrClass& operator++()
浏览 0
修改于2015-12-07
得票数 0
回答已采纳
1
回答
C++:删除自定义迭代器上的增量后操作符安全吗?
delete; // disallow post-increment, i.e. it++ custom_iterator operator++() { ... } // we only define
pre-increment
浏览 1
修改于2014-04-26
得票数 0
回答已采纳
1
回答
为什么我在组合增量运算符时得到"error: expression is not assignable“
我正在尝试连接post和
pre-increment
运算符。我看到,对于一些涉及post操作符的组合,我得到了不可分配的错误。这是因为一旦定义了j的值,post运算符就会被计算。
浏览 2
修改于2019-07-25
得票数 2
4
回答
为前增量和后增量重载++
main() CSample(int val) : m_iValue(val) {} // Overloading ++ for
Pre-Increment
浏览 0
修改于2021-11-24
得票数 57
1
回答
为什么它不对++使用我的重载操作符?
下面是++的运算符: std::list<value_type>::iterator i = listOfValues.begin
浏览 0
提问于2012-02-18
得票数 5
回答已采纳
4
回答
针对循环C++的优化
我知道
pre-increment
比post-increment更好,因为它改变了原始值,而不是创建临时和递增。但是无论如何,编译器通常会优化这个微小的差异。
浏览 0
修改于2017-12-14
得票数 0
3
回答
编译器优化中断延迟迭代器
<< endl; cout << "Copy: "<< it2->first << " , " << it2->second << endl; cout << "Reverse Iterator copy: " << rit2->first << " , " &l
浏览 5
修改于2016-03-03
得票数 4
回答已采纳
1
回答
转发声明cpp无效使用不完整的类型
const int* getCount() const{return &(this->count);} //
Pre-increment
浏览 0
提问于2016-01-04
得票数 0
1
回答
Java Check for Calculator程序
if(str.contains("+")) num += intStack.get(++i); //
pre-increment
浏览 2
修改于2020-06-05
得票数 1
1
回答
我正在尝试为我的DynamicArray类创建一个迭代器。为什么STL排序不能与我的迭代器一起工作?
{ return *ptr; } // pointer operator, returns pointer void operator++() { if( ptr ) ptr++; } //
pre-increment
浏览 0
提问于2016-03-19
得票数 2
第 2 页
领券