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
/********************************************************** | |
Name : | |
Date : 2016/05/29 | |
By : CharlotteHonG | |
Final: 2016/05/29 | |
**********************************************************/ | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; | |
/*=======================================================*/ |
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
/********************************************************** | |
Name : 副程式取得陣列長度 | |
Date : 2016/05/31 | |
By : CharlotteHonG | |
Final: 2016/06/19 | |
**********************************************************/ | |
#include <iostream> | |
template<size_t N> | |
void arr_len(int (&arr)[N]); |
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 <iostream> | |
#include <windows.h> | |
using namespace std; | |
int main(int argc, char const *argv[]){ | |
char org_dir[MAX_PATH]; | |
GetModuleFileName(NULL,org_dir,MAX_PATH); | |
cout << org_dir << endl; | |
return 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
/********************************************************** | |
Name : 指標範例 | |
Date : 2016/06/02 | |
By : CharlotteHonG | |
Final: 2016/06/02 | |
**********************************************************/ | |
/* 指標記住兩句話[*找數值][&找地址] */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
void modify(int* n1, int n2){ |
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
/********************************************************** | |
Name : link | |
Date : 2016/07/05 | |
By : CharlotteHonG | |
Final: 2016/07/05 | |
**********************************************************/ | |
#include <iostream> | |
#include "single" | |
using namespace std; |
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
/********************************************************** | |
Name : | |
Date : 2016/07/06 | |
By : CharlotteHonG | |
Final: 2016/07/06 | |
**********************************************************/ | |
#include <iostream> | |
using namespace std; | |
template <typename S1, typename S2> |
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
Show hidden characters
/********************************************************** | |
Name : User_iVlog.sublime-build | |
Date : 2016/07/27 | |
By : CharlotteHonG | |
Final: 2016/07/27 | |
## 標準: | |
### 檔名: | |
1. 原始檔名為 Source.v |
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
/********************************************************** | |
Name : OpenRAW.cpp | |
Date : 2016/08/03 | |
By : CharlotteHonG | |
Final: 2016/08/03 | |
**********************************************************/ | |
#include <iostream> | |
using namespace std; | |
/*=======================================================*/ | |
#include <iostream> |
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 <iostream> | |
using namespace std; | |
// 解構子 | |
class darr{ | |
public: | |
darr(size_t len){ | |
this->p = new int[len]; | |
for (int i = 0; i < (int)len; ++i){ |
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> | |
char *swapstr_rec(char *str, int begin, int end, int first){ | |
while (begin < end - 1){ | |
char tmp = str[begin]; | |
str[begin++] = str[--end]; | |
str[end] = tmp; | |
} | |
end += begin; |