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/feed-rss2.php on line 8
‘#222222’ Articles at Courses by Ken https://kenscourses.com/tc101winter2015 Facilitator of Learning Experiences Thu, 07 May 2015 05:36:59 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ #TC1017 #Mastery26 https://kenscourses.com/tc101winter2015/2015/tc1017-mastery26-2/ Thu, 07 May 2015 05:36:59 +0000 https://a01224845.withknown.com/2015/tc1017-mastery26

MATRICES

Este es una pequeña explicacion de matrices, sincermamente opte por tomar la mayoria de una pagina porque me costo entender como funcinaban y no queria revolverlos mas de lo que ya estamos. Espero que les sirva como a mi me funciono.

Una matriz es un vector de vectores o un también llamado array bidimensional. La manera de declarar una matriz es C++ es similar a un vector:

1
int matrix[rows][cols];

int es el tipo de dato, matrix es el nombre del todo el conjunto de datos y debo de especificar el numero de filas y columnas.

Las matrices también pueden ser de distintos tipos de datos como char, float, double, etc. Las matrices en C++ se almacenan al igual que los vectores en posiciones consecutivas de memoria.

Usualmente uno se hace la idea que una matriz es como un tablero, pero internamente el manejo es como su definición lo indica, un vector de vectores, es decir, los vectores están uno detrás del otro juntos.

La forma de acceder a los elementos de la matriz es utilizando su nombre e indicando los 2 subíndices que van en los corchetes.

Si coloco int matriz[2][3] = 10; estoy asignando al cuarto elemento de la tercera fila el valor 10.

No olvidar que tanto filas como columnas se enumeran a partir de 0. Bueno y para recorrer una matriz podemos usar igualmente un bucle. En este caso usando 2 for:

1
2
3
4
5
for(int i = 0; i
  for(int j = 0; j
    matrix[i][j] = i % j;
  }
}

 

Continue reading ]]>

MATRICES

Este es una pequeña explicacion de matrices, sincermamente opte por tomar la mayoria de una pagina porque me costo entender como funcinaban y no queria revolverlos mas de lo que ya estamos. Espero que les sirva como a mi me funciono.

Una matriz es un vector de vectores o un también llamado array bidimensional. La manera de declarar una matriz es C++ es similar a un vector:

1
int matrix[rows][cols];

int es el tipo de dato, matrix es el nombre del todo el conjunto de datos y debo de especificar el numero de filas y columnas.

Las matrices también pueden ser de distintos tipos de datos como char, float, double, etc. Las matrices en C++ se almacenan al igual que los vectores en posiciones consecutivas de memoria.

Usualmente uno se hace la idea que una matriz es como un tablero, pero internamente el manejo es como su definición lo indica, un vector de vectores, es decir, los vectores están uno detrás del otro juntos.

La forma de acceder a los elementos de la matriz es utilizando su nombre e indicando los 2 subíndices que van en los corchetes.

Si coloco int matriz[2][3] = 10; estoy asignando al cuarto elemento de la tercera fila el valor 10.

No olvidar que tanto filas como columnas se enumeran a partir de 0. Bueno y para recorrer una matriz podemos usar igualmente un bucle. En este caso usando 2 for:

1
2
3
4
5
for(int i = 0; i
  for(int j = 0; j
    matrix[i][j] = i % j;
  }
}

 

]]>
https://creativecommons.org/licenses/by/4.0/
#TC1014 #Mastery19 #Mastery20 https://kenscourses.com/tc101winter2015/2015/tc1014-mastery19-mastery20/ Thu, 07 May 2015 04:51:34 +0000 https://programminglearning.withknown.com/2015/mastery19-mastery20

https://youtu.be/PE5miyfrd9w

1014 19 20

Continue reading ]]>

https://youtu.be/PE5miyfrd9w

1014 19 20

]]>
https://creativecommons.org/licenses/by/4.0/
#TC1014 #Mastery17 #Mastery18 https://kenscourses.com/tc101winter2015/2015/tc1014-mastery17-mastery18/ Thu, 07 May 2015 04:49:49 +0000 https://programminglearning.withknown.com/2015/mastery17-mastery18-1

