iT邦幫忙

0

要怎麼把這段Python trans to C++

  • 分享至 

  • twitterImage
for i in id_text:
    total += int(i) * n
    n -= 1
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

3
海綿寶寶
iT邦大神 1 級 ‧ 2020-06-13 22:18:48
for( const auto &i : id_text ) {
    total += int(i) * n;
    n -= 1;
}   

我要發表回答

立即登入回答