有關南一Onestudy自學平台並使用功能
選手題目的參考做法
https://steam.oxxostudio.tw/category/scratch/example/clock.html
(做時鐘)
https://steam.oxxostudio.tw/category/scratch/example/dodge-stone.html
(閃躲遊戲)
(找到所有因數)
https://steam.oxxostudio.tw/category/scratch/example/snake.html
(貪食蛇)
(射擊遊戲)
(尋寶遊戲)
https://www.junyiacademy.org/article/4377c71b06534ec7a0294857941c06ae
(滑雪遊戲)
(賽車遊戲)
#include<iostream>
#include<cstdlib>
#include<ctime>
using namespace std;
int main()
{
int n;
cin>>n;
if(!(n%2==0))
{
srand(time(NULL));
n=1+rand()%14;
cout<<endl<<"The lucky boy is number "<<n;
exit(EXIT_SUCCESS);
}
if(n%2==0){
srand(time(NULL));
n=14+rand()%13;
cout<<endl<<"The lucky girl is number "<<n;
}
}