파일로 stdin 입력받기

freopen(“file”, “r”, stdin)

freopen("in2.txt", "r", stdin);

시간 측정하기

clock_t : 시간 저장 변수

clock() : 시간 측정 함수

#include <time.h>
#include <ctime>

int main() {
    clock_t st, ed;
    st = clock();
    // do something
    ed = clock();
    cout << ed - st;
}

ViusalStudio 용량 줄이기

  1. 프로젝트의 디버깅 설정

    Tips%2059a632e526a040028ac01f24c4da6024/Untitled.png

  2. sdf 파일 및 ipch 폴더 자동 생성 방지

    Tips%2059a632e526a040028ac01f24c4da6024/Untitled%201.png

댓글남기기