일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- SQL
- Java
- selectc
- C++
- 점점변하는값
- 0x
- Join
- Post
- 현재언어
- 하이퍼 터미널
- Avr
- mysql
- 단축키
- application.mk
- function
- halliday
- 파일존재
- cocos2d-x
- php
- array
- unalias
- mathemetica
- Call
- is_array
- PORTG
- 월별 카운트
- solution
- android studio
- 강좌
- Get
- Today
- Total
목록분류 전체보기 (119)
코딩도사의 코드정리
MFC 보다 훨씬 쓰기 간편하다. C++ 을 그대로 쓸 수 있는 강력함과 편한 GUI 프로그래밍 환경.
예전에 KLDP에 음수에 대한 나머지 연산질문을 올린적이 있었다. 허접한 질문에도 불구하고 성심성의껏 다들 댓글을 달아주셨다. ------------------------------------------------------------------------------------------------------------------------------------------ 나머지 연산자를 쓰다가 음수를 생각하게 되었습니다. 예를 들어서 (-3) % 2 는 1 이 될 수도 있고 -1 이 될 수도 있는거 같습니다. 한번 궁금해서 여러 프로그램에 이 식을 넣고 답을 기다렸습니다. 먼저 MS 의 VC는 답을 -1 로 내놓았습니다. 윈도우즈 내장 계산기는 답을 -1 로 내놓았습니다. 하지만, MS Excel 은 ..
[옛날 쓴글 가져오기 - mmoz] 제가 간단히 아는 ㅇ명령어로만 해봤는데 결과가 아주 비참하군요!! 셀러론 1Ghz 입니다. __declspec(naked) int mmojz_strlen(const char* s) { __asm { push ebp mov ebp, esp } __asm { push ecx push esi mov ecx, -1 mov esi, dword ptr[ebp+8]; cld l: lodsb inc ecx cmp al, 0 jne l mov eax, ecx pop esi pop ecx } __asm { pop ebp ret } } int mmojz2_strlen(const char* ch) { int i=0; while (*ch++) i++; return i; } int main()..
#include #include #include #include #include using namespace std; #ifdef mycom ifstream fin("input"); #else #define fin cin #endif vector v; vector orders; int N, P, R; unsigned long long counter=0; void back(int order) { if(v.size() == orders.size()) { vector arr; for(int i=0; ii; j--) { if(arr[j] > arr[i]) { allsmall = false; break; } } if(allsmall) // arr[i] 가 rightable 하다 { myr++; } } if(myr..
#include #include #include #include #include using namespace std; #ifdef mycom ifstream fin("input"); #else #define fin cin #endif char chess[100][100] = {0,}; int n, k; long long total = 0; bool possible(int y, int x) { int newy = y; int newx = x; for( ; newy >= 0 && newx >= 0; newy--, newx--) { if(chess[newy][newx] == true) { return false; } } newy = y; newx = x; for( ; newy < n && newx < n; n..
vector v; vector select; void back(int order) { if(select.size() == v.size()) { for(int i=0; i
vector v; vector select; void back(bool sel) { if(select.size() == v.size()) { for(int i=0; i
#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #ifdef mycom ifstream fin("input"); #else #define fin cin #endif class team { public: int score; int wincounter; int goaldiff; int manygoal; int gamecounter; string teamname; //////////// int drawcounter; int losecounter; int sibalgoal; team() { score = 0; wincounter =..
#include #include #include #include #include #include #include #include using namespace std; #ifdef mycom #include ifstream fin("input"); #else #define fin cin #endif vector A; vector B; int main() { int testcase; testcase = 1; fin >> testcase; int hours; string solution; solution.resize(10000); for(int i=1; i> n; for(int j=1; j> temp; A.push_back(temp); } sort(A.begin(), A.end()); //saram 에 대한 ..
#include #include #include #include #include #include #include #include #include using namespace std; //#define mycom #ifdef mycom #include ifstream fin("input"); #else #define fin cin #endif using namespace std; int main() { int casenumber; fin >> casenumber; for(int i=1; i> headnumber; vector s; for(int j=1; j> temp; s.push_back(temp); } int nmin = numeric_limits::max(); for(vector::iterator i..
#include #include #include #include #include #include #include using namespace std; #define mycom #ifdef mycom #include ifstream fin("input"); #else #define fin cin #endif struct Node { string vertex; Node* adj; bool operator==(const Node& n) const { return (vertex == n.vertex); } bool operatorvertex = to; p->adj = fromiter->adj; fromiter->adj = p; } int sina; int non; int saram; int mymin = 999..
halliday solution physics 8th 8e
나도 그랬고 군대간 동생, 친구들이 시간 안간다고 징징댄다. 군대에서는 시간이 잘 안간다고 한다. 자기가 싫어하는 곳에서는 시간이 잘 안가는 건지 알았는데 꼭 그런건만은 아닌거 같다. 막내 레벨일 때 청소도구 챙기고, 물떠오고, 식당청소 도맡아서 하고, 빨래도 하고 설거지도 하고 아침에 일어나면 눈치보면서 침구류 미친듯이 빨리 개고 누구보다 빠르게 나가고 잡일을 도맡아서 하면 시간이 잘 가는거 보니 .. 내 생각은 생각하는 시간이 길어질 수록 시간은 더디게 가는거 같다. 군대 특성상 조금의 변화는 있을지언정 거의 똑같은 일상의 반복이기 때문에 특정 짬을 먹으면 그 이후로는 시간이 멈춰있는듯한 느낌이 든다. 보통 상병쯤 되면 정신병 걸린다. 매일 있는 근무를 나가면 처음에는 긴장해서 근무를 서지만 근무가 ..
이전 글과 이어서 이번엔 그냥 단순히 다른 프로세스에 DLL 파일을 집어넣는 작업을 해보겠습니다. DLL 파일은 아무 DLL 파일이든지 상관없으니까 #include #define MB_OUT MB_OK BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { HANDLE hThread = NULL; switch( fdwReason ) { case DLL_PROCESS_ATTACH : MessageBoxA(0, "dll 진입", "dll 진입", MB_OUT); break; } return TRUE; } DLL 프로젝트로 다음과 같은 코드를 넣고 컴파일을 합니다. 여기서 나온 파일을 dllproject.dll 라고 치고 c..