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 1930

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 1930

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 1930

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 1930

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 1930

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 1930

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 1930

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 1930
{"id":26481,"date":"2015-11-21T12:51:00","date_gmt":"2015-11-21T18:51:00","guid":{"rendered":"http:\/\/kenscourses.com\/tc101fall2015\/?guid=4a985f0d30282687ee4d7856eef85cce"},"modified":"2015-11-21T12:52:22","modified_gmt":"2015-11-21T18:52:22","slug":"mastery-25-tc1017","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/mastery-25-tc1017\/","title":{"rendered":"Mastery #25 TC1017"},"content":{"rendered":"
Caracter de tipo “String”<\/span><\/span><\/div>\n


<\/span>La forma m\u00e1s com\u00fan y f\u00e1cil de acceder a un caracter en una determinada posici\u00f3n que queramos es mediante el uso de [] (<\/span>corchetes<\/em>) c\u00f3mo se hace con los <\/span>arrays<\/strong>, de esta forma si tenemos un tipo <\/span>string<\/strong><\/em> de nombre str al cual le asignamos la palabra \u201cprograma\u201d y queremos que se nos retorne la letra que est\u00e1 en la posici\u00f3n 3 (contando desde cero, como siempre) entonces el c\u00f3digo ser\u00eda el siguiente.<\/span>
#include <iostream><\/span><\/span>
#include <string><\/span><\/span>
 <\/span><\/span>using namespace std;<\/span>
 i<\/span><\/span>nt main()<\/span>{<\/span>
\/\/definimos la cadena str<\/span><\/span>
string str;<\/span><\/span>
 <\/span><\/span>\/\/le asignamos el contenido & quot programa&  quot;<\/span>
str = “programa”;<\/span><\/span>
 <\/span><\/span>\/\/mostramos en consola cual es el caracter<\/span>
\/\/en la posici\u00f3n 3 (contando desde 0)<\/span><\/span>
cout<<str[3]<<endl<<endl;<\/span><\/span>
 <\/span><\/span>return 0;<\/span>
}<\/span><\/p>\n

Un ejemplo sencillo:<\/div>\n
#include<\/a> <\/span>string<\/span>><\/span> 
#include<\/a> <\/span>iostream<\/span>><\/span>
using namespace std<\/span>;<\/span><\/span> <\/span>
main<\/span><\/span>(<\/span><\/span>)<\/span><\/span> <\/span>{<\/span><\/span>
string mensaje<\/span>;<\/span><\/span>
mensaje <\/span>=<\/span> \"Hola\"<\/span>;<\/span><\/span>
cout <\/span> mensaje<\/span>;<\/span><\/span> <\/span>}<\/span><\/span> <\/span><\/span><\/span><\/span><\/pre>\n
 Para ver todos los tipos de strings : https:\/\/blogdelingeniero1.wordpress.com\/2014\/07\/23\/el-tipo-string-y-sus-metodos-mas-importantes-en-c\/<\/div>\n","protected":false},"excerpt":{"rendered":"
Caracter de tipo “String”<\/span><\/span><\/div>\n


<\/span>La forma más común y fácil de acceder a un caracter en una determinada posición que queramos es mediante el uso de [] (<\/span>corchetes<\/em>) cómo se hace con los <\/span>arrays<\/strong>, de esta forma si tenemos un tipo <\/span>string<\/strong><\/em> de nombre str al cual le asignamos la palabra “programa” y queremos que se nos retorne la letra que está en la posición 3 (contando desde cero, como siempre) entonces el código sería el siguiente.<\/span>
#include <iostream><\/span><\/span>
#include <string><\/span><\/span>
 <\/span><\/span>using namespace std;<\/span>
 i<\/span><\/span>nt main()<\/span>{<\/span>
\/\/definimos la cadena str<\/span><\/span>
string str;<\/span><\/span>
 <\/span><\/span>\/\/le asignamos el contenido & quot programa&  quot;<\/span>
str = “programa”;<\/span><\/span>
 <\/span><\/span>\/\/mostramos en consola cual es el caracter<\/span>
\/\/en la posición 3 (contando desde 0)<\/span><\/span>
cout<<str[3]<<endl<<endl;<\/span><\/span>
 <\/span><\/span>return 0;<\/span>
}<\/span><\/p>\n

Un ejemplo sencillo:<\/div>\n
#include<\/a> <\/span>string<\/span>><\/span> 
#include<\/a> <\/span>iostream<\/span>><\/span>
using namespace std<\/span>;<\/span><\/span> <\/span>
main<\/span><\/span>(<\/span><\/span>)<\/span><\/span> <\/span>{<\/span><\/span>
string mensaje<\/span>;<\/span><\/span>
mensaje <\/span>=<\/span> \"Hola\"<\/span>;<\/span><\/span>
cout <\/span> mensaje<\/span>;<\/span><\/span> <\/span>}<\/span><\/span> <\/span><\/span><\/span><\/span><\/pre>\n
 Para ver todos los tipos de strings : https:\/\/blogdelingeniero1.wordpress.com\/2014\/07\/23\/el-tipo-string-y-sus-metodos-mas-importantes-en-c\/<\/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],"class_list":["post-26481","post","type-post","status-publish","format-standard","hentry","category-blogs","category-syndicated","tag-include"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/26481","targetHints":{"allow":["GET"]}}],"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=26481"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/26481\/revisions"}],"predecessor-version":[{"id":26482,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/26481\/revisions\/26482"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=26481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=26481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=26481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}