random int, double, char, string => byte
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> | |
/** | |
* swap function | |
* @param xp pointer x | |
* @param yp pointer y | |
* */ | |
void swap(long *xp, long *yp) { | |
// define temporary values | |
long temp0 = *xp; |
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
/** | |
* compute RTT values | |
* (DevRTT, EstimatedRTT, TimeoutInterval) | |
* @author shj <https://github.com/Gumball12> | |
* */ | |
// import module | |
#include <stdio.h> | |
#include <stdlib.h> // for absolute value function 'abs' |
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
/** | |
* tcp socket programming (client-side) | |
* @author shj | |
*/ | |
// import module | |
const net = require('net'); | |
// create TCP socket | |
const client = new net.Socket(); |
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
// cs-assignment 2-4 "Byte Manipulation - Integer Addition" | |
// @author shj | |
// import modules | |
#include <stdio.h> | |
#include <limits.h> // for get limits the values of various variable types | |
/** | |
* integer addition with unsigned short int type | |
* @param a first operand |
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
// cs-assignment 2-2 "Byte Manipulation - Byte Level Operation" | |
// @author shj | |
// import modules | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define STR_SIZE 10 // string size | |
#define TESTING_TIMES 30 // for unit-testing |
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
// https://rextester.com/KAY13591 | |
// import modules | |
#include <iostream> | |
// define Character class | |
class Character { | |
private: | |
// declare fields | |
int x; |
-
ref는 언제나 꼭 달자 => 신뢰성 높아짐
- 꼭 ref 달 때 아니라도 굉장히 유용한 정보들을 얻을 수 있을듯
-
ref 검색방법
- 도서관 홈페이지 (없으면 원문복사신청)
- 도서관의 통합검색 (개좋은듯)
- 물론 해외 자료도 가능
- 학술DB (RISS, NDSL, 국회도서관)
- 도서관 홈페이지 통해서 가면 됨. 학교에서 구매한 유료자료 볼 수 있기 때문
- 도서관 홈페이지 (없으면 원문복사신청)
-
물론 구매안한 자료도 있기에, 원문복사신청
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
// import modules | |
#include <stdio.h> | |
#include <limits.h> | |
#include <stdlib.h> | |
// define Stack struct | |
struct Stack { | |
int* arr; | |
int top; | |
unsigned length; |
image url: https://i.imgur.com/KcWJN4n.png