Saturday, April 7, 2012

Catching 9 review and the tech world (google glasses)

Review
In our class Thursday, we discussed and went through more of the second half of chapter 9.  This chapter was about Value-Returning functions.  The definition for it is whether it is built in or program-defined, these functions perform a task and return precisely one value after the task is completed.  We learned that in order to do a function call, if it's not main, it must be called by a statement within the program.  A function prototype is a statement that specifies the function's name, the data type of its return value, and the data type of its formal parameters.  Function prototype always comes before the main function.  It alerts the C++ compiler that the function will be used later on in the program.  Each variable has a scope and a lifetime, which indicates where in the program the variable will be used and how long the variable remains in the computer.  Local variables can be used in the function they are declared in while global variables are declared outside of any function in the variable.  During the design phrase, you decide whether we need parameters or function names.  Last but not least, void functions do not return a value.

Technology (Google Glasses)
I just read a article entitled "Do we really need digitally enhanced Google Glasses?  I saw part f the Google Glasses n the news yesterday and it looks absolutely amazing.  Pretty much, the Google Glasses once on makes it so you can receive information, messages, where all the traffic is, and so much more.  I think it will work out because it's something new and never done before.  There is endless possibilities for it but one must be careful cause despite it looking up the temperature or sending messages, the wrong information could be received or given out.  You can read more about Google Glasses at http://whatsnext.blogs.cnn.com/2012/04/05/do-we-really-need-digitally-enhanced-google-glasses/