Code Monkey home page Code Monkey logo

assignment2's Introduction

Assignment2

팀장

2017202057 임승환(LimSH0731)

팀원

2017202050 이예형(LYHyoung)

2017202036 임경택(Izar111)

역할분담

임승환

-파일 정보 받아오는 함수 작성

-파일 시간 받아오는 함수 작성

-README 작성

-Wiki 작성

임경택

-파일 크기 비교 함수 작성

-파일 블록 수 비교 함수 작성

이예형

-파일 날짜 비교 함수 작성

-파일 시간 비교 함수 작성

이 프로젝트는...

광운대학교 컴퓨터정보공학부

'오픈소스소프트웨어 프로그래밍 설계 및 실습' 과목의  Assignment2 수행을 위해 만들어 졌습니다.

실행하기전에...

비교할 파일들은 'text1','text2' 라는 이름의 문서파일 이어야 합니다.

비교할 파일들과 프로그램 파일은 같은 디렉토리 에 존재 하여야 합니다.

assignment2's People

Contributors

limsh0731 avatar izar111 avatar lyhyoung avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

izar111

assignment2's Issues

파일 날짜(월/일) 비교하는 함수 조사

structtm {
int tm_sec; /* seconds*/
inttm_min; /* minutes*/
inttm_hour; /* hours*/
inttm_mday; /* dayof themonth*/
inttm_mon; /* month*/
int tm_year; /* year /
int tm_wday; /
day of the week /
int tm_yday; /
day in the year /
int tm_isdst; /
daylight savingtime */
};

파일 크기 비교 방법

파일의 맨처음 위치와 맨 마지막의 위치를 구해서
둘의 차이로 파일 크기를 찾고, 비교를 하면 된다.
하지만 이미 stat구조체에 이미 길이가 정의 되므로 인자만 가져다 쓰면 된다.

파일 시간 관련 함수 조사

localtime 함수

time_t 값으로 선언된 변수의 저장된 시간을 변환하고 결과를 tm 유형의 구조체에 저장합니다.

블록의 정의

블록이란?

데이터 또는 프로그램의 한 블록 크기이며, 정보를 처리하는 논리적인 단 위로 보통 레코드의 집합으로 구성됨.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.