String().sprintf(L"select * from dccuser where User_name = '%s' and User_pass = '%s'",Edit_User->Text.w_str(),Edit_Pass->Text.w_str());
在安卓上顯示出來的結果是
"select * from dccuser where User_name = 's' and User_pass = 's'"
uj5u.com熱心網友回復:
真的可以了,謝謝!
大家繼續討論樓上的問題吧,C++才支持安卓,肯定有很多問題。
uj5u.com熱心網友回復:
Sets the value of UnicodeString, given the format string and its arguments.
Use sprintf to set to the value of the UnicodeString instance, given a standard C++ format specifier. Pass the values to any arguments in the format specifier as additional parameters following the format parameter.
This method returns a reference to the UnicodeString instance (*this) with the resulting value.
Warning: The value returned by UnicodeString.c_str() under OS X and iOS is char16_t* while the sprintf function expects wchar_t*.
Note: UnicodeString.sprintf() does not support %ls on the Mac OS X platform.
眾所周知,C ++的學習曲線陡峭,但是花時間學習這種語言將為您的職業帶來奇跡,并使您與其他開發人員區分開。您會更輕松地學習新語言,形成真正的解決問題的技能,并在編程的基礎上打下堅實的基礎。 C ++將幫助您養成良好的編程習慣(即清晰一致的編碼風格,在撰寫代碼時注釋代碼,并限制類內部的可見性),并且由 ......
值傳遞不會改變本身,參考傳遞(如果傳遞的值需要實體化到堆里)如果發生修改了會改變本身。 1.基本資料型別都是值傳遞 package com.example.basic; public class Test { public static void main(String[] args) { int ......