Make program into executable file

How do I make the compiler compile my program into an .exe file?

My intention is:

I am making a program for clubs, venues, festivals, that promote tickets on facebook by utilizing this marketing technique:
"Tag 2 friends in the comments for a chance to win 2 tickets!"

So my program is very primitive right now, instead of parsing through facebook, I just have a demo list of names on a .txt file.

My program will just add all the names on the file, create a random number and output the winner.

How do I turn this source code into an actual .exe file so people can use it?



ADVANCED QUESTION:

Does C++ have any gui functions like swift for java? I want my program to look presentable and user friendly for club promoters etc.

EVEN MORE ADVANCED BRO:

Is there any way I can use the facebook API to parse through comments on a post? or would I have to use a scripting language to do so?
Last edited on
How do I make the compiler compile my program into an .exe file?
So my program is very primitive right now, instead of parsing through facebook, I just have a demo list of names on a .txt file.

Hi there!
If you're asking about how to make a simple Win32 application with file input/output, I'd suggest you download and install Code::Blocks http://www.codeblocks.org/downloads/26
and review the C++ file stream http://www.cplusplus.com/reference/fstream/fstream/
Standard C++ does not have any GUI functions. You can use the Win32 API but it is not portabe. Some options are SDL2, SFML, Qt, etc. They are all portable API's. And converting source code to an executable file is also known as compiling for Windows. To access data on the internet you have to use an external library, use the provided one on Windows, or use sockets.
Last edited on
Topic archived. No new replies allowed.