Skip to content

Instantly share code, notes, and snippets.

@kyagrd
kyagrd / a.dot
Created September 13, 2018 10:03
digraph G {
node [shape=box];
subgraph cluster_1 {
label = "1학년";
color=blue;
이산구조; 프로그래밍실습 -> 고급프로그래밍; 대학수학;
컴퓨터개론 -> 확률통계 [style=invis];
}
#include <stdio.h>
void triR(void)
{ // 이 함수를 완성하시오. (4점)
int size, repeat;
scanf("%d %d", &size, &repeat);
printf("Hello world\n");
for (int k = 0; k < repeat; ++k)
{
#include <stdio.h>
#include <stdbool.h>
size_t strlen(const char* str)
{
size_t n = 0;
while (str[n]) ++n;
return n;
}
#include <stdio.h>
#include <ctype.h>
#include <stdbool.h>
/* K&R 프로그램에서 시작해서 변형했다면
#define IN 0
// 대문자로 시작한 상태
#define INUP 2
#define OUT 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyagrd
kyagrd / casting.cpp
Last active September 7, 2020 06:05
#include <iostream>
int main()
{
using namespace std;
int64_t x = 0;
// C/C++에서 실수하기 쉬운 부분 단점
x = 3.14592; // 자동으로 형변환되어서 3이 되어버림