Hi, I'm reading "Programming Principles and Practice Using C++" by B.Stroustrup and I'm at chapter 23 and trying to answer all the review questions. I'm kind of a little stuck on this 1 question so here it is
12. What is the difference between an empty field and a nonexistent field? Give Two examples.
So far I understand (if correctly) from previous chapters that field is kind of a formatting and space what your output takes in lets say console (because I'm only writing some console applications as exercises now). But nothing is mentioned about empty and nonexistent fields.
Here is the quote from the book
Using scientific and fixed formats, a programmer can control exactly how much space a value takes up on output. That's clearly useful for printing tables, etc. The equivalent mechanism for integer values is called fields. You can specify exactly how many character positions an integer value or string value will occupy using the "set field width" manipulator setw(). . .
So can anyone help me with these "empty fields and nonexistent fields"? What exactly are they?
EDIT : the chapter I'm reading is called "Text manipulation" and Bjarne is introducing regular expressions here to read the table (4 columns and lot of rows) to see if all the info in the table is matching the pattern
I am one chapter behind you. But actually, I skipped Chapters 12 to 16 because I could not get the graphics to run. Were you able to get the graphics to run? If you did, please look at my post Window Graphics Errors dated May 31, 2015.
I am one chapter behind you. But actually, I skipped Chapters 12 to 16 because I could not get the graphics to run. Were you able to get the graphics to run? If you did, please look at my post Windows Graphics Errors dated May 31, 2015.