• 전문가 요청 쿠폰 이벤트
*성*
Bronze개인
팔로워0 팔로우
소개
등록된 소개글이 없습니다.
전문분야 등록된 전문분야가 없습니다.
판매자 정보
학교정보
입력된 정보가 없습니다.
직장정보
입력된 정보가 없습니다.
자격증
  • 입력된 정보가 없습니다.
판매지수
전체자료 3
검색어 입력폼
  • c로 짠 달력 평가A좋아요
    //연도만 입력하면 그해의 달력이 출력되는 프로그램을 작성하되, 윤년을 계산하라.#include<stdio.h>static int arrMonth[13]={0,31,0,31,30,31,30,31,31,30,31,30,31}; void year(int y)//윤년판단함수 { if((y%4 == 0 && y%100 != 0) || (y%400)==0) arrMonth[2]=29; else arrMonth[2]=29; } //1월 1일이 무슨요일인지 구하는 함수.int Newyear(int year,int month){ int sum,start,nal=0; for(int a=1; a<month;a++) nal+= arrMonth[a]; sum=(year-1)*365 +(year-1)/4-(year-1)/100+(year-1)/400+nal+1; start=sum%7; return start;}
    공학/기술| 2004.06.10| 2페이지| 1,000원| 조회(466)
    미리보기
  • c++ 클래스사용, 스택과 큐 평가A+최고예요
    Stack.cpp#include "Stack.h"#include <iostream>#include <cstring>using namespace std;//Createvoid Stack::Init() // 빈 스택을 만든다.{Top = ( Ptr ) malloc ( sizeof( Node ) ); Top -> Next = NULL ;}//Pushvoid Stack::Push(char *string){ // 스택에 값을 넣기 위해 임시 Ptr 형 변수 Temp를 만들어 메모리를 할당한다.Ptr Temp ; // 임시변수Temp = ( Ptr ) malloc ( sizeof( Node ) ); //동적 메모리 할당strcpy(Temp->str , string); //입력받은 문자열을 스택에 넣는다. Temp -> Next = Top -> Next; //스택에 요소를 삽입하는 과정으로서, Top -> Next = Temp ; //노드들을 연결하고 top이 현재삽입한요소가 있는 노드를 } //가리키도록 한다.
    프로그램소스| 2004.06.10| 6페이지| 1,000원| 조회(1,513)
    미리보기
  • c언어로 짠 주소록
    #include #include #include #define NAME_SIZE 30 // name#define ADD_SIZE 40 // address#define TEL_SIZE 30 // Telephone#define REC_SIZE (NAME_SIZE + ADD_SIZE + TEL_SIZE) //recordtypedef struct card{ //구조체char name[NAME_SIZE];char add[ADD_SIZE];char tel[TEL_SIZE];struct card *next; //자기참조 구조체}card;card *head, *tail; //구조체 포인터 선언void init_card(void) // -초기 설정함수{head = (card*)malloc(sizeof(card)); //동적메모리할당tail = (card*)malloc(sizeof(card));head->next=tail; //head 와 tail 연결tail->next=NULL;}void input_card(void) // -삽입{card *t;t = (card*)malloc(sizeof(card));printf("nInput namecard menu :");printf("n Input name ->");gets(t->name); //name 입력printf("n Input address ->");gets(t->add); //address 입력printf("n Input telephone number ->");gets(t->tel); //telephone 입력t->next = head->next; //새로운 노드(t)를 앞뒤와 연결head->next = t;}int delete_card(char *s) // -삭제 함수{card *t;card *before;before = head;t = head->next;while (strcmp(s,t->name) !=0 && t!=tail) //지울이름을 찾을때까지{before = before->next;t = before->next;}if (t == tail) //지울 이름이 없으면return 0;before->next = t->next; // 지울이름을 찾았으면 메모리해제를해야하므로free(t); // t가 가리키는 곳을 before가 가리키도록하고return 1; // t해제}card * search_card(char *s) //-검색{card *t;t = head->next;while (strcmp(s,t->name) !=0 && t!=tail) //검색할 이름을 찾을때까지t = t->next;if (t == tail) //검색할 이름이 없으면return NULL;elsereturn t; //struct 포인터 형으로 리턴}int fix_card (char *s) //-수정{card *t;t = head->next;while (strcmp(s,t->name) !=0 && t!=tail)t = t->next;if (t == tail)return 0;printf("nInput namecard menu :"); //새로 다시 입력printf("n Input name ->");gets(t->name);printf("n Input address ->");gets(t->add);printf("n Input telephone number ->");gets(t->tel);return 1;}void print_card(card *t,FILE *f) //-print{fprintf(f,"n%-10s %-40s %-15s",t->name,t->add,t->tel);}void print_header(FILE *f) //-print하기전 header부분{fprintf(f,"nName Address Telephone number");fprintf(f,"n--------------------------------------------------------------------");}void save_cards(char *s) //-save{FILE *fp;card *t;if ((fp = fopen(s,"wb")) == NULL) // 파일 이 없으면{printf("n Error : Disk write failure."); //errorreturn;}t = head->next; // 첫 주소정보들 부터 끝까지(tail전까지) fwitewhile (t!=tail){fwrite(t,REC_SIZE,1,fp);t = t->next;}fclose(fp); //파일 close}void load_cards(char *s) //-load{FILE *fp;card *t;card *u;if ((fp = fopen(s,"rb")) == NULL) //파일이 없으면{printf("n Error: %s is not exist.",s); //errorreturn;}t = head->next;while (t!=tail) //load하기 전에 무슨 작업을 하고있었다면 모두 없앤다{u=t;t=t->next;free(u);}head->next = tail;while (1){t=(card*)malloc(sizeof(card));if (!fread(t,REC_SIZE,1,fp)) //읽어들이는데 실패하면{free(t); //t 해제후 breakbreak;}t->next = head->next; //하나하나씩 읽어들이면서연결head->next = t;}fclose(fp);}int select_menu(void) //-select{int i;char s[10];printf("nnNAMECARD Manager");printf("n-----------------------------------");printf("n1. Input Namecard");printf("n2. Delete Namecard");printf("n3. Search Namecard");printf("n4. fix Namecard");printf("n5. Print Namecard");printf("n6. Save Namecard");printf("n7. Load Namecard");printf("n8. End Namecard");do{printf("nn : select operation ->");i = atoi(gets(s)); //문자열을 정수로 변환} while ( i 8 ); //메뉴 번호에 해당안하면return i;}void main(void) //main{char *fname = "NAMECARD.dat";char name[NAME_SIZE];int i;card *t;init_card(); //초기설정함수 호출while ((i = select_menu()) !=8){switch (i){case 1:input_card(); //삽입break;case 2:printf("n Input name to delete ->");//삭제gets(name);//삭제할 이름 입력delete_card(name);if (!delete_card(name)) //정보가 없는 상태면 ..printf("");break;case 3:printf("n Input name to search->"); //검색gets(name);//검색할 이름 입력t = search_card(name);if (t == NULL) //정보가 없는상태면 ..{printf("n Can't find that name.");break;}print_header(stdout);print_card(t,stdout); //검색한 정보 찾으면출력break;case 4: //수정printf("n Input name to fix->");gets(name); //수정할 이름 입력if (!fix_card(name)){printf("n Can't find that name.");break;}break;case 5: //출력t = head->next;if (t == tail){ //정보가 없는상태면 ..printf("n Can't find that name.");break;}print_header(stdout);//화면에출력while (t!=tail) //t에 있는 정보들을 차례로 출력,tail전까지{print_card(t,stdout);t = t->next;}break;
    공학/기술| 2004.06.10| 5페이지| 1,000원| 조회(906)
    미리보기
