武钢集团汉阳钢厂:在VC++中,printf与cout<<的区别是怎样的?
来源:百度文库 编辑:查人人中国名人网 时间:2024/05/06 05:24:50
如果用printf,需要#include <stdio.h>,如果用cout<<,需要#include <iostream.h>,功能一样,不过printf更严谨一些,比如它会限制输出类型。
查人人中国名人网是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度文库 编辑:查人人中国名人网 时间:2024/05/06 05:24:50
如果用printf,需要#include <stdio.h>,如果用cout<<,需要#include <iostream.h>,功能一样,不过printf更严谨一些,比如它会限制输出类型。