본문 바로가기

전체 글

(231)
0921 객지설 실습 [Google Test] Google의 특정 요구사항이나 제약사항을 기반으로 테스트 기술 팀에서 제작한 testing 프레임워크 1. Ubuntu 실행 2. 원하는 폴더에 github의 google test repository 복사 git clone https://github.com/google/googletest.git 3. googletest 클론 옆에 practice 폴더 생성 4. main.cc, util.h, util.cc 작성 5. 테스트를 위한 test_util.cc 작성 #include "gtest/gtest.h" #include "util.h" /* TEST(Test set 이름, 각 testcase 이름) */ TEST(TestUtil, MyAddPosPosTest) { EXPECT_E..
0920 웹프 예습 CSS Tutorial CSS Introduction 1. What is CSS? - Stands for Cascading Style Sheets - Describes how HTML elements are to be displayed on screen, paper, or in other media - CSS saves a lot of work. It can control the layout of multiple web pages all at once - External stylesheets are stored in CSS files 2. Why Use CSS? - Is used to define styles for your web pages, including the design, layout and ..
0920 컴퓨터구조
0920 객지설
0920 알고리즘 문제 1 # n이 2보다 큰 경우 재귀 # 첫번째, 두번째 피보나치수를 구할 땐 1 반환 def fibo(n) : if n
0919 알고리즘 재귀 - 핵심 : 문제를 유사한 형태의 작은 조각으로 나누기 - 활용 : 분할 정복 또는 동적계획법 등의 다양한 알고리즘 활용됨. 반복문 대체 문제1. factorial 구하기 f(n) = n! f(n) = n * f(n-1) (f(n) = 1, if 3) 반복문 def factorial(n) : result = 1 for i in range(2, n+1) : result *= i return result n = 50 for i in range(1, n) : print("factorial of ", i, factorial(i)) 4) Reduce 함수 (Python) from functools import reduce def factorial_reduce(n): return reduce(lambda x,..
0919 영화와문학
0916 컴퓨터구조