目前分類:C/C++ (7)

瀏覽方式: 標題列表 簡短摘要

const+放置位置的意義

有放在不同位置的講解和example

文章標籤

紅線 發表在 痞客邦 留言(0) 人氣()

1. (error) unresolved symbols

Apply new function in gpio.c to main.c

文章標籤

紅線 發表在 痞客邦 留言(0) 人氣()

在轉換人臉辨識專題用程式時, 為了要加入File copy的code, 

要把GCC compiler  改用G++ 來build (openCV 等都會用到C++功能)

紅線 發表在 痞客邦 留言(0) 人氣()

Opengate 大大

http://mropengate.blogspot.tw/2017/08/cc-c.html

文章標籤

紅線 發表在 痞客邦 留言(0) 人氣()

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

文章標籤

紅線 發表在 痞客邦 留言(0) 人氣()

Problem 665: Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element.

We define an array is non-decreasing if array[i] <= array[i + 1] holds for every i (1 <= i < n).

文章標籤

紅線 發表在 痞客邦 留言(0) 人氣()

Function pointers in C

Let's start with a basic function which we will be pointing to:

int addInt(int n, int m) {
    return n+m;
}

First thing, let's define a pointer to a function which receives 2 ints and returns an int:

文章標籤

紅線 發表在 痞客邦 留言(0) 人氣()