전체 글 (267) 썸네일형 리스트형 Lambda Expression 12345678910#include #include #include int main(int argc,char *argv[]){ [] () {} ; } Colored by Color Scriptercs 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849#include #include #include #include #include struct Student{ std::string name; int kor; int math; int eng; double average;}; using Student = struct Student; bool Compare(Student& a,Student& b); int.. 유니폼 초기화, initializer_list (이니셜라이져 리스트), 123456789101112131415int a = 10;int b(10); // add int c = { 10 }; // int !int d{ 10 }; // int ! auto a = 10;auto b(10); // add auto c = { 10 }; // int ?auto d{ 10 }; // int ? cs Initializer_list ! 1234567891011121314151617181920212223242526#include #include #include int main() { // 10,20,30,40,50 std::vector vInt; vInt.push_back(10); vInt.push_back(20); vInt.push_back(30); vInt.push_back(40); vI.. 2진수 표현 방법, 구분자 ' 지원 12345678910111213141516171819202122#include int main() { int a = 10; int b = 065; int c = 0xFF; int d = 0b11011; int e = 2147483647 // 구분자 ' 지원 int f = INT_MAX; // INT_MAX == 2147483647 // 2진수 표현방법 // 1. bitset // 2. Shift Operator // 3. vector }Colored by Color Scriptercs 모듈용 윈도우 C 소켓 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556#include #pragma comment(lib,"ws2_32.lib") #define BUFSIZE 1024 int senddata(int PORT, char IP[],char data[]); int main() { /* int senddata( int PORT, char IP[], char data[] ); 에러가 없으면 0 반환. 에러 발생 시 에러값 반환. (int 형) */ if (0 != senddata(80, "221.151.187.115", "GET / HTTP/1.1\nHost:www.kim82536.p.. 윈도우 C 소켓 기본 자료참고: http://dakuo.tistory.com/159 1234567891011121314151617181920212223242526272829303132333435363738#include #include #include #include #pragma comment(lib,"ws2_32.lib") #define IP "221.151.187.115"#define PORT 80#define BUFSIZE 1024 int main() { WSADATA wsaData; SOCKET client; SOCKADDR_IN serveraddr; char buf[BUFSIZE]; WSAStartup(MAKEWORD(2, 2), &wsaData); printf("WSAStartup : %d\n", WSAGetLa.. C와 C++ 동시사용 12345678910#include #include using namespace std; int main() { printf("test\n"); cout 스택 with Linked List 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566#-*-coding:utf-8-*- class Node: def __init__(self,data): self.data=data self.next=None def init_node(data): node1=Node(data) tmp_ptr=node1 return tmp_ptr def print_node(str_ptr): tmp_ptr=str_ptr # os.system("cls") print "\n\n\n" while 1: print tmp_ptr.data if tmp_ptr.next ==.. 게임서버 최종 소스 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816.. 이전 1 ··· 7 8 9 10 11 12 13 ··· 34 다음