전체보기
받은후기 4
4개 리뷰 평점
  • A+최고예요
    2
  • A좋아요
    1
  • B괜찮아요
    1
  • C아쉬워요
    0
  • D별로예요
    0
전체보기
해캠 AI 챗봇과 대화하기
챗봇으로 간편하게 상담해보세요.
2026년 03월 27일 금요일
AI 챗봇
안녕하세요. 해피캠퍼스 AI 챗봇입니다. 무엇이 궁금하신가요?
3:14 오후
문서 초안을 생성해주는 EasyAI
안녕하세요 해피캠퍼스의 20년의 운영 노하우를 이용하여 당신만의 초안을 만들어주는 EasyAI 입니다.
저는 아래와 같이 작업을 도와드립니다.
- 주제만 입력하면 AI가 방대한 정보를 재가공하여, 최적의 목차와 내용을 자동으로 만들어 드립니다.
- 장문의 콘텐츠를 쉽고 빠르게 작성해 드립니다.
- 스토어에서 무료 이용권를 계정별로 1회 발급 받을 수 있습니다. 지금 바로 체험해 보세요!
이런 주제들을 입력해 보세요.
- 유아에게 적합한 문학작품의 기준과 특성
- 한국인의 가치관 중에서 정신적 가치관을 이루는 것들을 문화적 문법으로 정리하고, 현대한국사회에서 일어나는 사건과 사고를 비교하여 자신의 의견으로 기술하세요
- 작별인사 독후감