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. |