Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":25178,"date":"2015-10-28T19:46:50","date_gmt":"2015-10-29T01:46:50","guid":{"rendered":"http:\/\/octavioirg.wordpress.com\/?p=130"},"modified":"2015-10-28T19:46:50","modified_gmt":"2015-10-29T01:46:50","slug":"mastery23-2","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/mastery23-2\/","title":{"rendered":"Mastery23"},"content":{"rendered":"

Vectors and stuff.<\/p>\n

\"CC<\/a>
CC licensed photo by PapaPiper on Flicker<\/figcaption><\/figure>\n

Here is the usual definition of vectors, provided by our friends of Cplusplus.com:<\/p>\n

“Vectors are sequence containers representing arrays that can change in size.<\/em><\/p>\n

Just like arrays, vectors use contiguous storage locations for their elements, which means that their elements can also be accessed using offsets on regular pointers to its elements, and just as efficiently as in arrays. But unlike arrays, their size can change dynamically, with their storage being handled automatically by the container.”<\/em><\/p>\n

It continues:<\/p>\n

“Internally, vectors use a dynamically allocated array to store their elements. This array may need to be reallocated in order to grow in size when new elements are inserted, which implies allocating a new array and moving all elements to it. This is a relatively expensive task in terms of processing time, and thus, vectors do not reallocate each time an element is added to the container.”<\/em><\/p>\n

And believe me, it is much more longer…<\/p>\n

So here comes my really easy definition: A vector is a cool magic box that expands and shrinks whenever you want. BUM! that’s it. Why cool? Because yes… Why magic? Because it EXPANDS! and shrinks when you want.<\/p>\n

Let me explain: When you create a vector you can say, “hey mister vector I want you to have 5 spots for my ints!” Or, you can say “hey mister vector, just exist there until I decide how many things I will store inside you.”<\/p>\n

I\u00b4ll upload a video here explaining basic functions of vectors.<\/p>\n

I also made a cpp file explainind all the basic functions of vectors that are included in the library. That’s rigth! You have a hole new library to explore with vectors!!<\/p>\n

Here it is:<\/p>\n

https:\/\/github.com\/OctavioIRG\/TC1017\/blob\/master\/WSQ-s\/victor.cpp<\/a><\/p>\n

If you don’t want to open GitHub then here is a list with the basic functions of the vector library. Have FUN with Mr. Vector.<\/p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\/*<\/span><\/td>\n<\/tr>\n
<\/td>\n Format:<\/span><\/td>\n<\/tr>\n
<\/td>\n vector<DataType> nameOfVector ===> creates a new vector<\/span><\/td>\n<\/tr>\n
<\/td>\n myVector.push_back(value) ===> adds an element to the END of the vector (also resizes it)<\/span><\/td>\n<\/tr>\n
<\/td>\n myVector.at(index) ===> returns the value AT the especified index number<\/span><\/td>\n<\/tr>\n
<\/td>\n myVector.size() ===> returns an unsigned interger equal to the number of elements<\/span><\/td>\n<\/tr>\n
<\/td>\n myVector.begin() ===> reads vector from first element (index 0)<\/span><\/td>\n<\/tr>\n
<\/td>\n myVector.insert(myVector.begin() + interger, new value) ===> adds an element BEFORE specified index number<\/span><\/td>\n<\/tr>\n
<\/td>\n myVector.erase(myVector.begin() + interger) ===> erase an element AT the specified index<\/span><\/td>\n<\/tr>\n
<\/td>\n myVector.clear() ===> removes all values from the vector<\/span><\/td>\n<\/tr>\n
<\/td>\n myVector.empty() ===> returns a boolean value if wether vector is empty<\/span><\/td>\n<\/tr>\n
<\/td>\n*\/<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/a> \"\"<\/p>\n","protected":false},"excerpt":{"rendered":"

Vectors and stuff. Here is the usual definition of vectors, provided by our friends of Cplusplus.com: “Vectors are sequence containers representing arrays that can change in size. Just like arrays, vectors use contiguous storage locations for their elements, which means that their elements can also be accessed using offsets on regular pointers to its elements, […]\"\"<\/p>\n","protected":false},"author":231,"featured_media":25177,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[245,62],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/25178"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/231"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=25178"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/25178\/revisions"}],"predecessor-version":[{"id":27594,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/25178\/revisions\/27594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/25177"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=25178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=25178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=25178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}