Create a random news-feed using C++
Created by Phil Gardner
last edited Feb 12 2021 by Phil Gardner
Written in C++ and will compile and run on a Raspberry Pi, Mac or Linux machine.
Use as an example of a different programming language and what a compiler does.
Alternatively, you can copy and paste the code into repl.it as a new repl for C++ and then run.
To get a C++ compiler, try this…
Copy and paste into a text editor, then save as news.cpp (or something similar).
To compile from the command-line:
g++ -o newsfeed news.cpp
Once compiled, here’s how you can run the newly created executable:
./newsfeed
Feedback and Comments
Available when logged in (join via the front page, for free):