728x90
반응형
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main()
{
ofstream fout("output.txt");
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
int output = rand() % 101;
fout << output << '\t';
}
fout << endl;
}
return 0;
}
728x90
반응형
'Computer Science > Object Oriented Programming' 카테고리의 다른 글
c++(cpp)_Unit matrix(10*10) 만들기 (0) | 2022.07.28 |
---|---|
c++(cpp)_거듭 제곱 구하기(while문 사용) (1) | 2022.07.28 |
c++(cpp)_거듭 제곱 반환 함수 구현 (0) | 2022.07.28 |
c++(cpp)_성적 산출 (0) | 2022.07.28 |
댓글