미래를 설계하는 개발자

고정 헤더 영역

글 제목

메뉴 레이어

미래를 설계하는 개발자

메뉴 리스트

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
  • 분류 전체보기 (88)
    • C 언어 (7)
    • C++ 언어 (7)
    • Java (10)
      • Java Error (2)
      • Java Setup (1)
      • Java Study (2)
      • Design Patterns (2)
    • Spring (23)
      • Restfull API (2)
      • SpringBoot-React (5)
      • SpringBoot-MSA (16)
    • WebProgramming (26)
      • HTML (0)
      • CSS (0)
      • Javascript (1)
      • Error (0)
      • JSP (25)
    • 자료구조 (3)
    • DataBase (7)
      • Data Modeling (1)
      • Oracle Database (3)
      • SQL (3)
    • Android (0)
    • 기타 (2)
    • Git (2)
    • Algorithm (1)
    • 끄적끄적 (0)

검색 레이어

미래를 설계하는 개발자

검색 영역

컨텐츠 검색

C 언어

  • 파일학생성적관리프로그램[동적할당]-C언어

    2018.01.24 by ChrisMare

  • 변수의 정체와 역할 파악

    2018.01.10 by ChrisMare

  • Pointer 분석 (1) - 값과 주소의 이동파악

    2018.01.05 by ChrisMare

  • BabyGin - Count Sort

    2018.01.04 by ChrisMare

  • C언어 #include 지시어의 <> 와 ""의 차이점

    2017.12.27 by ChrisMare

  • 포인터주소이동 개념 손코딩으로 출력값 알아보기

    2017.10.02 by ChrisMare

  • pointer's pointer로 결합도 낮추기 void로

    2017.10.02 by ChrisMare

파일학생성적관리프로그램[동적할당]-C언어

/*실행하면 (파일 읽기) 메뉴1번 입력 .. . .. . . .. . 이름,~~~2번 출력3번 검색 """"" 이름검색시 이름관련성적만 Maximum 100 -> 100명 4. 종료==>>(파일저장)*/#define _CRT_SECURE_NO_WARNINGS#include "stdio.h"#include "stdlib.h"#include "string.h"#define MAXIMUM 100 typedef struct student {char *name;int *sco;float *avg;}Student; void myalloc(Student **stu); void newStudent(Student *p_stu) {FILE * fp = fopen("sco.txt", "ab");if (fp == NULL)..

C 언어 2018. 1. 24. 01:45

변수의 정체와 역할 파악

const int * p ; // 상수에 대한 포인터ex) 출력할 때 값을 찍기만하지 돌려줄때 값을 바꾸지는 않는다. 오직 읽기만 쓸때 안전하게....사용할 수 있다. int * const p ; /./ 상수포인터 const int * const p ; // 상수에 대한 상수포인터 발행전 ......

C 언어 2018. 1. 10. 09:10

Pointer 분석 (1) - 값과 주소의 이동파악

* 다음 나오는 코드를 손 코딩으로 예상해서 포인터연산을 분석 해 보면 조금 더 쉽게 접근할 수 있습니다. #include void main() {int *ptr;int n[] = { 5, 10, 22, 34, 36, 44 };ptr = n; printf("%d ", *ptr++); printf(" %d\n", *ptr);printf("%d ", *ptr + 1); printf(" %d\n", *ptr);printf("%d ", ++*ptr);printf(" %d\n", *ptr);printf("%d ", *(ptr + 1)); printf(" %d\n", *ptr);printf("%d ", *ptr += 1); printf(" %d\n", *ptr);printf("%d ", *++ptr); printf..

C 언어 2018. 1. 5. 11:08

BabyGin - Count Sort

BabyGin 이란? - (0~9)사이의 수 중 6가지 수를 입력하여 순차적으로(예를들어 0,1,2 - 1,2,3 - 2,3,4 - 3,4,5 - 4,5,6 - 5,6,7 - 6,7,8 - 7,8,9 ) 입력되면 Run (0~9)사이의 수 중 6가지 수를 입력하여 연속된 수가 3개 일 때 Triple Run + Triple의 수가 2 이상일 때 BabyGin 아니면 Lose 형태의 프로그램입니다. 여기서 저의 방법은 0~9사이의 수를 체크하는 경우라는 것을 보고카운트 소트(Count Sort)를 적용하게 됐습니다. * Count Sortarray[10]를 잡아서 ex) 123666입력 시 0 1 2 3 4 5 6 7 8 9 0 1 1 1 0 0 3 0 0 0 의 값을 저장하게 되고 여기서 값을 뽑아서 t..

C 언어 2018. 1. 4. 09:24

C언어 #include 지시어의 <> 와 ""의 차이점

#include This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation). - 시스템 헤더파일을 include하는데 사용합니다.#include "file" This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file,..

C 언어 2017. 12. 27. 09:40

포인터주소이동 개념 손코딩으로 출력값 알아보기

#pragma warning(disable: 4996)#include main(){ int *ptr; int n[] = { 5,10,22,34,36,44 }; ptr = n; printf("%d ", *ptr++); printf("%d\n", *ptr); printf("%d ", *ptr + 1); printf("%d\n", *ptr); printf("%d ", ++*ptr); printf("%d\n", *ptr); printf("%d ", *(ptr+1)); printf("%d\n", *ptr); printf("%d ", *ptr+=1); printf("%d\n", *ptr); printf("%d ", *++ptr); printf("%d\n", *ptr); printf("%d ", (*ptr)++); ..

C 언어 2017. 10. 2. 18:34

pointer's pointer로 결합도 낮추기 void로

#include #include //int* myalloc();void input(int *p);void output(int data);void myalloc2();void main(){ int *p;// p = (int *)malloc(sizeof(int));// p = myalloc(); myalloc2(&p);// *p = 300; input(p);// printf("%d\n", *p); output(*p); free(p);}void myalloc2(int **pp){ *pp = (int *)malloc(sizeof(int));}/*void output(int data){}*/void output(int data){ printf("%d", data);}void input(int *p){ *p = 3..

C 언어 2017. 10. 2. 03:35

추가 정보

인기글

최신글

페이징

이전
1
다음
TISTORY
미래를 설계하는 개발자 © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바