Anonymous user
String Character Length: Difference between revisions
→[[C]]: add C++
(Added example in Lua) |
(→[[C]]: add C++) |
||
Line 17:
return 0;
};
==[[C++]]==
'''Standard:''' [[ISO C++]] (AKA [[C++98]]):
'''Compiler:''' g++ 4.0.2
#include <string> // note: '''not''' <string.h>
int main()
{
std::string s = "Hello, world!";
std::string::size_type length = s.length();
}
==[[Java]]==
|