回复 20楼 cosdos
dev-c++
以下是引用youngpennyu在2011-6-22 21:21:18的发言:
dev-c++
dev-c++
我也用这个。
代码注意风格。dev-C++ 可以自动对齐,设置下就能用了。要关掉智能TAB。
[ 本帖最后由 cosdos 于 2011-6-22 21:32 编辑 ]
#include<stdio.h> #include<stdlib.h> #define N 1 int main() { FILE *fp; char str[N], name[N], s[N], year[N], wname[N], wyear[N], m[N]; printf("%-20s: %d\n%-20s: %d\n%-20s: %d\n%-20s: %d\n%-20s: %d\n%-20s: %d\n%-20s: %d\n%-20s: %d\n", "Address of fp", &fp, "Address of str", str, "Address of name", name, "Address of s:", s, "Address of year", year, "Address of wname", wname, "Address of wyear", wyear, "Address of m", m); return 0; }