반응형
#1001번
#include <iostream>
using namespace std;
int main() {
cout << "Hello";
return 0;
}
#1002번
#include <iostream>
using namespace std;
int main() {
cout << "Hello World";
return 0;
}
#1003번
#include <iostream>
using namespace std;
int main() {
cout << "Hello\nWorld";
return 0;
}
#1004번
#include <iostream>
using namespace std;
int main() {
cout << "\'Hello\'";
return 0;
}
#1005번
#include <iostream>
using namespace std;
int main() {
cout << "\"Hello World\"";
return 0;
}
#1006번
#include <iostream>
using namespace std;
int main() {
cout << "\"!@#$%^&*()\"";
return 0;
}
#1007번
#include <iostream>
using namespace std;
int main() {
cout << "\"C:\\Download\\hello.cpp\"";
return 0;
}
cout 이랑 cin <<>> 이거 방향 달라서 너무 헷갈리고 아무생각없이 계속 printf 적고있음
사실 백준 풀라다가.. C++은 저번주에 처음 배워서 백준풀기에 너무 아는게 없어서,, 코드업으로 시작함
아마 C랑 C++ 격주로 하거나 아니면 그냥 심심할 때 C 올릴거같기도 하고,,
반응형
'코딩해요 > C++' 카테고리의 다른 글
[프로그래머스/C++] PCCE 기출문제 (2) | 2024.10.08 |
---|---|
[프로그래머스/C++] PCCE 기출문제 1-5번 (0) | 2024.08.27 |
[코드업/C++] 기초-조건/선택실행구조[1065 ~ 1071] (1) | 2024.01.30 |
[코드업/C++] 기초-산술연산/1039 ~ 1046 (0) | 2023.10.07 |
[코드업/C++] 기초-입출력 풀이 (0) | 2023.09.25 |