Jan 25, 2026 09:10 PM
A little over 3 years ago I was ^ and I came up with a genius idea for an app. Something consistent with the profound mind-altering effects. As has always been my experience.
I'm currently honing my intellect towards C++ programming in an effort to develop this app within the next year.
So far I'm on chapter one of C++ Primer. It's a highly complex language as you will see shortly.
Basically, each program starts by including a header or more. Headers from the standard library are enclosed in angle brackets. Headers that are not part of the library are enclosed in double quotation marks. The name of the header is derived from the name of the class, if you're using a class. A class defines a type. The name of the type is the same as the name of the class.
Next, inside the main function - where the operating system runs a program by calling main - it defines the variables or objects and initializes them to a certain value. Next it reads the data from the standard input into the object. Finally, it uses the output expression to print a sum or value (usually a numeric value or string) to the standard output.
Whenever we use an if, while or for statement as a condition, the effect is to test the state of the stream. If the read succeeds, then the condition is true and we execute the block immediately following the condition. If the statement is false, then we fall out of the block and execute the else branch.
A conventional sum - the result of two numeric values - may be added by the output statement. However, if one is using a class, such as sales_item, only the components are added, to generate a sum. Note the similarities of the two statments.
I'm currently honing my intellect towards C++ programming in an effort to develop this app within the next year.
So far I'm on chapter one of C++ Primer. It's a highly complex language as you will see shortly.
Basically, each program starts by including a header or more. Headers from the standard library are enclosed in angle brackets. Headers that are not part of the library are enclosed in double quotation marks. The name of the header is derived from the name of the class, if you're using a class. A class defines a type. The name of the type is the same as the name of the class.
Next, inside the main function - where the operating system runs a program by calling main - it defines the variables or objects and initializes them to a certain value. Next it reads the data from the standard input into the object. Finally, it uses the output expression to print a sum or value (usually a numeric value or string) to the standard output.
Whenever we use an if, while or for statement as a condition, the effect is to test the state of the stream. If the read succeeds, then the condition is true and we execute the block immediately following the condition. If the statement is false, then we fall out of the block and execute the else branch.
A conventional sum - the result of two numeric values - may be added by the output statement. However, if one is using a class, such as sales_item, only the components are added, to generate a sum. Note the similarities of the two statments.
