Programming

1. 소멸자 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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 #include class AAA { public: //virtual ~AAA() {}; virtual void print() = 0; }; class A { public: A() {}; int b = 10; virtual void print() { std::cout
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 #include class A { public: A() {}; int b = 10; void print() { std::cout
근본적으로 openssl 은 C++ 기반이 아닌 'C' 언어 기반임을 유의하고 보길 바란다. 다만 해당 포스팅은 Visual Studio 2013 에서 C++ Project 로 만들었다. 우선 해당 포스팅에서 빌드방법은 생략한다. 귀찮거든.... 구라는 치지 않는다. openssl 은 빌드 후, 빌드 결과물을 참조하여 사용한다. 다만 빌드하는 링크 자료는 남겨 두겠다. openssl/openssl TLS/SSL and crypto library. Contribute to openssl/openssl development by creating an account on GitHub. github.com openssl 저장소 openssl/openssl TLS/SSL and crypto library. Con..
Task.Wait과 await의 차이점 Stack Overflow에서 발견한 흥미로운 질문과 답변입니다. set 출처: https://stackoverflow.com/questions/9519414/whats-the-difference-between-task-start-wait-and-async-await kayuse88.github.io C# await - C# 프로그래밍 배우기 (Learn C# Programming) C# 5.0 : async / await 키워드 C# 5.0부터 새로운 C# 키워드로 async와 await가 추가되었다. 이 키워드들은 기존의 비동기 프로그래밍 (asynchronous programming)을 보다 손쉽게 지원하기 위해 C# 5.0에 추가된 중요 www.csharps..
해당 포스팅은 MSDN의 설명을 보다 다듬은 글입니다. 원본을 참조하고 싶으면 MSDN을 참조하세요. StructLayoutAttribute.Pack 필드 (System.Runtime.InteropServices) 메모리에 있는 클래스 또는 구조체의 데이터 필드 맞춤을 제어합니다.Controls the alignment of data fields of a class or structure in memory. docs.microsoft.com 사용할 Code using System; using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential, Pack = 0)] struct ExampleStruct { public byte b1; p..
#include #include using namespace std; #pragma comment(lib, "ws2_32.lib") #define RECEIVER_IP "127.0.0.1" #define PORT 7788 #define PACKET_LENGTH 48 // don't have Marshalling, this struct not include array pointer. struct SendInfo { public: int One; int Two; double Three; double Four; double Five; double Heading; int MissionStatus; }; int main() { SendInfo sendinfo; sendinfo.One = 10; sendinfo.T..
using System.Runtime.InteropServices; namespace Test { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct TestSet { [MarshalAs(UnmanagedType.I4)] public int EntType; [MarshalAs(UnmanagedType.I4)] public int EntityID_1; [MarshalAs(UnmanagedType.R8)] public double EntityID_2; [MarshalAs(UnmanagedType.I4)] public int EntityID_3; [MarshalAs(UnmanagedType.R8)] public doubl..
In C# what is the thing written in square brackets before a class or a function? I am familiar to C and C++. I am using C# for the first time. I trying to learn about WCF and WPF. I using a tutorial in CodeProject. There the writer has given a sample code. There he has written stackoverflow.com stackOverFlow 에 유용한 예제가 있어서 해당 답변자의 말을 한국어로 요약 해 본다. 질문자가 올린 코드이다. 인터페이스 내에 정의된 메소드 앞에 대괄호로 무언가가 쓰여 있다..
대학생때 자연어 처리에 관해서는 상당히 깊게 생각해 본 터이라 전문가는 아니더라도 기초적인 지식에 대해서는 상당히 꿰뚫고 있으나, 이미지 처리에 관해서는 전혀 문외하기에 (대충 원리만 추측할 뿐) OpenCV 예제중 Digit_svm 이 있기에 이를 분석하는 글을 작성 해 본다. 해당 글은 전문적인 분석이 아니며, 짧은 시간을 투자한 글이므로 정확하지 않을 수 있다. 지적 댓글은 언제나 환영이다. 우선 Digit_svm 이란 Digit = 숫자, SVM = Support Vector Machine 으로서 숫자의 패턴을 통해 숫자를 판별하는 방법을 배우는 OpenCV 의 예제이다. 보통은 Python 을 통해 많이 작업하는데 이 글은 C++ 기준으로 예제에 관해 간략하게 해설한다. OpenCV 를 CMak..
비동기에 대한 기초적 개념을 알고 싶다면 MSDN 을 보는편이 훨신 좋을 것이다. . C#의 비동기 프로그래밍 async, await 및 Task를 사용하여 비동기 프로그래밍을 지원하는 C# 언어에 대해 간략히 설명합니다. docs.microsoft.com 비동기 실행 방식에는 Task, Thread, Async, Await 등의 문법이 존재하는데. 그 중 Async 와 await 을 lamdba 식에서 사용시 오류에 관해 간단히 설명해 보려 한다. 아래 예제에서 Task1 을 실행시키면 Run() 비동기평선이 제대로 실행되지 않고 종료 될 것이다. 초보자가 보기엔 이것이 '버그' 일 수 있으나, 엄밀히 말하면 버그는 아니다. using System; using System.Collections.Gene..
Cyp
'Programming' 카테고리의 글 목록 (3 Page)