1. 在printf()的参数前加& (2015/10/7) 这是我写的一个数据生成器(generator)片段 int n=rand()%5+1; printf("%d\n", &n); 转载于:https://www.cnblogs.com/Patt/p/4859898.html