This file contains 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); |
This file contains 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 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 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 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 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 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> | |
int index = 0; | |
int main(void) | |
{ | |
scanf("%s", parser); | |
expr(); | |
return 0; | |
} | |
void match(char t) | |
{ |
This file contains 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
package sunwooks; | |
// 1)차이가뭔지 파일,IOException | |
// 설명 : IOException은 말 그대로 IO(Input,Output)과정에서 발생하는 예상못한 동작이 발생했을때 | |
// 이 프로그램이 그 에러를 처리하지 않고, 상위 프로그램에 전달한다는 뜻인데, 이거는 Java의 핵심 | |
// 예외 처리 기법이라 알면 좋고, 굳이 여기서 100% 이해할 필요는 없고. 아마 try-catch 배우면서 | |
// 더 자세히 배우게 될꺼야. | |
// 내가 알기로는 Scanner 클래스는 IOException이 안 일어나는걸로 알고 있는데... 필요한가 보네... | |
import java.io.File; |
This file contains 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
package sunwooks; | |
import java.io.*; | |
import java.util.Scanner; | |
public class light { | |
public static void main(String [] args)throws IOException{ | |
int size; | |
int [][] area; |
This file contains 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> | |
int main() | |
{ | |
int i = -1; | |
printf("i : %u\n", (unsigned int)i); | |
return 0; | |
} |
OlderNewer