C++ Primer Plus (6th ed.) CH 7: Functions
I. Function review 1) defining a function – the return value cannot be an array directly, but can be an array that’s part of a structure or object 2) prototyping […]
I. Function review 1) defining a function – the return value cannot be an array directly, but can be an array that’s part of a structure or object 2) prototyping […]
I. The if statement – as with loop test conditions, an if test condition is type cast to a bool value 1) The if else if else construction – many […]
I. Introducing for loops 1) Expressions and statements, nonexpressions and statements – C++ defines the value of an assignment expression to be the value of the member on the left […]
I Introducing arrays – shortcut to assign values to arrays, e.g., int yam[3] = {1, 2, 3}; // not allowed after defining the array – if an array is partially […]
I Simple variables 1) Names for variables – Allowed characters are alphabetic characters, numeric digits and the underscore character – 1st character cannot be a numeric digit – Names beginning […]
Create a session: vncserver -geometry 1680×1050 :1 Kill a session: vncserver -kill :1 See existent sessions: ps -efl | grep vnc
I C++ initialization 1) Features of the main() function – int main() is the same as using void in the parentheses, unlike C – avoid void main() because it’s not […]
I The origins of C++: a little history 1) The C++ shift: object-oriented programming – OOP emphasizes data instead of algorithms, and attempts to fit a language to a problem […]
Welcome to WordPress and have a nice day.