摘要:
1、QString、std::string转化成char*#include #include int main(){ QString str_Q("cupcupy北京"); int j = str_Q.length(); //11,一个汉字算两个字符 std::string str... 阅读全文
摘要:
/*!\brief 判断两个浮点数是否相等\return 相等返回true 不等返回false\param float absfloat - 允许的最小误差范围*/#include "limits.h"using namespace std;bool equal_float( float fa, f... 阅读全文