© Will Briggs 2019
Will BriggsC++ for Lazy Programmershttps://doi.org/10.1007/978-1-4842-5187-4_1

1. Getting Started

Will Briggs
Lynchburg, VA, USA
Most programs in the first half of this book use the SDL and SSDL libraries,1 on the theory that watching colorful shapes move across the screen and shoot each other is more interesting than printing text. Don’t worry; when you’re done, you’ll be able to write programs both with and without this library – and if I have anything to say about it, you’ll have had fun doing it. Let’s see how it goes.

A simple program

It’s wise to start small. Fewer things can go wrong.
So we’ll start small here with a simple program that writes “Hello, world!” on the screen. We’ll take it line by line to see what’s in it. ...

Get C++ for Lazy Programmers: Quick, Easy, and Fun C++ for Beginners now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.