转自http://guanhuaing.iteye.com/blog/1498891 代码如下 report zrich_0001. data: s type string, h(1) type x, c(1) type c, byte(2) type c, length type i, l_bindata type xstring, l_cntbin TYPE sdokcntbins. FIELD-SYMBOLS: <DUMMY>. s = 'This Is A String!'.lengt…
string常用成员函数 std::string::clear Clear string Erases the contents of the string, which becomes an empty string (with a length of 0 characters). Parameters none Return value none Example // string::clear #include <iostream> #include <string> int…