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":4839,"date":"2015-02-16T09:27:47","date_gmt":"2015-02-16T15:27:47","guid":{"rendered":"http:\/\/pabloguerra.withknown.com\/2015\/wsq08-tc1017"},"modified":"2015-02-16T09:27:47","modified_gmt":"2015-02-16T15:27:47","slug":"wsq08-tc1017","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/wsq08-tc1017\/","title":{"rendered":"#WSQ08 #TC1017"},"content":{"rendered":"
\n

#WSQ08<\/a> #TC1017<\/a><\/p>\n

Se usan funciones para tener estructurado y limpio el programa. Se definen las funciones como int y se regresan para obtener ese valor y luego se imprime para mostrarlo. Las funciones son importantes ya que completan al main y hacen que el programa este compuesto de pequeñas funciones. <\/p>\n

\"\"<\/p>\n

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

using namespace std;<\/p>\n

 <\/p>\n

int suma_numeros (int number1,int number2)<\/p>\n

{ int suma;<\/p>\n

 <\/p>\n

  suma= number1 + number2;<\/p>\n

  cout << “The sum of the numbers is: “<< suma << endl;<\/p>\n

  return suma;<\/p>\n

}<\/p>\n

 <\/p>\n

int diferencia_numeros (int number1,int number2)<\/p>\n

{ int diferencia;<\/p>\n

 <\/p>\n

  diferencia= number1 – number2;<\/p>\n

  cout << “The difference of the numbers is: “<< diferencia << endl;<\/p>\n

  return diferencia;<\/p>\n

}<\/p>\n

int division_numeros (int number1,int number2)<\/p>\n

{ int division;<\/p>\n

 <\/p>\n

  division= number1 \/ number2;<\/p>\n

  cout<< “The result of the division is: “<< division << endl;<\/p>\n

  return division;<\/p>\n

}<\/p>\n

int producto_numeros (int number1,int number2)<\/p>\n

{ int producto;<\/p>\n

 <\/p>\n

  producto= number1 % number2;<\/p>\n

  cout << “The remainder of the division is: “<< producto << endl;<\/p>\n

  return producto;<\/p>\n

}<\/p>\n

 <\/p>\n

 <\/p>\n

int main ()<\/p>\n

{<\/p>\n

 <\/p>\n

  int number1, number2;<\/p>\n

  cout << “Give me two numbers: ” << endl;<\/p>\n

 <\/p>\n

  cout << “First number: “<< endl;<\/p>\n

  cin >> number1;<\/p>\n

  cout << “Second number: “<< endl;<\/p>\n

  cin >> number2;<\/p>\n

 <\/p>\n

  suma_numeros(number1, number2);<\/p>\n

  diferencia_numeros(number1, number2);<\/p>\n

  division_numeros (number1, number2);<\/p>\n

  producto_numeros (number1, number2);<\/p>\n

  return 0;<\/p>\n

}<\/p>\n

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

#WSQ08 #TC1017Se usan funciones para tener estructurado y limpio el programa. Se definen las funciones como int y se regresan para obtener ese valor y luego se imprime para mostrarlo. Las funciones son importantes ya que completan al main y ha… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":61,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[95,40,233],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/4839"}],"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\/61"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=4839"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/4839\/revisions"}],"predecessor-version":[{"id":7655,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/4839\/revisions\/7655"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=4839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=4839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=4839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}