清单2显示了主处理循环的开头。
您可以使用 fputcsv() 更便捷地对主循环编程,fputcsv() 能够帮助处理格式化问题(参见 清单 3)。
You could program the main loop more elegantly by using fputcsv(), which handles formatting problems (see Listing 3).
这样,主范围内的循环和事件处理程序中的逻辑就可以控制事件处理程序的最终数目。
By doing so, the loop in the main scope and logic in the event handler controls the final number of event handler instances.
应用推荐