O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. More Variables: Strings and User-Defined Types

We are now heading into the fascinating subject of strings, which store characters, words, sentences, and any other types of information of which you need to keep track. You can use strings to hold all other data types, which is useful when you need to make sure a user entered the correct type of information (for example, a dollar amount). In this chapter, you will learn how to create, manipulate, and display strings. Computer scientists decided to use the word “string” to represent a series of characters in the computer’s memory, used for displaying textual information. In the old days, a printer printed everything out, but today most output is sent to the high-resolution monitor sitting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required