第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

關(guān)于string是引用類型

老師說string是引用類型

string str1 = "abcdef";

string str2 = str1;

str2 = "abcd";

Console.WriteLine(str1);

輸出的還是“abcdef”呀?


正在回答

3 回答

我也是懵逼了,可以參考這個(gè)https://blog.csdn.net/u011555996/article/details/79203220

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

夏末未夏 提問者

謝謝!
2020-03-09 回復(fù) 有任何疑惑可以回復(fù)我~

<style>

div{

????width:30px;

????height:30px;

????border-radius:50%;

????float: left;

}

</style>

<div?style="background:red;">測(cè)試1</div>

<div?style="background:orange;">測(cè)試2</div>

<div?style="background:yellow;">測(cè)試3</div>

<div?style="background:green;">測(cè)試4</div>

<div?style="background:skyblue;">測(cè)試5</div>

<div?style="background:blue;">測(cè)試6</div>

<div?style="background:purple;">測(cè)試7</div>


0 回復(fù) 有任何疑惑可以回復(fù)我~

你這個(gè)邏輯有問題呀? ? 如果你要想讓str1輸出變成str2? ?那么應(yīng)該是str1=str2

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

關(guān)于string是引用類型

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)