Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
C++ 亂數能設為變數?
Jun 24th 2013, 01:31

我打算製作 10點半遊戲

#include <iostream>
using namespace std;

int main()
{
srand(time(NULL));

cout<<1+rand()%13<<endl; 這兩個亂數
cout<<1+rand()%13<<endl;

system("PAUSE");
}

這兩個亂數如何做相加
能把它設為A ?

有rand = a這種東西?

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - https://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
創作者介紹
創作者 2016汽車駕照的筆試 汽車筆試沒過汽車駕照筆試有效期限汽車筆試時效2015汽車駕照筆試是採用什麼方法考的?2016 的頭像
approa

2016汽車駕照的筆試 汽車筆試沒過汽車駕照筆試有效期限汽車筆試時效2015汽車駕照筆試是採用什麼方法考的?2016

approa 發表在 痞客邦 留言(0) 人氣( 0 )