Skip to content

Instantly share code, notes, and snippets.

View Jack2's full-sized avatar

JAEKI KIM Jack2

View GitHub Profile
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <sstream>
using namespace std;
int main()
{
<?xml version=”1.0″ encoding=”utf-8″?>
<manifest
xmlns:android=”http://schemas.android.com/apk/res/android”
android:versionCode=”4″
android:versionName=”1.3″
package=”com.button.phone” >
<uses-sdk
android:minSdkVersion=”6″ >
</uses-sdk>
<uses-permission
@Jack2
Jack2 / connect_ex.cpp
Created December 11, 2012 17:39
[C++]connect_example
#ifndef UNICODE
#define UNICODE
#endif
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdio.h>
@Jack2
Jack2 / STL_deque_ex.cpp
Created November 28, 2012 17:15
[C++]STL_deque_example
#include <iostream>
#include <deque>
using namespace std;
int main()
{
deque<int> JacksDeque;
int soo;
@Jack2
Jack2 / STL_list_ex.cpp
Created November 27, 2012 15:43
[C++]STL_list_example
#include <iostream>
#include <list>
using namespace std;
int main()
{
list<int> JL;
JL.push_back(100);
JL.push_front(999);
@Jack2
Jack2 / STL_vector_ex.cpp
Created November 27, 2012 15:32
[C++]STL_vector_example
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
vector<string> VS;
@Jack2
Jack2 / template_ex.cpp
Created November 19, 2012 16:14
[C++]template_example
#include <iostream>
using namespace std;
template <typename T>
T Add(T a, T b)
{
return a+b;
}
@Jack2
Jack2 / func_ptr_ex2.cpp
Created November 14, 2012 18:10
[C++]function_pointer_example2
#include <iostream>
#include <conio.h>
using namespace std;
int sum(int a,int b);
int subtract(int a,int b);
int multi(int a,int b);
int divide(int a,int b);
@Jack2
Jack2 / move_ex.cpp
Created November 14, 2012 17:33
[C++]move_example
#include "Turboc.h"
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
const int LEFT = 75; //#define LEFT 75 대신 사용
const int RIGHT = 77; //#define RIGHT 77 대신 사용