原创 C++面試相關題目集合選摘

關於繼承、多態、重寫、重載等: #ifndef _PRINTHELLO_H_ #define _PRINTHELLO_H_ #include<stdio.h> class PrintHello { public: static P

原创 由字符編碼H5std_string導致的H5FCreate: Unable to create file問題解決

首先感謝:http://blog.csdn.net/mrhiuser/article/details/69603826 在將代碼在VS2013中編譯後運行,報錯: VS中動態庫連接技巧:http://blog.csdn.net/houw

原创 關於Spark中計算圓周率Pi的理論原理——蒙特卡洛(隨機試驗法)

搬代碼: from __future__ import print_function # # Licensed to the Apache Software Foundation (ASF) under one or more # co

原创 記錄一下怎麼使用pycaffe調用已有的網絡模型識別人臉(物體)

我的哲學原理:比較喜歡從結果向前推,有了能做什麼、再去學怎麼做? 今天就來看看怎麼從圖片中識別出人臉: 代碼很簡單,直接上碼: # -*- coding: utf-8 -* import numpy as np import

原创 使用多線程手動寫出循環打印ABABABAB...

平時沒在意,敲敲代碼就出來了,可實際用筆在紙上書寫的時候就不知所措了 QT比較熟悉,就用它來實現吧! #ifndef HELLOTHREAD_H #define HELLOTHREAD_H #include <QThread> #inc

原创 Windows下Google Protobuf Visual Studio自動編譯腳本示例

直接上protobuf2.x和protobuf3.x命令行自動編譯腳本: @echo off set PATH=D:\Android\Microsoft Visual Studio 12.0\Common7\IDE;%PATH% ca