Difference between revisions of "C++"

From NoiseWiki
Jump to navigationJump to search
m (Reverted edits by Ijotohywun (talk) to last revision by Gordon)
 
(No difference)

Latest revision as of 14:36, 23 November 2010

"Hello Noise" code example

#include <iostream> 
#include <stdlib>

using namespace std; 
int main () 
{ 
    int hertz;
    cout << "Hello Noise! \n"; 

    randomize();
    while(1){           
        hertz=random(22030)+20;
        sound(hertz);            // this may need debugging.
    }
    return 0; 
}

help, tutorials, etc.

http://www.cplusplus.com/doc/tutorial/