原创 五本書見識書籍

原创 libcurl-rtsp-example

#include <iostream> #include<stdio.h> #include<stdlib.h> #include<string.h> #include<termio.h> #include<termios.h> #

原创 libcurl_anyauthput

#ifndef LIBCURL_ANYAUTHPUT_HPP #define LIBCURL_ANYAUTHPUT_HPP #include<stdio.h> #include<stdlib.h> #include<curl/curl

原创 libcurl-cookie_interface

#ifndef LIBCURL_COOKIE_INTERFACE_HPP #define LIBCURL_COOKIE_INTERFACE_HPP #include <stdio.h> #include <stdlib.h> #incl

原创 libcurl-crawer

#ifndef LIBCURL_CRAWLER_HPP #define LIBCURL_CRAWLER_HPP int max_con = 200; int max_total = 20000; int max_requests =

原创 libcurl_certinfo

#ifndef LIBCURL_CERTIINFO_HPP #define LIBCURL_CERTIINFO_HPP #include<stdio.h> #include<curl/curl.h> static size_t wrf

原创 libcurl_example-curlx

#ifndef LIBCURL_CURLX_HPP #define LIBCURL_CURLX_HPP #include<stdlib.h> #include<stdio.h> #include<string.h> #include"

原创 libcurl_cacertinmem.hpp

#ifndef LIBCURL_CACERTINMEM_HPP #define LIBCURL_CACERTINMEM_HPP #include<openssl/err.h> #include<openssl/ssl.h> #incl

原创 數字轉字符串的轉換

#include <ctype.h> #include <stdio.h> void itoa (int n,char s[]) { int i,j,sign; if((sign=n)<0)//記錄符號

原创 new操作執行的步驟

string *pSp = new string("a value"); //分配並初始化一個string對象 string *pArr = new string[10]; //分配10個默認初始化的string對象 //操作分三步 /

原创 eclipse cross compile tool for imx

http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX6/Eclipse_Plug-in

原创 ubuntu 20.04版本設置http服務器方法

python3 -m http.server http://127.0.0.1:8000  

原创 if else過多的解決辦法

如何解決代碼中if…else 過多的問題 前言 if...else 是所有高級編程語言都有的必備功能。但現實中的代碼往往存在着過多的 if...else。雖然 if...else 是必須的,但濫用 if...else 會對代碼的可讀性、可

原创 libcurl_10_at_a_time實例

#ifndef LIBCURL_10_AT_A_TIME_HPP #define LIBCURL_10_AT_A_TIME_HPP #include<stdlib.h> #include<string.h> #include<errn

原创 單個puts語句和多個puts語句的時間效率差異測試

clock_t start = clock(); for(auto i=0;i<1000000;i++){ puts("Reading from keyboard"); puts("------