include <iostream> using namespace std; class Point { private: int xpos, ypos; public: Point(int x=0, int y=0) : xpos(x), ypos(y) { } void ShowPosition() const { cout...
태그: include
include <iostream> include <string> using namespace std; // 2차원 평면에서 한 점을 표현하는 클래스 Point 선언 class Point { int x, y; //한 점 (x,y) 좌표값 public...
태그: include
... include <stdio.h> void combi(int n, int r, int st); int vis[5]; int main(void) { for (int i = 1; i <= 5; i++) { for (int j = 0; j < 5; j++) { vis[j] = 0; } combi(5, i, 0); } } void combi(int n , int...
태그: include
... //1033 include <iostream> include <algorithm> include <cmath> include <vector> using namespace std; long long arr[11][11],touch[11],ans[11],n; void check(long...
include <stdio.h> void swap(int arr[], int i, int j) { int temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; } void perm(int arr[], int depth, int n, int k) { if (depth == k) { for...
태그: include
... (왜 이 코드를 썼는지, 어떤 역할을 하는지 등등) include <stdio.h> int arr[4] = {1,2,3,4}; int len = 4; void swap(int a, int b) { int temp = arr[a]; arr[a] = arr[b]; arr[b]...
태그: include
include <iostream> include <string> include <cmath> include "BudgetManager.hpp" include "Record.hpp" BudgetManager::BudgetManager() {} void BudgetManager::addRecord(std...
태그: include
include <SoftwareSerial.h> define M_IN1 4 // 모터제어 입력 핀 IN1을 Digital4번핀으로 설정 define M_IN2 2 // 모터제어 입력 핀 IN2을...
... include <IRremote.h> include <Servo.h> Servo myservo; int postion; int remote = 2; // 리모콘 센서 IRrecv irrecv(remote); int buzzer = 10; int led1 = 5; int...
태그: include
... https://youtu.be/kKqGhqRoeDI si=JhmZ4JlTjmKfDSoW include <Adafruit_NeoPixel.h> include <avr/power.h> define PIN 7 define NUMPIXELS 136 define BRIGHTNESS 180 Adafruit...