正常情況應為下圖所示,

此時反倒出現了一個為未知裝置

按右鍵,把他移除,重新機後,藍芽就恢復正常
此時反倒出現了一個為未知裝置
按右鍵,把他移除,重新機後,藍芽就恢復正常
printf("\033[1;31m%s = %s\033[0m\n", key, value); printk("\033[1;31m%s = %d\033[0m\n", key, value);僅linux可用
#include <stdio.h> #include <stdlib.h> int main(void) { FILE *fPtr; int age = 20; fPtr = fopen("test.txt", "w"); if (!fPtr) { printf("open file fail\n"); return 0; } fprintf(fPtr, "I am %d years old.\n", age ); fclose(fPtr); return 0; }