Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":13950,"date":"2015-05-06T14:19:09","date_gmt":"2015-05-06T19:19:09","guid":{"rendered":"https:\/\/mauriciocoopera.withknown.com\/2015\/mastery-27"},"modified":"2015-05-06T14:19:09","modified_gmt":"2015-05-06T19:19:09","slug":"mastery-27-8","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery-27-8\/","title":{"rendered":"Mastery 27"},"content":{"rendered":"
\n

Validated user input in C++<\/span><\/p>\n

For this mastery, I found \u00a0a super useful video that taught me how to make a validation for a user input<\/span><\/p>\n

Here is also an example code with a validation user input code:<\/span><\/p>\n

\u00a0<\/p>\n

#include<\/a> <\/iostream><\/dfn>\n#include<\/a> <\/limits><\/dfn>\n\nint<\/var> main(){\n    bool<\/var> valid = false<\/var>;\n    int<\/var> input;\n    while<\/var>(!valid){\n        if<\/var>(std::cin>>input){\/\/this checks whether an integer was entered<\/cite>\n            if<\/var>(input  0) valid = true<\/var>;\/\/then we have to see if this integer is in range<\/cite>\n        }else<\/var> std::cin.clear();\/\/some cleaning up<\/cite>\n\t\t\n        std::cin.ignore(std::numeric_limits<:streamsize>::max(), 'n'<\/kbd>);\/\/empty input stream<\/cite>\n\n        if<\/var>(!valid) std::cout \"this input is not validn\";\n    }\n    std::cout \" is between 1 and 5n\";\n    std::cin.get();\n    return<\/var> 0;\n}<\/:streamsize><\/code><\/pre>\n

\u00a0<\/p>\n

Credits:<\/span><\/p>\n

<\/a>https:\/<\/wbr>\/<\/wbr>www.youtube.com\/<\/wbr>watch?v=YIX7UhIKEIk<\/a><\/span><\/span><\/p>\n

#TC<\/a>1017 #Mastery<\/a>27<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

\n

Validated user input in C++<\/span><\/p>\n

For this mastery, I found  a super useful video that taught me how to make a validation for a user input<\/span><\/p>\n

Here is also an example code with a validation user input code:<\/span><\/p>\n

 <\/p>\n

#include<\/a> <\/dfn>\n#include<\/a> <\/dfn>\n\nint<\/var> main(){\n    bool<\/var> valid = false<\/var>;\n    int<\/var> input;\n    while<\/var>(!valid){\n        if<\/var>(std::cin>>input){\/\/this checks whether an integer was entered<\/cite>\n            if<\/var>(input  0) valid = true<\/var>;\/\/then we have to see if this integer is in range<\/cite>\n        }else<\/var> std::cin.clear();\/\/some cleaning up<\/cite>\n\t\t\n        std::cin.ignore(std::numeric_limits::max(), 'n'<\/kbd>);\/\/empty input stream<\/cite>\n\n        if<\/var>(!valid) std::cout \"this input is not validn\";\n    }\n    std::cout \" is between 1 and 5n\";\n    std::cin.get();\n    return<\/var> 0;\n}<\/code><\/pre>\n

 <\/p>\n

Credits:<\/span><\/p>\n

<\/a>https:\/\/www.youtube.com\/watch?v=YIX7UhIKEIk<\/a><\/span><\/span><\/p>\n

#TC<\/a>1017 #Mastery<\/a>27<\/span><\/p>\n<\/div>\n

Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[330,329,144,398,328,95,486,40,287,366],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/13950"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=13950"}],"version-history":[{"count":6,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/13950\/revisions"}],"predecessor-version":[{"id":19152,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/13950\/revisions\/19152"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=13950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=13950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=13950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}