본문 바로가기

Programming399

[c++] Function Overloading #include void MyFunc(void){std::cout 2017. 5. 11.
[c++] char name[100] #include int main(void) { char name[100];char lang[200]; std::cout > name; std::cout > lang; std::cout 2017. 5. 11.
[c++] std::cin>> #include int main(void) { int val1;std::cout > val1; int val2;std::cout > val2; int result = val1 + val2;std::cout val1 >> val2; if (val1 < val2){for (int i = val1 + 1; i < val2; i++)result += i;}else{for (int i = val2 + 1; i < val1; i++)result += i;} std::cout 2017. 5. 11.
[c++] printf #include int main(void) {int num = 20;std::cout 2017. 5. 10.
Mesuirng engineering study I am currently studying for the more accurate recognition of the face of a person. Accepts information through sensors and digitizes this information to facilitate copying, gathering, and editing or information. In order t o understand the concpet of control, it is necessary to understand the sensor and the actuator. Collecting data through the sensor, and using the information to drive the actu.. 2017. 4. 17.
Distance Measurement by Ultra Sensor There are two ways t o measure physical distance.Analog : reulerDigtal : Untra sensor (HCSR-04) Digital is very convenient. Measure using ultra sensor.Error rate 1 - 2% means it is available in real life easily. Connect the data acquistion device NI6009 and Matlab.Matlab code: 2 Scripts. 1. UltraSensor.m%% Ultra Sensor %% Device settinga = daq.getDevices % Session for Input(echo)ai = daq.createS.. 2017. 4. 5.
[C] #ifndef, #endif #include "count.h" int add(int a, int b) {count++;return a + b;}#ifndef _COUNT_H_#define _COUNT_H_ 20int count = 0; #endif#include "count.h" int minus(int a, int b) {count++;return a - b;}/*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 30-03-2017Modified : 30-03-2017Language/ver : C in MSVS2015 Description : Pr.. 2017. 3. 30.
[C] #if #elif #else #endif #includevoid hello(){printf("hello1.h : Hello Everbody \n");}#include void hello() {printf("hello2.h : Hello, Hello! \n");}#include void hello() {printf("hello3.h : Everybody!, Hello?\n");}/*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 30-03-2017Modified : 30-03-2017Language/ver : C in MSVS2015 Description : P.. 2017. 3. 30.
[C] Header file, Main.c, Rink /*------------------------------------------------------------------------------------------ @ Pratice C laguage Author : SAMCreated : 30-03-2017Modified : 30-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Caculator header file------------------------------------------------------------------------------------------*/ extern int cal_num; double add(double a, double b);double.. 2017. 3. 30.
[C] Module, rink /*------------------------------------------------------------------------------------------ @ Pratice C laguage Author : SAMCreated : 30-03-2017Modified : 30-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Module, headear file ------------------------------------------------------------------------------------------*/ int cal_num = 0; double add(double a, double b) {cal_num+.. 2017. 3. 30.