长沙到哈尔滨机票查询:在VC++中,printf与cout<<的区别是怎样的?
来源:百度文库 编辑:神马品牌网 时间:2024/05/21 01:19:53
如果用printf,需要#include <stdio.h>,如果用cout<<,需要#include <iostream.h>,功能一样,不过printf更严谨一些,比如它会限制输出类型。
如果用printf,需要#include <stdio.h>,如果用cout<<,需要#include <iostream.h>,功能一样,不过printf更严谨一些,比如它会限制输出类型。