so_sal 

  • 홈
  • 방명록
  • SNUBI
  • 오토마우스
  • Facebook
  • Profile
Bioinformatics analyst Data scientist

C언어 2

최대공약수 최소공배수 gcd lcm 소스코드

/* * made by so_sal * http://sosal.tistory.com/ */ 정수론 수업시간에 배웠던 호제법으로 옛날에 만들어놓은 소스입니다. 최근 더블릿 시작했는데, 3계단에서 많이 쓰이길래 올려봅니다. gcd : 최대공약수 lcm : 최소공배수 #include #include #include using namespace std; int gcd(int a,int b){ printf("a::%10d, b::%10d, a\%b::%10d\n",a,b,a%b); if(a%b == 0){ return b; } return gcd(b,a%b); //호제법 } int lcm(int a,int b){ return a*b/gcd(a,b); } int main(void){ int a,b; cin>>a>>..

Programing/C- programing 2011.02.12

C++ - 포함과 상속

/* * http://sosal.tistory.com/ * made by so_Sal */ 객체지향 상속관련해서 포스팅을 한적이 없더라구요~ 복습할겸 끄적여봅니다 ㅎㅎ 아래는 x,y 좌표를 저장하는 객체를 만든 모습입니다. #include #include using namespace std; class point{ private: int x,y; public: point(int _x,int _y):x(_x),y(_y){}; int getX(){ return x; } int getY(){ return y; } }; int main(){ point a(3,5); printf("%d %d",a.getX(),a.getY()); return 0; } C++ 프로그래밍 경험이 있으신분들은 위 코드를 쉽게 이해하실거..

Programing/C- programing 2010.12.28 (2)
1
더보기
프로필사진

Bioinformatics analyst Data scientist

  • Sosal~ (756)
    • Stigmatized. (325)
      • Essay (47)
      • ETC. (59)
      • Adobe acrobat (28)
      • Music story (84)
      • Game posting (11)
      • Fish (6)
      • Closed (0)
      • University (19)
      • Investment Techniques (13)
      • Outing (46)
      • Tistory (1)
      • epilogue (9)
      • The Grande Music Stu.. (1)
    • Major Study. (145)
      • Computer Science (43)
      • Bioinformatics (68)
      • System hacking (25)
      • Journal study (6)
      • Image Processing (3)
    • Linux (58)
      • Linux_programing (25)
      • Linux_technic (24)
      • Linux_Source (9)
    • Windows_ (48)
      • Windows32_API (19)
      • Windows_C# & App (25)
      • Windows_Source (4)
    • Programing (137)
      • C- programing (41)
      • Java & Android App. (4)
      • Assembley 16bit (6)
      • R- programming (56)
      • ETC_programming (6)
      • Algorithm (9)
      • Julia programming (1)
      • Python programming (13)
    • Web programing (42)
      • HTML & CSS (12)
      • Javascript (20)
      • JSP (5)

Tag

아크로뱃, 프로세스, binary, 어도비, 시스템, 애크로뱃, socket, fork, 링크드리스트, Linux, find, adobe, PDF, system, Acrobat, process, 리눅스, SIS, Acrobat9, sosal,

최근글과 인기글

  • 최근글
  • 인기글
  • deep learning for the life sciences 2022.06.12 03:03
  • 뱀파이어 서바이벌, 렉 안걸리게 하는법 2022.03.27 00:15
  • R scale과 분포변환 다른 데이터에 적용하기 2022.03.20 15:38
  • 오토마우스 무한클릭 v1.7 - Auto Click 2022.01.31 22:48
  • 갤럭시 S8 S8+ 비교 및 구매 후기 2017.04.16 23:23
  • Lasso, Ridge regularization - 회귀에서 selection과 shrinkage 2019.01.18 20:24

최근댓글

  • 저도요 왜그럴까욧 ㅠ

    유유

  • 저도요 왜그럴까요

    유유

  • 아실 것 같지만 혹시 구글의 DeepMind에서 개발한⋯

    Tyler Yang

공지사항

  • 오토마우스 무한클릭
  • 운영자 프로필
  • 코드악보 채보신청

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

  • 2022/06
  • 2022/03
  • 2022/02
  • 2022/01
  • 2021/09

Calendar

«   2022/08   »
일 월 화 수 목 금 토
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

방문자수Total

6,692,089

  • Today : 242
  • Yesterday : 2,847

Copyright © Kakao Corp. All rights reserved.

  • alleysark
  • carrot
  • Dakuo
  • IGRUS
  • kaspy
  • SNUBI
  • 제진