728x90
#include <iostream>
#include <string>
using namespace std;
int main() {
string s = "ABCDEF"
"GHIJKLMNOP"
"QRSTUVWXYZ\n";
cout << s;
return 0;
}
gcc is for compiling c source code.
And g++ is for compiling c++ source code.
Though you can use gcc to compile c++ source code, they recommend to use g++ to compile c++ source code.
g++ test.cpp -o test
./test
The result would be
ABCDEFGHIJKLMNOPQRSTUVWXYZ
with no space, and line change.
'Problem Solving' 카테고리의 다른 글
Naming Conventions (0) | 2023.08.01 |
---|---|
Never ever do this mistake (0) | 2023.07.12 |
CGI vs WSGI vs ASGI (0) | 2023.07.02 |
using namespace std (0) | 2023.07.02 |
방송대 공략집 KNOU-HOW 배포 (0) | 2023.07.02 |