https://soundcloud.com/user-799388125-908573266/stuff-class-exercise_10-27-15
These are the rule (made using Xcode):
//
// main.cpp
// random
//
// Created by Martinez,Cesar E on 10/27/15.
// Copyright (c) 2015 Martinez,Cesar E. All rights reserved.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
// insert code here...
int val;
int stuff = rand() % 50 + 1;
int stuff2 = rand() %50 + 1;
cout << "Pick any number" << endl;
cin >> val;
if ((val+stuff)%2) {
cout << "download a nature sound" << endl;
}
else {
cout << "record your own sound" << endl;
}
if (stuff2 > 15) {
cout << "add an effect to the sound" << endl;
cout << "make sound overlap with the previous one" << endl;
}
return 0;
}
No comments:
Post a Comment