This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <Windows.h> | |
enum rb {red, black}; | |
typedef struct node { | |
int key; | |
enum rb color; | |
struct node *left; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
typedef struct student{ | |
char name[15]; | |
int number; | |
float total; | |
}student; | |
int main(void) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct SparceMatrix{ | |
int rowId; | |
int colId; | |
int value; | |
}SparceMatrix; | |
int Arr[3][3] = {{0,3,0}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) | |
{ | |
int Arr[3][5]; | |
int *Brr = (int*)malloc( sizeof(int) * 15 ); | |
int **Crr = (int**)malloc( sizeof(int*) * 3); | |
int rowIdx = 1, colIdx = 3, colSize = 5; | |
Crr[0] = Brr + 0 * colSize; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct student{ | |
char name[15]; | |
struct student* next; | |
}; | |
struct student *head, *tail; | |
void studentAddLast(char *name); // 연결리스트 뒤 부분에 학생을 삽입. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <conio.h> | |
int n; | |
int check[10]; | |
char list[10]; | |
void perm(int); | |
void print(int); |
NewerOlder