태그>c언어(총 269개의 글)
'c언어' 관련 최근글
-
- [C언어] 화씨->섭씨,섭씨->화씨 변환기

-
에로소울의 모에인적자원부 by 에로소울|12/02 11:25
#include int main() { int C,F; int Select; float Val; while(1) { printf("1.화씨온도->섭씨온도n"); printf("2.섭씨온도->화씨온도n"); printf("3.종료n"); printf("번호를 선택해주세요 : "); ..
- [C언어] 화씨->섭씨,섭씨->화씨 변환기
-
- C언어: OpenMP 3.0 new features #1

-
The truth will set you free by SY Kim|11/26 13:48
OpenMP 3.0 Specification에서 추가된 몇가지 기능에 대해서 살펴보도록 하겠다. (주: 이 글에 나오는 모든 예제코드는 리눅스/유닉스를 기반으로 설명하지만, Microsoft VC+과 같은 다른 플랫폼에서도 여전히 잘 동작한다. 다만 명령어는 서로 다를 수 있다.) * 목차 1. O..
- C언어: OpenMP 3.0 new features #1
-
- 신상 텍스트파일을 읽어와서 다른 텍스트파일로 출력하는프로그램 'ㅅ'

-
Forest For Rest (휴식의숲) by AntiNomy|11/19 14:53
#include struct friends { char name[10]; char sex; int age; }; typedef friends friends;int main() { friends fuck[1000]; int i; int fin; FILE *in = fopen("input.txt","r"); FILE *fp = fopen("friend.txt."..
- 신상 텍스트파일을 읽어와서 다른 텍스트파일로 출력하는프로그램 'ㅅ'
-
- 로또 숫자 산출 프로그램

-
세상을 움직일수 있는 작은 페이지 by 눈빛이|11/14 02:29
rand() 와 srand()를 응용하여 임의의 숫자 여섯개를 산출하는 프로그램입니다 로또의 특성상 중복된 숫자가 나오면 안되므로 임의의 숫자 산출후 검사하여 중복된 숫자가 없도록 해주는 기능이 있습니다 ..
- 로또 숫자 산출 프로그램
-
-
- 하노이탑과 구조체 'ㅅ'

-
Forest For Rest (휴식의숲) by AntiNomy|11/05 14:48
/* 하노이 탑 'ㅅ' */#include void move (int n, int a, int b, int c);int main() { int disks; printf("Type the number of disk : "); scanf("%d", &disks); move(disks, 1, 3, 2); return 0; }void move (int n,..
- 하노이탑과 구조체 'ㅅ'
-
- 구조체 연습질 'ㅅ'

-
Forest For Rest (휴식의숲) by AntiNomy|11/05 10:50
/* 구조체를 이용 복소수 덧셈하는 프로그램 */ #include struct complex { double real; double img; }; struct complex add(struct complex complex1, struct complex complex2); int main() { struct complex n1, n2, result; printf("input :..
- 구조체 연습질 'ㅅ'
-
- 월을 받아서 영어로 출력하는 프로그램 'ㅅ'

-
Forest For Rest (휴식의숲) by AntiNomy|10/28 14:51
#include char *month_name(int n);int main() { int n; char *f; printf("월 입력 : "); scanf("%d", &n); f = month_name(n); printf("%sn", f); return 0; }char *month_name(int n) { static ch..
- 월을 받아서 영어로 출력하는 프로그램 'ㅅ'
-
- 10월 28일 프로그래밍수업흔적

-
Forest For Rest (휴식의숲) by AntiNomy|10/28 14:51
/* 포인터배열 연습 */ #include int main() { int i; int n1, n2, n3; int *arrptr[3] = {&n1, &n2, &n3}; for(i = 0; i < 3; i+) { printf("숫자입력 : "); scanf("%d", arrptr[i]); } printf("입력된숫자..
- 10월 28일 프로그래밍수업흔적
-
- C언어: OpenMP를 이용한 멀티 쓰레드 프로그래밍 HOWTO #4

-
The truth will set you free by SY Kim|10/20 12:56
C언어: OpenMP를 이용한 멀티 쓰레드 프로그래밍 HOWTO #4 - HOWTO #1 : - HOWTO #2 : - HOWTO #3 : 9. critical & atomic construct critical construct와 atomic construct는 공유(shared) 영역을 보호하는 lock의 일종이다. 따라서 critical과 atomic..
- C언어: OpenMP를 이용한 멀티 쓰레드 프로그래밍 HOWTO #4





