JeepWay

@JeepWay

Joined on Aug 6, 2023

  • contributed by < JeepWay > 理解 Makefile 內容 <s>參考文章:(Linux kernel模組的開發) 編譯 Linux kernel module</s> :::danger 參照指定的教材 (你也可因此做出貢獻),而非這類過時資訊。 $\to$ Linux 核心模組運作原理 ::: Makefile 裡面的兩個子目標
     Like  Bookmark
  • contributed by < JeepWay > Reviewed by liangchingyun rebase 前的 commit 已經不在 branch 上,可以不用提供,只需提供 rebase 後的 commit 即可。 感謝你的建議,rebase 後沒有改變程式碼跟 commit message,確實適合留 rebase 後的 commit 就好。 By JeepWay 開發環境 $ gcc --version gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
     Like  Bookmark
  • contributed by < JeepWay > quiz3 測驗1
     Like  Bookmark
  • contributed by < JeepWay > quiz1 測驗1 主要差異部分如下 /* Test inserting at the beginning */ for (size_t i = 0; i < N; i++) list_insert_before(&l, l.head, &items[i]); /* Test inserting at the end */
     Like  Bookmark
  • contributed by < JeepWay >
     Like  Bookmark
  • GitHub 程式碼 說明 使用陣列來實現堆疊。 堆疊使用函數指標來模擬 C 語言中的 polymorphism。 函數指標用於指向常見堆疊操作的實際實現,例如 std::stack 中的 push、pop 和 top 操作。 本專案默認支援 int、char 和 string 資料型別,但可以輕鬆擴展以支援其他資料型別,例如 float、double 等。 函數指標 void (*init)(struct Stack *s): 初始化堆疊。
     Like  Bookmark
  • 回到書籤頁 基本教學 GeekHour 教學 常用指令 Docker 常用指令 安裝相關 :+1: Ubuntu 安裝支援 GPU 的 Docker
     Like  Bookmark
  • 需求 自動開起垃圾桶 根據垃圾量,亮起指示燈 電路圖 image 程式碼 #include <Servo.h> Servo myservo; // 定義舵機對象,最多八個
     Like  Bookmark
  • 基本編譯選項 -o [filename]: Place the output into [filename] -c: Compile and assemble, but do not link.如不加的話果 :::info 沒有 main() 的 program 要加上 -c 才能 compile,否則會失敗,錯誤訊息如下。(.text+0x1b): undefined reference to `main' collect2: error: ld returned 1 exit status 沒有 main() 的 program 編譯後最好命名為 XXX.o,再與主程式檔案做 link。
     Like  Bookmark