전체 글

전체 글

    [ubuntu] install curl

    $ sudo apt-get install curl$ usdo apt-get udpate && sudo apt-get upgrade

    [curl] cURL - HTTP GET요청 함수 만들어 보기

    #include #include #include using namespace std; size_t write_html(void *ptr, size_t size, size_t count, void *stream) { ( (string*)stream )->append( (char*)ptr, 0, size*count); return size * count; } bool http_get(char *url, string &html) { CURL *curl; CURLcode res; curl = curl_easy_init(); if( curl) { curl_easy_setopt(curl, CURLOPT_URL, url); res = curl_easy_perform(curl); curl_easy_setopt(curl..

    [curl] compile 방법

    http://www.joinc.co.kr/modules/moniwiki//wiki.php/Site/Web/documents/UsedCurl http://stackoverflow.com/questions/16476196/undefined-reference-to-curl-global-init-curl-easy-init-and-other-functionc I am trying to use Curl in C. I visited Curl official page, and copied sample source code. below is the link: http://curl.haxx.se/libcurl/c/sepheaders.html when I run this code with command "gcc test.c..

    [c++] string combine

    #include #include using namespace std; int main() { char *name; name = new char[5]; name = "asdf"; name = "asdf" "asdf"; cout

    [c++] strlen function

    #include #include using namespace std; int main() { char *name; char *name2; name = new char[5]; name = "asdf"; cout

    [ubuntu] install zlib

    sudo apt-get install zlib1g-dev zlib manual http://www.zlib.net/manual.html

    [ubuntu] nvidia install 시도 1

    환경 : ubuntu 12.04 32bit http://blog.naver.com/bagjunggyu?Redirect=Log&logNo=130180130651 http://www.techlw.com/2012/03/install-nvidia-drivers-on-ubuntu-1204.html http://askubuntu.com/questions/202677/nvidia-driver-doesnt-work-in-12-10 I had a similar problem. Solved like this:Boot as normal and get to login screenpress Ctrl+Alt+F1Login with your username and password.type sudo stop lightdm and p..

    openGL | openGL 3강-빛(1)

    환경 : ubuntu 13.10 64bit http://yooninsung.blog.me/30090383886 위 블로그의 코드를 수정하였습니다. 위 블로그는 window 운영체제, 저는 우분투 운영체제에서 코드를 수정해서 동작했습니다. (Ubuntu 13.10) 컴파일g++ lecture4.cpp -lGL -lGLU -lglut -o lecture4