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":3864,"date":"2015-02-08T14:39:19","date_gmt":"2015-02-08T20:39:19","guid":{"rendered":"http:\/\/alejcbgmz.withknown.com\/2015\/wsq06-tc1017"},"modified":"2015-02-08T14:39:19","modified_gmt":"2015-02-08T20:39:19","slug":"wsq06-tc1017-2","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/wsq06-tc1017-2\/","title":{"rendered":"#WSQ06 #TC1017"},"content":{"rendered":"
\n

This topic is a little bit hard because the line of random numbers!  so I decided to use<\/p>\n

srand(time(NULL); <\/p>\n

then I choose the variable A so…<\/p>\n

A= rand()%100+1;<\/p>\n

this means that I choose the range of random numbers 1 to 100 .<\/p>\n

ADVICE:It is better to write fewer lines of code to make it much more clear and simple , if you do a lot of lines , it is more difficult to understand and interpet. So just make it Simple \ud83d\ude00 <\/p>\n

\"WSQ06<\/p>\n

#include<\/a> <iostream><\/h2>\n

#include<\/a> <cstdlib><\/h2>\n

#include<\/a> <time.h><\/h2>\n

using namespace std;<\/h2>\n

 <\/h2>\n

int main (){<\/h2>\n

int A, B, C=1 ;<\/h2>\n

 <\/h2>\n

srand(time (NULL));<\/h2>\n

A = rand () % 100 + 1;<\/h2>\n

 <\/h2>\n

do{<\/h2>\n

cout << “Try a guess”  << endl;<\/h2>\n

cin >> B;<\/h2>\n

C=C+1;<\/h2>\n

 <\/h2>\n

if (B < A){<\/h2>\n

cout << “Wrong!, it’s too low” << endl;<\/h2>\n

}<\/h2>\n

if (B>A) {<\/h2>\n

cout << “Wrong!, it’s too high” << endl;<\/h2>\n

}<\/h2>\n

 <\/h2>\n

} while ( B!=A);<\/h2>\n

  cout << “You got it!! you guess the number.” << endl;<\/h2>\n

  cout << “You try to gueess the number ” << C<< ” times”  << endl;<\/h2>\n

cin >> C;<\/h2>\n

return 0;<\/h2>\n

 <\/h2>\n

}<\/h2>\n

<\/a>#WSQ06<\/a> #TC1017<\/a><\/h2>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

This topic is a little bit hard because the line of random numbers!  so I decided to usesrand(time(NULL); then I choose the variable A so…A= rand()%100+1;this means that I choose the range of random numbers 1 to 100 .ADVICE:It is b… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":65,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[144,95,40,167],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/3864"}],"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\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=3864"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/3864\/revisions"}],"predecessor-version":[{"id":7044,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/3864\/revisions\/7044"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=3864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=3864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=3864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}