코딩해요/C++
[코드업/C++] 기초-출력/출력하기 01-07
yenas0
2023. 9. 18. 21:26
반응형
#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 올릴거같기도 하고,,
반응형