Search:

Type: Posts; User: asofaihp

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    12,186

    How to play a sound

    I was wondering if there was any way to make C++ emit sounds, and at different frequencies. What I want to do is be able to play a note for a specific period of time then play a different note...
  2. Passing a string array to a function using pointers

    I'm having trouble passing a string array to another function. I can pass an integer array like this
    int main(){
    int numbers[3] = {1,2,3};
    void print_array (int*array);
    print_array (numbers);...
  3. Replies
    6
    Views
    1,435

    I ended up turning it into a function in my...

    I ended up turning it into a function in my program, but if anyone wants to know you add a backslash to the end of each line in the macro except for the last line, as brewbuck said.
  4. Replies
    6
    Views
    1,435

    Help with multi-lined macro

    I was wondering why this code isn't working. I'm trying to make a multi-line macro for use in my program.


    #ifndef DISPLAY_INFO
    #define DISPLAY_INFO
    x = 0;
    y = 0;
    while (x < 10){
    cout <<...
Results 1 to 4 of 4