https://youtu.be/7OY-MeComL0

1014 17 18

Continue reading ]]>

https://youtu.be/7OY-MeComL0

1014 17 18

]]>
https://creativecommons.org/licenses/by/4.0/
#TC1014 #Mastery15 #Mastery16 https://kenscourses.com/tc101winter2015/2015/tc1014-mastery15-mastery16/ Thu, 07 May 2015 04:19:53 +0000 https://programminglearning.withknown.com/2015/mastery17-mastery18

http://youtu.be/WR7Uwq4cLZk

1014 15 16

Continue reading ]]>

http://youtu.be/WR7Uwq4cLZk

1014 15 16

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery14 https://kenscourses.com/tc101winter2015/2015/mastery14-9/ Thu, 07 May 2015 04:19:25 +0000 https://jerles.withknown.com/2015/mastery14 Continue reading ]]>

Creating and using a Python module

A module is a file containing Python definitions and statements. The file name is the module name with the suffix “.py”

Example:

  • Create “hello.py” then write the following function:
def helloworld():
   print "hello"

import hello
hello.helloworld()
>>>'hello'

AWESOME PAGE

14 1014

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery28:: Reading and writing of files in C++ https://kenscourses.com/tc101winter2015/2015/mastery28-reading-and-writing-of-files-in-c/ Thu, 07 May 2015 04:13:15 +0000 https://carolinarmtz.withknown.com/2015/mastery28-reading-and-writing-of-files-in-c

28 

To open o create a file in C++, first you must be sure to add the proper library which is , as you can see, in my example the first command in main is "ofstream file", that's to create a file inside your program. Later I name it as Hello.txt, and in there you can put in whatever you want, I just typed in a line that said "Hello dudes", and that text file will remain with that line unless I erase it. After that you just close your file.

1017

Continue reading ]]>

28 

To open o create a file in C++, first you must be sure to add the proper library which is , as you can see, in my example the first command in main is “ofstream file”, that’s to create a file inside your program. Later I name it as Hello.txt, and in there you can put in whatever you want, I just typed in a line that said “Hello dudes”, and that text file will remain with that line unless I erase it. After that you just close your file.

1017

]]>
https://creativecommons.org/licenses/by/4.0/
#TC1014 #Mastery11 #Mastery12 https://kenscourses.com/tc101winter2015/2015/tc1014-mastery11-mastery12/ Thu, 07 May 2015 04:06:36 +0000 https://programminglearning.withknown.com/2015/mastery11-mastery12

https://youtu.be/otRkDc65wsA

1014 11 12

Continue reading ]]>

https://youtu.be/otRkDc65wsA

1014 11 12

]]>
https://creativecommons.org/licenses/by/4.0/
#TC1014 #Mastery7 #Mastery29 https://kenscourses.com/tc101winter2015/2015/tc1014-mastery7-mastery29/ Thu, 07 May 2015 04:00:00 +0000 https://programminglearning.withknown.com/2015/mastery7-mastery29

https://youtu.be/80pSDvadkRg

1014 7 29

Continue reading ]]>

https://youtu.be/80pSDvadkRg

1014 7 29

]]>
https://creativecommons.org/licenses/by/4.0/
#TC1014#Mastery5 #Mastery6 https://kenscourses.com/tc101winter2015/2015/tc1014mastery5-mastery6/ Thu, 07 May 2015 03:50:25 +0000 https://programminglearning.withknown.com/2015/mastery5-mastery6

https://youtu.be/65H-VSyPdJk

1014 6

Continue reading ]]>

https://youtu.be/65H-VSyPdJk

1014 6

]]>
https://creativecommons.org/licenses/by/4.0/
#TC1014 #Mastery10 #Mastery28 https://kenscourses.com/tc101winter2015/2015/tc1014-mastery10-mastery28/ Thu, 07 May 2015 03:48:05 +0000 https://programminglearning.withknown.com/2015/mastery1-mastery2-1

https://youtu.be/1ajPd1zMaA4

1014 10 28

Continue reading ]]>

https://youtu.be/1ajPd1zMaA4

1014 10 28

]]>
https://creativecommons.org/licenses/by/4.0/