#include <iostream>
int main(int argc, char **argv)
{
if (argc < 2)
std::cout << "* LOUD AND UNBEARABLE FEEDBACK NOISE *\\n";
else{
for (int i = 1; i < argc; i++)
{
for(int j = 0; i < argv[i][j]; j++)
{
std::cout << (char)std::toupper(argv[i][j]);
}
}
std::cout << "\\n";
}
}
toupper → 소문자를 대문자로 바꿔주는 함수
(char 캐스팅 해야 문자로 보여짐 안 그러면 숫자로 보여짐)
'외부 활동 및 교육 > 42Seoul' 카테고리의 다른 글
| [CPP Module 01] ex00 (0) | 2023.12.01 |
|---|---|
| [CPP Module 00] ex01 (0) | 2023.12.01 |
| [cub3d] 지도 파싱 (0) | 2023.09.14 |
| [pipex] pipex 구현 (0) | 2023.09.13 |
| [pipex] main에서 환경변수 얻기 (1) | 2023.09.13 |
