Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

?
Lv 4

Programming question? Help!?

Hey just wondering what I would use to run this program http://imgur.com/kFqaGj4

Thanks!

Update:

How could I run it on windows 7?

3 Answers

Relevance
  • 8 years ago
    Favorite Answer

    That is just plain old "C". Not C++.

    Gcc or any other C compiler will do it for you.

    Added: Windows7:

    If you do not already have Cygwin installed (you should), then download the setup from Cygwin.org

    Install Cygwin and choose "gcc" under the "Devel" section of the installer.

    Then run the Terminal (bash shell).

    At the shell prompt, enter the command:

    gcc YourFileWithTheCodeInIt.c

    That will create the executable "a.out".

    Run that with command:

    ./a.out

  • It's a C program that uses pthread.h, so I'd say your need a C compiler running on Linux.

    The GNU C compiler is one of the best compilers out there (if not THE best), and it comes pre-installed on Linux, so the short answer is: you'll need a Linux computer.

    ## EDIT ## I wonder why Jim claims it's C++, when it's clearly C.

  • Jim
    Lv 7
    8 years ago

    gcc (g++) on linux.

    you might have to install the compiler.

    it's c++.

    if the compiler supports std::thread, you might be better off using that instead of pthreads.

    that would be a recoding effort.

Still have questions? Get your answers by asking now.