# 初步基本介紹 ## 引入函式庫 ```cpp #include<iostream> ``` 更強的 ```cpp #include<bits/stdc++.h> ``` ## std:: 所有C++的語法前面幾乎都需要加上std::,如果不想這麼麻煩,就加上下面這行 ```cpp using namespace std ``` 如果不加 ```cpp std::cout << "Hello world" << '\n'; ``` 加的話 ```cpp cout << "Hello world" << '\n'; ``` ## 最後基礎模板 ```cpp= #include<iostream> using namespace std; int main(){ cout << "Hello world" << '\n'; } ``` ###### tags: `中和高中`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up