Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
// 宣告節點結構
typedef struct nodestruct{
int data;
struct nodestruct* next;
} node;
// 宣告相關函式
@hunandy14
hunandy14 / DuoArduino_Uart.ino
Last active April 12, 2016 10:28
兩台arduino,互相控制
#include <SoftwareSerial.h>
#include <Wire.h>
#include <Timer.h>
#define BTTX 2
#define BTRX 3
#define Led 13
#define ArduinoID 1
SoftwareSerial I2CBT(BTTX,BTRX);
char str[128]="";
@hunandy14
hunandy14 / Input_String_Split.ino
Created May 16, 2016 15:39
Arduino輸入字串切割成陣列
/**********************************************************
Name:Input String Split Arduino
DATE:2016/05/16
By CharlotteHong
**********************************************************/
#define led 13
char str[32]="";
/* ================================================== */
void setup() {
pinMode(led, OUTPUT);
@hunandy14
hunandy14 / Ripiro_setter_ino.ino
Last active May 18, 2016 11:26
調整機器人用代碼
/*
Name :Ripiro_setter.ino
By :Charlotte.HonG
Date :2016/05/17
Fimal :2016/05/18
Update:https://goo.gl/bqZ9Nw
注意:
1. 設定時如果沒有反應可能需關閉電源,設定好再開啟電源測試
2. 如想關閉功能,請將setter_active設定為0
@hunandy14
hunandy14 / test.cpp
Last active May 19, 2016 10:21
除錯
/**********************************************************
Name :
Date : 2016/05/19
By : CharlotteHonG
Final: 2016/05/19
**********************************************************/
#include <iostream>
/*=======================================================*/
using namespace std;
int element[]={5,-2,4};
@hunandy14
hunandy14 / sourse.cpp
Created May 19, 2016 13:34
無法編譯
/**********************************************************
Name : sourse.cpp
Date : 2016/05/19
By : CharlotteHonG
Final: 2016/05/19
**********************************************************/
#include <iostream>
/*=======================================================*/
using namespace std;
int element[] = {5, -2, 4};
@hunandy14
hunandy14 / OpenCV_Test.cpp
Created May 29, 2016 08:25
C++ OpenCV2413 測試安裝是否成功
/**********************************************************
Name :
Date : 2016/05/29
By : CharlotteHonG
Final: 2016/05/29
**********************************************************/
#include <cstdio>
#include <opencv2/opencv.hpp>
using namespace cv;
int main(int argc, char const *argv[]){
@hunandy14
hunandy14 / Get_path
Created May 29, 2016 09:59
取得系統變數
/**********************************************************
Name :
Date : 2016/05/29
By : CharlotteHonG
Final: 2016/05/29
**********************************************************/
#include <iostream>
#include <stdlib.h>
using namespace std;
/*=======================================================*/
@hunandy14
hunandy14 / Point_example.c
Last active June 2, 2016 09:56
指標範例
/**********************************************************
Name : 指標範例
Date : 2016/06/02
By : CharlotteHonG
Final: 2016/06/02
**********************************************************/
/* 指標記住兩句話[*找數值][&找地址] */
#include <stdlib.h>
#include <stdio.h>
void modify(int* n1, int n2){
@hunandy14
hunandy14 / class_separate_struct.cpp
Created July 6, 2016 03:57
類別內有結構,如何將實作分開
/**********************************************************
Name : link
Date : 2016/07/05
By : CharlotteHonG
Final: 2016/07/05
**********************************************************/
#include <iostream>
#include "single"
using namespace std;