Learn More →
Learn More →
Learn More →
為眾多IDE訂有的功能之一,可以自定義關鍵字,一次打出(多行)特定的程式碼,以C++為例,在一般的程式中,皆須打出include和main函式,使用user snippets就可以一次打出
{
// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
}
{
"basic cpp code": {
"prefix": "init",
"body":[
"#include <iostream>$1",
"using namespace std;",
"int main(int argc, char const *argv[]){ ",
" $2",
" return 0;",
"}"
],
"description": "cpp基本代碼"
}
}
a=7 b=4 print(a+b)=
Apr 1, 2024<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/tw/"><img alt="創用 CC 授權條款" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/3.0/tw/88x31.png" /></a><br />本著作係採用<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/tw/">創用 CC 姓名標示-非商業性 3.0 台灣 授權條款</a>授權. 此為簡易整理版,點我至官方完整版 第一層級標題 第二層級標題 第三層級標題 第四層級標題 第五層級標題 第六層級標題
Mar 19, 2023本著作係採用創用 CC 姓名標示-非商業性 3.0 台灣 授權條款授權. 在服用所有團隊內容前先看這篇,不然 @yen0224 會打你屁屁,不遵守請立即離開,凡已觀看其他內容則視為已同意申明內條款 ==last updated: 2021, Mar 27^th^== ==新增陣列、函數== 課本解答參閱程式範例解答(目前編輯中進度約10%) 相關練習題在GitHub\ 建議學習順序
Nov 10, 2021本著作係採用創用 CC 姓名標示-非商業性 3.0 台灣 授權條款授權. 在服用所有團隊內容前先看這篇,不然 @yen0224 會打你屁屁,不遵守請立即離開,凡繼續觀看其他內容則視為已同意此申明條款 課程內容 0.1 python introdution 1.1 py overview 1.1.1 py程式碼特色 1.1.2 變數
Jul 15, 2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up