#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
//使用cout,得先声明 命名空间:using namespace std; 并 #include <iostream>
printf("bbbbbbb\n");
printf("\n");
//使用system函数 得 #include <stdlib.h>
}
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
//使用cout,得先声明 命名空间:using namespace std; 并 #include <iostream>
cout<<"aaaaaaaa\n";
printf("bbbbbbb\n");
printf("\n");
//使用system函数 得 #include <stdlib.h>
system("pause");
}
本文演示了在C++中使用不同库进行输出的方法,包括使用cout、printf及system函数,并提供了完整的代码示例。
1470

被折叠的 条评论
为什么被折叠?



