NDK unknow type name 'string' std::to_string support

Application.mk

APP_STL:=c++_static 

or

APP_STL:=c++_shared
//to use strings  
#include <string>  
  
//to use vectors  
#include <vector>  
  
//and so on...  
  
/* add this line, to avoiding writing 'std::' every time a string (or any  
other container) is declared.*/  
using namespace std;  
發佈了20 篇原創文章 · 獲贊 1 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章