由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - indent C++ source code by VC++ 6.00
相关主题
请教VC2003 debug问题
相关话题的讨论汇总
话题: c++话题: indent话题: code话题: source话题: ios
进入Programming版参与讨论
1 (共1页)
n**d
发帖数: 9764
1
I have a several C++ source code files which need to be "indent" before
reading it. I know there are lot of free software can do this. Has the VC++
6.0 provided this function so that we can click one button to get the code
more beautiful? It seems not.
n**d
发帖数: 9764
2
Thanks! How could you find it?! Is there any icon?
It works, but someting like this:
#define D(A) T << #A << endl; A
int main() {
ofstream T("format.out");
//assure(T);
D(int i = 47;)
D(float f = 2300114.414159;)
const char* s = "Is there any more?";
D(T.setf(ios::unitbuf);)
D(T.setf(ios::showbase);)
D(T.setf(ios::uppercase | ios::showpos);)
D(T << i << endl;) // Default is dec
...
}
f*z
发帖数: 421
3
Do you know how to do it in Visual .Net 2003?
Thanks!
l*****c
发帖数: 1153
4
Ctrl+A
Ctrl+K+F
For VC2003 and later? As I remember.
s******e
发帖数: 431
5
It is called format selection.
1 (共1页)
进入Programming版参与讨论
相关主题
请教VC2003 debug问题
相关话题的讨论汇总
话题: c++话题: indent话题: code话题: source话题: ios