EDA365电子论坛网

标题: 嵌入式C++开发之string类(中) [打印本页]

作者: uperrua    时间: 2019-7-23 11:21
标题: 嵌入式C++开发之string类(中)
5.string类的赋值
& Y, w! U6 B# `8 y
4 S( _2 L3 c, b8 c% C( F·string &operator=(const string &s);//把字符串s赋给当前字符串) t% r" ~2 a. d7 R3 w$ I+ W0 M# h* ^
) o2 v) I2 y; K" s8 `4 @& ]% T" ^/ j

" X2 I5 N* `6 y: {( Y+ e9 d' C
+ z4 G. }# u* {2 x& D1 p& q
* |' ]2 v" n1 t+ R$ x- f
  w3 U- a, y, C7 @5 x: a3 u2 f/ Y, i% ?

% i6 G* s1 p7 ^1 N
作者: yefengzhuiyue    时间: 2019-7-23 11:27
学习下




欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/) Powered by Discuz! X3.2