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":27522,"date":"2015-11-24T23:09:00","date_gmt":"2015-11-25T05:09:00","guid":{"rendered":"http:\/\/kenscourses.com\/tc101fall2015\/?guid=84598742083e4817ec47b39b411aff54"},"modified":"2015-11-24T23:09:26","modified_gmt":"2015-11-25T05:09:26","slug":"mastery-28-tc1017","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/mastery-28-tc1017\/","title":{"rendered":"Mastery # 28 TC1017"},"content":{"rendered":"
Escribir en documentos C++<\/span><\/div>\n

<\/span><\/div>\n
Para escribir en un documento primeramente necesitamos la realizaci\u00f3n de un archivo de texto, en el cual la base para hacerlo es la siguiente<\/div>\n
\/\/ writing on a text file<\/code><\/div>\n
\/\/Reference: http:\/<\/wbr>\/<\/wbr>www.cplusplus.com\/<\/wbr>doc\/<\/wbr>tutorial\/<\/wbr>files\/<\/wbr><\/a><\/code><\/div>\n
 <\/div>\n
#include<\/a> <\/iostream><\/code><\/div>\n
#include<\/a> <\/fstream><\/code><\/div>\n
using<\/code>namespace<\/code> std;<\/code><\/div>\n
 <\/div>\n
