首页
查找话题
首页
c++循环里面定义重名为什么不报错?
c++循环里面定义重名为什么不报错? 第1页
1
pansz 网友的相关建议:
因为循环内定义的A作用范围并不是循环结束后才结束。而是一次循环就结束。
所以这个变量声明了10次结束了10次。
在for语句内的那个int i才是循环结束后才失效的。
c++循环里面定义重名为什么不报错? 的其他答案 点击这里
1
相关话题
只会c如何快速上手STL?
如何评价《c++并发编程实战》这本书?
精通 C++ 是种怎样的体验?
c++初学者有必要深挖这样的问题吗?
C++ 中 new 和定位 new 的返回值都是 void*,却为什么可以被赋值给不同类型的指针?
大一学生,刚开始学习编程,但感觉自己并没有天赋怎么办?
有哪些值得学习的国内 c++ 开源项目?
请问指针的这些概念如何理解?
c++ 程序运行时异常处理,怎么定位到出错代码行?
如果你是一个C++面试官,你会问哪些问题?
前一个讨论
如何看待雷军发问「大家真的需要 D8100/D9000 版本的小米 12吗」?
下一个讨论
为什么迷宫从终点向起点走更容易?
相关的话题
如果有一个按钮按下,世界上所有的c,c++,c#语言代码都无效,我们的生活会发生什么?
运算符+左右操作数地位相等吗?
写代码没激情怎么办?
现在的编程语言越来越多,为什么 C 和 C++ 还没有被现在的时代淘汰呢?
如何在一个月内提高 C++ 水平?
通俗地讲为何要有返回值?
LeetCode上 C++ 官方题解为什么有很多没有写delete,不会内存泄漏么?面试时也可以么?
什么时候用C而不用C++?
如何评价"Null reference - my billion-dollar mistake"?
C++中如何将string类型转换为int类型?
对于C#与C++之间的数据传输,用GCHandle或Marshal是否就是最好的方案了?
请问数学的函数和编程语言的函数有什么区别呢?
C++中函数返回的过程是什么样的?
有哪些值得学习的国内 c++ 开源项目?
为什么存在着size_t, LPCSTR, wchar_t等别名?
为什么这个程序电脑运行的结果和手机运行的不一样?数值小的时候一样?
有什么像a=a+b;b=a-b;a=a-b;这样的算法或者知识?
如果 C# 当年设计成一个彻底编译到机器码的但有运行时的 AOT 语言,能不能真的拿来代替 C++?
腾讯以及各大厂的 C++ 开发环境是什么样的?
该如何优雅地黑 C++?
如何把一段简单的代码变复杂?
为什么C++有一些奇特的语法?
在C++中,“?:”这个符号叫什么名字?
vector 使用 emplace_back 会调用复制构造函数吗?
C++,全局变量如果用new了,需要delete吗?
用C/C++开发工业软件适合吗?
C++ 和Java 的 double 类型都是 8 字节,为何 C++ 存不下 3.1415926 ?
C++1y又给C++增加了多少坑?
C语言本身是用什么语言写的?
大一新生做C语言课设被强制要求使用 Borland C++ 3.1,此IDE相对于其他IDE有何优点?
服务条款
联系我们
关于我们
隐私政策
© 2024-09-19 - tinynew.org. All Rights Reserved.
© 2024-09-19 - tinynew.org. 保留所有权利