int<\/code>main () {<\/code><\/div>\n
  <\/code>ofstream myfile (<\/code>\"Write.txt\"<\/code>);<\/code><\/div>\n
  <\/code>if<\/code>(myfile.is_open())  {<\/code><\/div>\n
    <\/code>myfile \"This is a line.\\n\"<\/code>;<\/code><\/code><\/div>\n
    <\/code>myfile \"Hello world.\\n\"<\/code>;<\/code><\/code><\/div>\n
    <\/code>myfile.close();<\/code><\/div>\n
  <\/code>}<\/code><\/div>\n
  <\/code>else<\/code>{<\/code><\/div>\n
    <\/code>cout \"Unable to open file\"<\/code>;<\/code><\/code><\/div>\n
  <\/code>}<\/code><\/div>\n
  <\/code>return<\/code>0;<\/code><\/div>\n
}<\/code><\/div>\n
 <\/div>\n
en lo cual ahi tenemos el documento en el cual ingresaremos los datos usamos la libreria fstream, se abre el archivo y se ingresa lo que se quiere escribir en el documento<\/div>\n
 <\/div>\n
 <\/div>\n
en cambio para la lectura de los documentos contamos con un procedimiento parecido, que es el siguiente:<\/div>\n
\n
\/\/ reading a text file<\/code><\/div>\n
\/\/Reference: http:\/<\/wbr>\/<\/wbr>www.cplusplus.com\/<\/wbr>doc\/<\/wbr>tutorial\/<\/wbr>files\/<\/wbr><\/a><\/code><\/div>\n
#include<\/a> <\/iostream><\/code><\/div>\n
#include<\/a> <\/fstream><\/code><\/div>\n
#include<\/a> <\/string><\/code><\/div>\n
using<\/code>namespace<\/code> std;<\/code><\/div>\n
 <\/div>\n
int<\/code>main () {<\/code><\/div>\n
  <\/code>string line;<\/code><\/div>\n
  <\/code>ifstream myfile (<\/code>\"CNC.txt\"<\/code>);<\/code><\/div>\n
  <\/code>if<\/code>(myfile.is_open()){<\/code><\/div>\n
    <\/code>while<\/code>( getline (myfile,line) ){<\/code><\/div>\n
      <\/code>cout '\\n'<\/code>;<\/code><\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
    <\/code>myfile.close();<\/code><\/div>\n
  <\/code>}<\/code><\/div>\n
  <\/code>else<\/code>{<\/code><\/div>\n
    <\/code>cout \"Unable to open file\"<\/code>;<\/code><\/code><\/div>\n
  <\/code>}<\/code><\/div>\n
 <\/div>\n
  <\/code>return<\/code>0;<\/code><\/div>\n
}<\/code><\/div>\n
 <\/div>\n
en este, tenemos que abre el archivo y este es leido linea por linea y convertida en strings, para esto t<\/code><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
Escribir en documentos C++<\/span><\/div>\n

<\/span><\/div>\n
Para escribir en un documento primeramente necesitamos la realización de un archivo de texto, en el cual la base para hacerlo es la siguiente<\/div>\n
\/\/ writing on a text file<\/code><\/div>\n
\/\/Reference: http:\/\/www.cplusplus.com\/doc\/tutorial\/files\/<\/a><\/code><\/div>\n
 <\/div>\n
#include<\/a> <\/code><\/div>\n
#include<\/a> <\/code><\/div>\n
using<\/code>namespace<\/code> std;<\/code><\/div>\n
 <\/div>\n
int<\/code>main () {<\/code><\/div>\n
  <\/code>ofstream myfile (<\/code>\"Write.txt\"<\/code>);<\/code><\/div>\n
  <\/code>if<\/code>(myfile.is_open())  {<\/code><\/div>\n
    <\/code>myfile \"This is a line.\\n\"<\/code>;<\/code><\/code><\/div>\n
    <\/code>myfile \"Hello world.\\n\"<\/code>;<\/code><\/code><\/div>\n
    <\/code>myfile.close();<\/code><\/div>\n
  <\/code>}<\/code><\/div>\n
  <\/code>else<\/code>{<\/code><\/div>\n
    <\/code>cout \"Unable to open file\"<\/code>;<\/code><\/code><\/div>\n
  <\/code>}<\/code><\/div>\n
  <\/code>return<\/code>0;<\/code><\/div>\n
}<\/code><\/div>\n
 <\/div>\n
en lo cual ahi tenemos el documento en el cual ingresaremos los datos usamos la libreria fstream, se abre el archivo y se ingresa lo que se quiere escribir en el documento<\/div>\n
 <\/div>\n
 <\/div>\n
en cambio para la lectura de los documentos contamos con un procedimiento parecido, que es el siguiente:<\/div>\n
\n
\/\/ reading a text file<\/code><\/div>\n
\/\/Reference: http:\/\/www.cplusplus.com\/doc\/tutorial\/files\/<\/a><\/code><\/div>\n
#include<\/a> <\/code><\/div>\n
#include<\/a> <\/code><\/div>\n
#include<\/a> <\/code><\/div>\n
using<\/code>namespace<\/code> std;<\/code><\/div>\n
 <\/div>\n
int<\/code>main () {<\/code><\/div>\n
  <\/code>string line;<\/code><\/div>\n
  <\/code>ifstream myfile (<\/code>\"CNC.txt\"<\/code>);<\/code><\/div>\n
  <\/code>if<\/code>(myfile.is_open()){<\/code><\/div>\n
    <\/code>while<\/code>( getline (myfile,line) ){<\/code><\/div>\n
      <\/code>cout '\\n'<\/code>;<\/code><\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
    <\/code>myfile.close();<\/code><\/div>\n
  <\/code>}<\/code><\/div>\n
  <\/code>else<\/code>{<\/code><\/div>\n
    <\/code>cout \"Unable to open file\"<\/code>;<\/code><\/code><\/div>\n
  <\/code>}<\/code><\/div>\n
 <\/div>\n
  <\/code>return<\/code>0;<\/code><\/div>\n
}<\/code><\/div>\n
 <\/div>\n
en este, tenemos que abre el archivo y este es leido linea por linea y convertida en strings, para esto t<\/code><\/div>\n<\/div>\n","protected":false},"author":224,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[95],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27522"}],"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\/224"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=27522"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27522\/revisions"}],"predecessor-version":[{"id":27526,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27522\/revisions\/27526"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=27522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=27522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=27522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}