<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1515547900735842228</id><updated>2026-09-07T01:27:16.683-04:00</updated><category term="Archivos"/><category term="Arreglo de objetos"/><category term="Arreglos"/><category term="Basic"/><category term="Busqueda"/><category term="Busqueda Incremental"/><category term="C/C++"/><category term="CBIT"/><category term="Canaima"/><category term="Componente"/><category term="Configurar"/><category term="DBGrid"/><category term="DBedit"/><category term="Dinámicas"/><category term="Dobles"/><category term="Ejercicios"/><category term="Ejercicios de cadenas"/><category term="Estructuras"/><category term="Impress"/><category term="Incremental"/><category term="Lazarus"/><category term="Listas"/><category term="Macro"/><category term="MinGW"/><category term="Netbeans"/><category term="Objetos"/><category term="Openoffice"/><category term="Proyecto Padigma Programación"/><category term="Recursividad"/><category term="Registros"/><category term="Simples"/><category term="Softwa Educativo"/><category term="String"/><category term="clases"/><category term="creación de objetos"/><category term="polimofismo"/><category term="poo"/><title type='text'>Algoritmica y Programación</title><subtitle type='html'>Este espacio ha sido creado con el fin de compartir experiencias y conocimientos, así mismo ser una fuente de información para el resto de la comunidad que entra en este mundo de la algoritmica y la programación.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-3033736483383834785</id><published>2013-11-29T11:38:00.001-04:30</published><updated>2022-05-20T17:27:47.657-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Busqueda"/><category scheme="http://www.blogger.com/atom/ns#" term="Busqueda Incremental"/><category scheme="http://www.blogger.com/atom/ns#" term="Componente"/><category scheme="http://www.blogger.com/atom/ns#" term="DBedit"/><category scheme="http://www.blogger.com/atom/ns#" term="DBGrid"/><category scheme="http://www.blogger.com/atom/ns#" term="Incremental"/><category scheme="http://www.blogger.com/atom/ns#" term="Lazarus"/><title type='text'>Busqueda Incremental</title><content type='html'>Estaba algo lleno de polvo desde mi último post. Pero con el poder creativo activado.&lt;br /&gt;
Hace poco tuve la necesidad de implementar una búsqueda incremental, como soy programador en Lazarus, se me ocurrió desarrollar un componente que facilitara esta labor. Pero pienso que falta pulirlo. Deseo y espero que alguno pueda ayudarme en esta labor y mejorar el componente para que sea los mas eficiente posible. A continuación les dejo el código:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;unit&lt;/span&gt; Zambusqueda&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #888888&quot;&gt;{$mode objfpc}{$H+}&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;interface&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;uses&lt;/span&gt;
  Classes&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; SysUtils&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; LResources&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Forms&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Controls&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Graphics&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Dialogs&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; DbCtrls&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; db&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;
  DBGrids&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; StdCtrls&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;type&lt;/span&gt;
  TZambusqueda &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;class&lt;/span&gt;(TCustomControl)
  &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;private&lt;/span&gt;
    &lt;span style=&quot;color: #888888&quot;&gt;{ Private declarations }&lt;/span&gt;
    FFuenteDatos&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    FCampoDatos&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    FBusquedaDatos&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    FCampoBusqueda&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    FDBedit&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDBEdit&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDBGrid&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;GetFuenteDeDatos&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetFuenteDeDatos&lt;/span&gt;(Value&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;GetCampoDatos&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetCampoDatos&lt;/span&gt;(&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;const&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;string&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;GetFuenteDeDatos2&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetFuenteDeDatos2&lt;/span&gt;(Value&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;GetCampoDatos2&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetCampoDatos2&lt;/span&gt;(&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;const&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;string&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DBEditChange&lt;/span&gt;(Sender&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;TObject&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DBGridCellClick&lt;/span&gt;(Column&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TColumn)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DSStateChange&lt;/span&gt;(Sender&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;TObject&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;protected&lt;/span&gt;
    &lt;span style=&quot;color: #888888&quot;&gt;{ Protected declarations }&lt;/span&gt;
     &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;property&lt;/span&gt; Edit&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDBEdit &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;read&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;FDBEdit&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;write&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;FDBEdit&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
     &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;property&lt;/span&gt; DBGrid&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDBGrid &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;read&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;FDBGrid&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;write&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;FDBGrid&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;public&lt;/span&gt;
    &lt;span style=&quot;color: #888888&quot;&gt;{ Public declarations }&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;constructor&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;Create&lt;/span&gt;(AOwner&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TComponent)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;override&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;destructor&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;Destroy&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;override&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

  &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;published&lt;/span&gt;
    &lt;span style=&quot;color: #888888&quot;&gt;{ Published declarations }&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;property&lt;/span&gt; FuenteDatos&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;read&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;GetFuenteDeDatos&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;write&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetFuenteDeDatos&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #888888&quot;&gt;//property CampoDatos: String read GetCampoDatos write SetCampoDatos;&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;property&lt;/span&gt; CampoDatos&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;String&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;read&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;FCampoDatos&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;write&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetCampoDatos&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;property&lt;/span&gt; BusquedaDatos&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;read&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;GetFuenteDeDatos2&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;write&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetFuenteDeDatos2&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #888888&quot;&gt;//property CampoBusqueda: String read GetCampoDatos2 write SetCampoDatos2;&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;property&lt;/span&gt; CampoBusqueda&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;String&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;read&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;FCampoBusqueda&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;write&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetCampoDatos2&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;Register&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;implementation&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #003388; font-weight: bold&quot;&gt;Register&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
  &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;RegisterComponents&lt;/span&gt;(&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;#39;Zambrano Controls&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;[TZambusqueda])&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DSStateChange&lt;/span&gt;(Sender&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;TObject&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
   FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Visible&lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; (FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSource&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;State &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;in&lt;/span&gt; dsEditModes) &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;and&lt;/span&gt; FDBedit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Focused&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;inherited&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;constructor&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;Create&lt;/span&gt;(AOwner&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TComponent)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;inherited&lt;/span&gt; Create(AOwner)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;with&lt;/span&gt; GetControlClassDefaultSize &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;do&lt;/span&gt; SetInitialBounds(&lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;150&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

  FDBEdit &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; TDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Create(&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;Self&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Caption &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Text    &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Visible  &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;True&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBedit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;CharCase &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; ecUppercase&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Parent   &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;Self&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBedit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;SetSubComponent(&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;True&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #888888&quot;&gt;//Indica al IDE almacenar las propiedades modificadas&lt;/span&gt;
  FDBedit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;ControlStyle &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; FDBedit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;ControlStyle &lt;span style=&quot;color: #333333&quot;&gt;-&lt;/span&gt; [csNoDesignSelectable]&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Align    &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; alTop&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;OnChange &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;@&lt;/span&gt;DBEditChange&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

  FDBGrid &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; TDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Create(&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;Self&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Visible &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;False&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Parent  &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;Self&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Left &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Options    &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; [dgTabs&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;dgAlwaysShowSelection&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;dgConfirmDelete&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;dgCancelOnExit]&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;ScrollBars &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; ssAutoVertical&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Top   &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; FDBedit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Height&lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Anchors &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; [akTop&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;akLeft&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;akRight&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;akBottom]&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Align &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; alBottom&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;SetSubComponent(&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;True&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;ControlStyle &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;ControlStyle &lt;span style=&quot;color: #333333&quot;&gt;-&lt;/span&gt; [csNoDesignSelectable]&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;OnCellClick&lt;span style=&quot;color: #333333&quot;&gt;:=@&lt;/span&gt;DBGridCellClick&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;destructor&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;Destroy&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
  FDBedit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Destroy&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Destroy&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;inherited&lt;/span&gt; Destroy&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;GetFuenteDeDatos&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
  &lt;span style=&quot;color: #007020&quot;&gt;Result&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; FFuenteDatos&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetFuenteDeDatos&lt;/span&gt;(Value&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;nil&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;then&lt;/span&gt; SetCampoDatos(&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    FFuenteDatos &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    FDBedit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSource &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; FFuenteDatos&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSource&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;OnStateChange&lt;span style=&quot;color: #333333&quot;&gt;:=@&lt;/span&gt;DSStateChange&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;GetCampoDatos&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
  &lt;span style=&quot;color: #007020&quot;&gt;Result&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; FCampoDatos&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetCampoDatos&lt;/span&gt;(&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;const&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;string&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
  FCampoDatos &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataField &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DBEditChange&lt;/span&gt;(Sender&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;TObject&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;var&lt;/span&gt;
  Filtro&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
   FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSource&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSet&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;FilterOptions &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt;[foCaseInsensitive]&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
   FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSource&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSet&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Filtered      &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;False&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #007020&quot;&gt;Length&lt;/span&gt;(FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Text)&lt;span style=&quot;color: #333333&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;) &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;and&lt;/span&gt; (FDBedit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSource&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSet&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;State &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;in&lt;/span&gt; dsWriteModes)
   &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
     FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Visible&lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;True&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
     Filtro&lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt;FCampoBusqueda &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;#39; like &amp;#39;&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #007020&quot;&gt;QuotedStr&lt;/span&gt;(&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;#39;*&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #007020&quot;&gt;Trim&lt;/span&gt;(FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Text)&lt;span style=&quot;color: #333333&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;#39;*&amp;#39;&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
     FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSource&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSet&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Filter   &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; Filtro&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
     FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSource&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSet&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Filtered &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;
   &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
     FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Visible&lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;False&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;inherited&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DBGridCellClick&lt;/span&gt;(Column&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TColumn)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;not&lt;/span&gt; &lt;span style=&quot;color: #007020&quot;&gt;Assigned&lt;/span&gt;(FFuenteDatos) &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;not&lt;/span&gt; (FDBedit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSource&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSet&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;State &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;in&lt;/span&gt; dsWriteModes) &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;Exit&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBEdit&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Field&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;AsString &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #007020&quot;&gt;Trim&lt;/span&gt;(FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Columns&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Items[&lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;]&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Field&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Text)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;Visible&lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;GetFuenteDeDatos2&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
  &lt;span style=&quot;color: #007020&quot;&gt;Result&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; FBusquedaDatos&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetFuenteDeDatos2&lt;/span&gt;(Value&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; TDataSource)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;nil&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
         SetCampoDatos2(&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

    FBusquedaDatos &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
    FDBGrid&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;DataSource &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; FBusquedaDatos&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;GetCampoDatos2&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
  &lt;span style=&quot;color: #007020&quot;&gt;Result&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; FCampoBusqueda&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;procedure&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;TZambusqueda&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;SetCampoDatos2&lt;/span&gt;(&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;const&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;string&lt;/span&gt;)&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;begin&lt;/span&gt;
  FCampoBusqueda &lt;span style=&quot;color: #333333&quot;&gt;:=&lt;/span&gt; Value&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/3033736483383834785/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2013/11/busqueda-incremental.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/3033736483383834785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/3033736483383834785'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2013/11/busqueda-incremental.html' title='Busqueda Incremental'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-4210967909123580454</id><published>2011-11-02T10:23:00.000-04:30</published><updated>2011-11-07T12:05:54.646-04:30</updated><title type='text'>Función para calcular edad con MySQL</title><content type='html'>&lt;span style=&quot;font-size: medium;&quot;&gt;Lo siguiente es el script SQL para crear una función almacena para MySQL que permite calcular la edad&lt;br /&gt;&lt;br /&gt;ejemplo de uso:&lt;br /&gt;&lt;br /&gt;SELECT edad(&#39;1972-12-31&#39;,&#39;2011-11-02&#39;);&lt;br /&gt;&lt;br /&gt;el resultado es 38;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;br /&gt;
DROP FUNCTION IF EXISTS edad&lt;br /&gt;
delimiter //&lt;br /&gt;
CREATE FUNCTION edad(fnac DATE,fact DATE) RETURNS INT&lt;br /&gt;
BEGIN&lt;br /&gt;
DECLARE aux INT;&lt;br /&gt;
IF YEAR(fnac)&amp;gt;YEAR(fact) THEN&lt;br /&gt;
SET aux = -1;&lt;br /&gt;
ELSE&lt;br /&gt;
SET aux = (YEAR(fact)-YEAR(fnac)) - (RIGHT(fact,5)&amp;lt;(RIGHT(fnac,5)&lt;right(fnac,5)&gt;);&lt;/right(fnac,5)&gt;&lt;br /&gt;
END IF;&lt;br /&gt;
RETURN aux;&lt;br /&gt;
END//&lt;br /&gt;
delimiter ;&lt;br /&gt;
&lt;br /&gt;
Deseo le sirva de provecho, y no olvide de hacer sus comentarios. &lt;br /&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table height=&quot;196&quot; style=&quot;width: 952px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;hr size=&quot;2&quot; width=&quot;100%&quot; /&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;color: green; font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: Geneva,Arial,Sans-serif; font-style: italic; font-weight: bold;&quot;&gt;Ing. Tom Zambrano&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Comic Sans MS; font-size: medium;&quot;&gt;&quot;&lt;span style=&quot;color: red;&quot;&gt;El hombre inteligente no es aquel que lo sabe todo, sino aquel que sabe aplicar lo poco que sabe&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #002060; font-size: medium;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Comic Sans MS; font-size: 16pt;&quot;&gt;Zilver sTone&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Comic Sans MS; font-size: medium;&quot;&gt;&quot;&lt;span style=&quot;color: #17365d;&quot;&gt;El poder del hombre no radica en su fuerza, sino en el poder de su palabra&lt;/span&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;hr size=&quot;2&quot; width=&quot;100%&quot; /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/4210967909123580454/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2011/11/funcion-para-calcular-edad-con-mysql.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/4210967909123580454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/4210967909123580454'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2011/11/funcion-para-calcular-edad-con-mysql.html' title='Función para calcular edad con MySQL'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-6926359325981825234</id><published>2011-10-31T07:17:00.000-04:30</published><updated>2011-10-31T07:47:55.543-04:30</updated><title type='text'>Crear una base de datos con PHP5</title><content type='html'>&lt;div dir=&#39;ltr&#39;&gt; &lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot;&gt;En las versiones anteriores a PHP5 para crear o eliminar una Base de datos de mysql se usaban las funciones mysql_create_db() y mysql_drop_db() respectivamente. Actualmente con PHP5 ya no se usan, mas bien se emplea una consulta sql para tal propósito, como muestra a continuación:&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;&amp;lt;?php&lt;/font&gt;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$bd&lt;/font&gt; = &quot;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;iuty&lt;/font&gt;&quot;;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$hos&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;t&lt;/font&gt; = &#39;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;localhost&lt;/font&gt;&#39;;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$pass&lt;/font&gt; = &#39;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;root&lt;/font&gt;&#39;;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$use&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;r&lt;/font&gt; = &#39;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;123456&lt;/font&gt;&#39;;&lt;br&gt;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;if(!&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;(&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$link&lt;/font&gt; &lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;=&lt;/font&gt; mysql_connect&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;(&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$host&lt;/font&gt;,&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$pass&lt;/font&gt;,&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$user&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;))){&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;echo&lt;/font&gt; &quot;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;No se ha podido conectar al servidor&lt;/font&gt;&quot;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;;&lt;/font&gt;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;}&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;else{&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#808080&quot;&gt;//Elimina la base de datos&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$eliminar&lt;/font&gt; &lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;=&lt;/font&gt; mysql_query&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;(&lt;/font&gt;&quot;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;DROP DATABASE IF EXISTS &lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;$bd&lt;/font&gt;&lt;/font&gt;&quot;,&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$link&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;);&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#808080&quot;&gt;//crea la base de datos&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$crea&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;r&lt;/font&gt; &lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;=&lt;/font&gt; mysql_query(&quot;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;CREATE DATABASE &lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;$bd&lt;/font&gt;&lt;/font&gt;&quot;,&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$link&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;);&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#808080&quot;&gt;//string sql para crear la tabla estudiante&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$sql&lt;/font&gt; &lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;=&lt;/font&gt; &quot;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;CREATE TABLE estudiante (expediente INT not null primary key, nombre VARCHAR(35), fec_nac DATETIME no null);&lt;/font&gt;&quot;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;;&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#808080&quot;&gt;//selecciona la base de datos&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_select_db&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;(&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$bd&lt;/font&gt;,&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$link&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;);&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#808080&quot;&gt;//crea la tabla&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;if(&lt;/font&gt;mysql_query&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;(&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$sql&lt;/font&gt;,&lt;font style=&quot;&quot; color=&quot;#c00000&quot;&gt;$link&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;)){&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;echo&lt;/font&gt; &quot;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;base de datos creada correctamente&lt;/font&gt;&quot;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;;&lt;/font&gt;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;echo&lt;/font&gt; &quot;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;No se ha podido crear la base de datos&lt;/font&gt;&quot;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;}&lt;/font&gt;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;&lt;br&gt;?&amp;gt;&lt;/font&gt;&lt;br id=&quot;ecxFontBreak&quot;&gt;&lt;/font&gt;&lt;br&gt;&lt;table height=&quot;196&quot; width=&quot;952&quot;&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td&gt; &lt;br&gt; &lt;/td&gt; &lt;td style=&quot;&quot;&gt; &lt;hr size=&quot;2&quot; width=&quot;100%&quot;&gt;&lt;div align=&quot;left&quot;&gt;&lt;font style=&quot;color: rgb(0, 128, 0); font-size: 16pt;&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-family: Geneva,Arial,Sans-serif; font-weight: bold; font-style: italic;&quot;&gt;Ing. Tom Zambrano&lt;/span&gt;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; face=&quot;Comic Sans MS&quot; size=&quot;4&quot;&gt;&quot;&lt;font style=&quot;&quot; color=&quot;#ff0000&quot;&gt;El hombre inteligente no es aquel que lo sabe todo, sino aquel que sabe aplicar lo poco que sabe&lt;/font&gt;&quot;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; color=&quot;#002060&quot; size=&quot;4&quot;&gt;&lt;b&gt;&lt;font style=&quot;font-size: 16pt;&quot; face=&quot;Comic Sans MS&quot;&gt;Zilver sTone&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; face=&quot;Comic Sans MS&quot; size=&quot;4&quot;&gt;&quot;&lt;font style=&quot;&quot; color=&quot;#17365d&quot;&gt;El poder del hombre no radica en su fuerza, sino en el poder de su palabra&lt;/font&gt;&quot;&lt;/font&gt;&lt;/div&gt;&lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot;&gt;&lt;/font&gt;&lt;hr size=&quot;2&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; 		 	   		  &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/6926359325981825234/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2011/10/crear-una-base-de-datos-con-php5.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/6926359325981825234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/6926359325981825234'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2011/10/crear-una-base-de-datos-con-php5.html' title='Crear una base de datos con PHP5'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-4997949033545242737</id><published>2011-09-30T13:44:00.000-04:30</published><updated>2011-09-30T14:14:21.648-04:30</updated><title type='text'>esperar pulsado de tecla en C</title><content type='html'>&lt;div dir=&#39;ltr&#39;&gt; &lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot;&gt;Esto es una articulo que encontré ya hace un tiempo, en un lugar que no recuerdo, y que copio tal cual lo encontré, respetando y dando crédito a las personas involucradas en el mismo&lt;br id=&quot;ecxFontBreak&quot;&gt;&lt;/font&gt;&lt;h1&gt;&lt;span class=&quot;ecxsubject&quot;&gt;esperar pulsado de tecla en C&lt;/span&gt;&lt;/h1&gt; 			&lt;span class=&quot;ecxsender&quot;&gt;Leonardo Mosquera&lt;/span&gt;&lt;br&gt; 			&lt;span class=&quot;ecxdate&quot;&gt;Tue, 11 Sep 2007 14:01:46 -0700&lt;/span&gt;&lt;BR&gt; 		     &lt;div class=&quot;ecxmsgBody&quot;&gt;      &lt;pre&gt;On 9/11/07, Andorogynus ! &amp;lt;[EMAIL PROTECTED]&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Como puedo hacer en C para simular un INKEY$ (que viejo !)&lt;br&gt;&amp;gt; Es decir, efectuar una pausa hasta que el tipo presione una tecla.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Probe con getchar() pero no me permite abortar (Ctrl-C) el programa.&lt;br&gt;&amp;gt;&lt;br&gt;&lt;br&gt;A continuacion te adjunto una contribucion que hizo alguien a la lista de mi&lt;br&gt;universidad una vez. Podes recortar todo lo que no sea getch() y su soporte.&lt;br&gt;Tene en cuenta la licencia, o al menos no copies/pegues sino que&lt;br&gt;&quot;inspirate&quot;.&lt;br&gt;&lt;br&gt;Nota: tradicionalmente se usa ncurses para eso que queres hacer, pero yo&lt;br&gt;mismo ya conclui que ncurses es demasiado armatoste si simplemente queres&lt;br&gt;pausar el programa por la duracion de exactamente 1 tecla.&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------&lt;br&gt;&lt;br&gt;/* +++++++++++  conio.h de Porland (versión trucha del Borland  :-)&lt;br&gt;+++++++++++&lt;br&gt; *&lt;br&gt; * Autor: Omar Murray (Crux_)             Versión: 0.0.2&lt;br&gt; * Licencia: GPL                Fecha: 05/06/07&lt;br&gt; *&lt;br&gt; * Esto intenta ser una recopilación de las funciones más utilizadas en&lt;br&gt; * la librería &amp;lt;conio.h&amp;gt; de Borland para poder generar código y compilar&lt;br&gt; * utilizando gcc en GNU/Linux, y luego poder correrlo en un entorno&lt;br&gt; * Borland sin necesidad de modificar el código escrito. Mayormente son&lt;br&gt;trozos&lt;br&gt; * de código obtenido de inet y recopilados en una sola librería. La&lt;br&gt;idea es&lt;br&gt; * utilizarlo para fines educativos; está en absoluto estado alfa, así&lt;br&gt;que su&lt;br&gt; * uso queda a riesgo de quien lo utilice.&lt;br&gt; *&lt;br&gt; * CHANGELOG&lt;br&gt; * v 0.0.1    Se implemente funciones getch() y clrscr().&lt;br&gt; * v 0.0.2    se agrega función gotoxy(), se ordena código.*/&lt;br&gt;&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br&gt;#include &amp;lt;termios.h&amp;gt;&lt;br&gt;#include &amp;lt;unistd.h&amp;gt;&lt;br&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;br&gt;#include &amp;lt;string.h&amp;gt;&lt;br&gt;&lt;br&gt;//******************FUNCION GETCH****************************&lt;br&gt;int getch( ) {&lt;br&gt; struct termios oldt,&lt;br&gt;                newt;&lt;br&gt; int            ch;&lt;br&gt; tcgetattr( STDIN_FILENO, &amp;amp;oldt );&lt;br&gt; newt = oldt;&lt;br&gt; newt.c_lflag &amp;amp;= ~( ICANON | ECHO );&lt;br&gt; tcsetattr( STDIN_FILENO, TCSANOW, &amp;amp;newt );&lt;br&gt; ch = getchar();&lt;br&gt; tcsetattr( STDIN_FILENO, TCSANOW, &amp;amp;oldt );&lt;br&gt; return ch;&lt;br&gt;}&lt;br&gt;&lt;br&gt;//******************FUNCION CLRSCR*****************************&lt;br&gt;void clrscr( ) {&lt;br&gt;system(&quot;clear&quot;);&lt;br&gt;}&lt;br&gt;&lt;br&gt;//**************** **FUNCION GOTOXY*****************************&lt;br&gt;int gotoxy(int x, int y) {&lt;br&gt;char essq[100]; // String variable to hold the escape sequence&lt;br&gt;char xstr[100]; // Strings to hold the x and y coordinates&lt;br&gt;char ystr[100]; // Escape sequences must be built with characters&lt;br&gt;&lt;br&gt;//   ** Convert the screen coordinates to strings&lt;br&gt;sprintf(xstr, &quot;%d&quot;, x);&lt;br&gt;sprintf(ystr, &quot;%d&quot;, y);&lt;br&gt;&lt;br&gt;//    ** Build the escape sequence (vertical move)&lt;br&gt;essq[0] = &#39;\0&#39;;&lt;br&gt;strcat(essq, &quot;\033[&quot;);&lt;br&gt;strcat(essq, ystr);&lt;br&gt;&lt;br&gt;//     ** Described in man terminfo as vpa=\E[%p1%dd&lt;br&gt;//     ** Vertical position absolute&lt;br&gt;strcat(essq, &quot;d&quot;);&lt;br&gt;&lt;br&gt;//     ** Horizontal move&lt;br&gt;//     ** Horizontal position absolute&lt;br&gt;strcat(essq, &quot;\033[&quot;);&lt;br&gt;strcat(essq, xstr);&lt;br&gt;&lt;br&gt;//     // Described in man terminfo as hpa=\E[%p1%dG&lt;br&gt;strcat(essq, &quot;G&quot;);&lt;br&gt;&lt;br&gt;//      ** Execute the escape sequence&lt;br&gt;//      ** This will move the cursor to x, y&lt;br&gt;printf(&quot;%s&quot;, essq);&lt;br&gt;return 0;&lt;br&gt;}&lt;br&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br&gt;&lt;table height=&quot;196&quot; width=&quot;952&quot;&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td&gt; &lt;br&gt; &lt;/td&gt; &lt;td style=&quot;&quot;&gt; &lt;hr size=&quot;2&quot; width=&quot;100%&quot;&gt;&lt;div align=&quot;left&quot;&gt;&lt;font style=&quot;color: rgb(0, 128, 0); font-size: 16pt;&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-family: Geneva,Arial,Sans-serif; font-weight: bold; font-style: italic;&quot;&gt;Ing. Tom Zambrano&lt;/span&gt;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; face=&quot;Comic Sans MS&quot; size=&quot;4&quot;&gt;&quot;&lt;font style=&quot;&quot; color=&quot;#ff0000&quot;&gt;El hombre inteligente no es aquel que lo sabe todo, sino aquel que sabe aplicar lo poco que sabe&lt;/font&gt;&quot;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot; color=&quot;#002060&quot;&gt;&lt;b&gt;&lt;font style=&quot;font-size: 16pt;&quot; face=&quot;Comic Sans MS&quot;&gt;Zilver sTone&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;font-size: 16pt;&quot; face=&quot;Comic Sans MS&quot; size=&quot;4&quot;&gt;&quot;&lt;font style=&quot;&quot; color=&quot;#17365d&quot;&gt;El poder del hombre no radica en su fuerza, sino en el poder de su palabra&lt;/font&gt;&quot;&lt;/font&gt;&lt;/div&gt;&lt;font style=&quot;font-size: 16pt;&quot; size=&quot;4&quot;&gt;&lt;/font&gt;&lt;hr size=&quot;2&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; 		 	   		  &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/4997949033545242737/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2011/09/esperar-pulsado-de-tecla-en-c.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/4997949033545242737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/4997949033545242737'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2011/09/esperar-pulsado-de-tecla-en-c.html' title='esperar pulsado de tecla en C'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-2431595809779411182</id><published>2011-03-14T09:52:00.010-04:30</published><updated>2011-03-14T10:21:29.433-04:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic"/><category scheme="http://www.blogger.com/atom/ns#" term="Canaima"/><category scheme="http://www.blogger.com/atom/ns#" term="CBIT"/><category scheme="http://www.blogger.com/atom/ns#" term="Impress"/><category scheme="http://www.blogger.com/atom/ns#" term="Macro"/><category scheme="http://www.blogger.com/atom/ns#" term="Openoffice"/><category scheme="http://www.blogger.com/atom/ns#" term="Softwa Educativo"/><title type='text'>OpenOffice Macro para Impress</title><content type='html'>Saludos seguidores;&lt;br /&gt;&lt;br /&gt;Hacia algún tiempo que no dejaba un post por acá.&lt;br /&gt;Bueno resulta que en nuestro trabajo, CBIT-Yaracuy se presento una situación para el desarrollo de software educativo para las Canaima empleado Impress, de como introducir texto en una caja de texto y validar éste.&lt;br /&gt;&lt;br /&gt;Indagando, buscando e investigando se logro dar con una solución empleando Macros de OpenOffice, acá la solución desarrollada:&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk8JzU9RbwBONBQ4hqVsTkXjc36ckej5MdIRGaK28Z5dBuyKZ4Q05FQ_slI8TXE1DuevnIpZZAJ4B4U9eMEvVEt1Axfox7rSlUGancX44YKk0X7GFmSdrvDE_Q9_8L_XUfI6qUZlgyYwnd/s1600/tere2.jpg&quot;&gt;&lt;img style=&quot;display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 240px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk8JzU9RbwBONBQ4hqVsTkXjc36ckej5MdIRGaK28Z5dBuyKZ4Q05FQ_slI8TXE1DuevnIpZZAJ4B4U9eMEvVEt1Axfox7rSlUGancX44YKk0X7GFmSdrvDE_Q9_8L_XUfI6qUZlgyYwnd/s320/tere2.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5583942339132685042&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Y este es el código Basic de las macros empleadas:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(192, 192, 192);&quot;&gt;REM  *****  BASIC  *****&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(192, 192, 192);&quot;&gt;REM Codigo desarrollado por Ing. Tom Zambrano&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(192, 192, 192);&quot;&gt;REM el CBIT &quot;Prof. Ferdinando Manto&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(192, 192, 192);&quot;&gt;REM Marzo 2011&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(192, 192, 192);&quot;&gt;REM Se autoriza el empleo de este código, puede copiarlo, estudiarlo, modificarlo, distribuirlo&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(192, 192, 192);&quot;&gt;REM siempre y cuando de crédito de la autoría del mismo&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Option Explicit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;global&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;oDoc&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;As Object&lt;/span&gt;          &lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;&#39;Para obtener la instancia del documento Impress&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;global&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;oPre&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;As Object&lt;/span&gt;         &lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;&#39;Para obtener la instancia de la presentación&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;global&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;oPreContr&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt; As Object&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;     &#39;Para obtener el los controles de la presentación&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 0, 153);&quot;&gt;global&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;oPagAct1&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;As Object&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;    &#39;Para obtener la instancia de la diapositiva donde esta la actividad&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;global&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;oCajaTexto&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt; As Object&lt;/span&gt; &lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;   &#39;Obtiene la instancia de la caja de texto&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Sub&lt;/span&gt; Main&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;Sub&lt;/span&gt; validar&lt;br /&gt;   obtenerAreaTrabajo&lt;br /&gt;if (ucase(oCajaTexto.String)=&quot;ALGO&quot;) then&lt;br /&gt;  msgbox &quot;muy bien&quot;&lt;br /&gt;      oPreContr.gotoNextSlide() &#39;Va a la proxima diapositiva&lt;br /&gt;      oCajaTexto.String = &quot;&quot; &#39;para garantizar que la caja de texto quede vacia&lt;br /&gt;else&lt;br /&gt;  msgbox &quot;revisa tu respuesta&quot;&lt;br /&gt;  oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End IF&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;End&lt;/span&gt; Sub&lt;br /&gt;&lt;br /&gt;Sub obtenerAreaTrabajo&lt;br /&gt;oDoc = ThisComponent&lt;br /&gt;oPagAct1 = oDoc.DrawPages.getByName(&quot;actividad1&quot;) &#39;Puede emplearse tambien&lt;br /&gt;oCajaTexto = oPagAct1.getLinks().getByName(&quot;cajatexto&quot;)&lt;br /&gt;oCajaTexto.CharHeight = 44&lt;br /&gt;oPre = oDoc.Presentation&lt;br /&gt;oPreContr = oPre.getController()&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub Tecla1&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;1&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub Tecla2&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;2&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub Tecla3&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;3&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub Tecla4&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;4&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub Tecla5&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;5&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub Tecla6&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;6&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub Tecla7&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;7&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub Tecla8&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;8&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub Tecla9&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;9&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub Tecla0&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;0&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaBorrar&lt;br /&gt;Dim L As integer&lt;br /&gt;&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;&lt;br /&gt;L = len(oCajaTexto.String)&lt;br /&gt;if L&gt;0 then&lt;br /&gt;  oCajaTexto.String = Left(oCajaTexto.String,L-1)&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaQ&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;Q&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaW&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;W&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaE&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;E&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaR&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;R&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaT&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;T&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaY&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;Y&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaU&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;U&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaI&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;I&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaO&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;O&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaP&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;P&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaA&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;A&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaS&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;S&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaD&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;D&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaF&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;F&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaG&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;G&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaH&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;H&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaJ&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;J&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaK&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;K&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaL&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;L&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaNtilde&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;Ñ&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaZ&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;Z&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaX&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;X&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaC&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;C&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaV&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;V&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaB&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;B&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaN&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;N&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaM&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot;M&quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub TeclaSpace&lt;br /&gt;obtenerAreaTrabajo&lt;br /&gt;oCajaTexto.String = oCajaTexto.String + &quot; &quot;&lt;br /&gt;oPreContr.gotoSlide(oPagAct1)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;A cada objeto, se le asigna un nombre, sobe todo a la caja de texto, y en la interacción de los objetos se le asocia la macro correspondiente&lt;br /&gt;&lt;br /&gt;Deseo que este código les sea de utilidad y de provecho, no duden en dar crédito de su desarrollo, porque el conocimiento es de todos y todos tenemos derecho a el.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 153);&quot;&gt;No olvides en hacer tus comentarios&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/2431595809779411182/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2011/03/openoffice-macro-para-impress.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/2431595809779411182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/2431595809779411182'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2011/03/openoffice-macro-para-impress.html' title='OpenOffice Macro para Impress'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk8JzU9RbwBONBQ4hqVsTkXjc36ckej5MdIRGaK28Z5dBuyKZ4Q05FQ_slI8TXE1DuevnIpZZAJ4B4U9eMEvVEt1Axfox7rSlUGancX44YKk0X7GFmSdrvDE_Q9_8L_XUfI6qUZlgyYwnd/s72-c/tere2.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-1923453381195034661</id><published>2011-02-04T11:22:00.001-04:30</published><updated>2011-03-14T09:51:45.997-04:30</updated><title type='text'>fondo verde</title><content type='html'>&lt;p class=&quot;mobile-photo&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_ZMS4jKmrr-I/TUwnziyAyZI/AAAAAAAAACo/ffzlXSTn2yE/s1600/piensaverde-757066.png&quot;&gt;&lt;img src=&quot;http://1.bp.blogspot.com/_ZMS4jKmrr-I/TUwnziyAyZI/AAAAAAAAACo/ffzlXSTn2yE/s320/piensaverde-757066.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5569870605613844882&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr  width=&quot;100%&quot; style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 0);font-size:20pt;&quot; &gt;&lt;span style=&quot;font-weight: bold; font-style: italic;font-family:Geneva,Arial,Sans-serif;&quot; &gt;Ing.  Tom Zambrano &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:Comic   Sans MS;font-size:16pt;&quot;  &gt;&lt;span style=&quot;font-family:Geneva,Arial,Sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 16pt;font-family:Comic Sans MS;font-size:130%;&quot;  &gt;&quot;&lt;span style=&quot;;color:#ff0000;&quot; &gt;El hombre inteligente no es aquel que lo sabe todo, sino  aquel que sabe aplicar lo poco que sabe&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;font-family:Comic Sans MS;font-size:130%;&quot;  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;;color:#002060;&quot; &gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt;font-family:Comic Sans MS;font-size:130%;&quot;  &gt;Zilver sTone&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 16pt;font-family:Comic Sans MS;font-size:130%;&quot;  &gt;&quot;&lt;span style=&quot;;color:#17365d;&quot; &gt;El poder del hombre no radica en su fuerza, sino en el  poder de su palabra&lt;/span&gt;&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr size=&quot;2&quot; width=&quot;100%&quot;&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/1923453381195034661/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2011/02/findo-verde.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/1923453381195034661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/1923453381195034661'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2011/02/findo-verde.html' title='fondo verde'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_ZMS4jKmrr-I/TUwnziyAyZI/AAAAAAAAACo/ffzlXSTn2yE/s72-c/piensaverde-757066.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-4076153375453328815</id><published>2010-07-22T11:59:00.002-04:30</published><updated>2010-07-22T15:40:37.405-04:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arreglo de objetos"/><category scheme="http://www.blogger.com/atom/ns#" term="creación de objetos"/><title type='text'>Arreglo de Objetos. Un poco de ayuda</title><content type='html'>&lt;b&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;Creación de Objetos&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;Creamos un objeto mediante la siguiente sintaxis:&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;Objeto a(arg1, arg2); //Creo un objeto Objeto, usando el contructor de argumentos arg1 y arg2&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;Objeto b;                      //Creo un objeto Objeto, usando el constructor sin parámetros&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;En ambos casos, se creo un objeto en memoria estática. Es decir, la memoria asignada para la función o método &lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;donde se creo el objeto. Una vez que la función finaliza, el objeto se destruye.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;Para crear un objeto en memoria dinámica usamos:&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;Objeto* a = new Objeto(arg1, arg2);&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;Objeto* b = new Objeto;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;Si queremos crear un arreglo de objetos en memoria dinámica usamos:&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;Objeto* c = new Objeto[20] //Creo un arreglo de 20 espacios de Objeto.&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;Cuando definimos un objeto en memoria dinámica, esta memoria queda tomada por el resto de la ejecución del&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt; programa hasta que nosotros llamemos al destructor por medio de:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;delete a;&lt;br /&gt;delete b;&lt;br /&gt;delete [] c; //Si al crear el objeto usamos [] (Hicimos un arreglo) entonces delete // se debe llamar con []&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;Debemos tener en cuenta que la memoria estática se obtiene en el momento en que se compila el programa. La memoria dinámica se asigna durante la ejecución. Es decir, podemos pedir la medida justa de memoria de acuerdo a parámetros que se pueden obtener en tiempo de ejecución. A cambio de este beneficio, debemos preocuparnos de liberar la memoria que pedimos. Cada vez que hacemos un new, debemos preocuparnos de hacer delete después. Edemas, en los destructores de la clase debemos preocuparnos de hacer delete en la memoria que hayamos pedido con new dentro del objeto.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;un ejemplo de como hacer lo anteriormente descrito&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;main()&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     ... // Aquí deberían estar declaradas algunas o las variables que se necesitan&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     int dim; //Dimensión del arreglo de objetos&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     alumno *p; //Crea un puntero a objeto alumno, Se asume que la clase alumno esta implementada&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     alumno *aux; //Puntero auxiliar tipo alumno (Solo por ejemplo pero no es necesario)&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Cuantos alumnos tiene la clase? &quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     cin &amp;gt;&amp;gt; dim; //Para cuantos objetos hay que liberar memoria? // es de ejemplo&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     cout &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;p = new alumno[dim]; //Asigna memoria dinámicamente&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;if (p==0) //Si p=0 no hay memoria suficiente&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     {&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;           cout &amp;lt;&amp;lt; &quot;Error no hay suficiente memoria&quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;           return 0; //Sale del programa&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     };&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     aux=p; //Asignación de un puntero a otro del mismo tipo&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;do //estructura do...while&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     { //que mantiene en el ciclo principal&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;          cout &amp;lt;&amp;lt; &quot; \n&quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;          ... // aqui debería estar el menu de opciones &lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;          cin &amp;gt;&amp;gt; opcion;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;switch (opcion)&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;         {&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;              case 1: (p+numero_objeto) -&amp;gt; ingresar(); //operador flecha en vez de operador punto&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         numero_objeto++;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         break;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;              case 2: cout &amp;lt;&amp;lt;&quot;\n&quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         cout &amp;lt;&amp;lt;&quot;Lista de Estudiantes inscritos \n&quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         for (i=0;i&amp;lt;numero_objeto;i++)&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         {&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                                 cout &amp;lt;&amp;lt; &quot;Estudiante numero &quot; &amp;lt;&amp;lt; i;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                                 cout &amp;lt;&amp;lt; &quot;: &quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                                 (aux+i) -&amp;gt; mostrar_nombre();&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                                 cout &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         }&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         break;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;              case 3:&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Ingrese el número de lista del estudiante a examinar \n&quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         cin &amp;gt;&amp;gt; n;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         cout &amp;lt;&amp;lt; &quot;Alumno: &quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         (p+n) -&amp;gt;mostrar_nombre();&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                          cout &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         (p+n) -&amp;gt; reporte();&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;                         break;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;              default: return 0; //Sale del programa&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;           }&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     } while (opcion !=4); //sale del programa&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;delete [] p; //libera la memoria asignada a *p&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr  width=&quot;100%&quot; style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 0);font-size:20pt;&quot; &gt;&lt;span style=&quot;font-weight: bold; font-style: italic;font-family:Geneva,Arial,Sans-serif;&quot; &gt;Ing.  Tom Zambrano &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:Comic Sans MS;font-size:16pt;&quot;  &gt;&lt;span style=&quot;font-family:Geneva,Arial,Sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;;font-family:Comic Sans MS;font-size:130%;&quot;  &gt;&quot;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;El hombre inteligente no es aquel que lo sabe todo, sino  aquel que sabe aplicar lo poco que sabe&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;;font-family:Comic Sans MS;font-size:130%;&quot;  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 32, 96);&quot;&gt;&lt;b&gt;&lt;span style=&quot;;font-family:Comic Sans MS;font-size:130%;&quot;  &gt;Zilver sTone&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;;font-family:Comic Sans MS;font-size:130%;&quot;  &gt;&quot;&lt;span style=&quot;color: rgb(23, 54, 93);&quot;&gt;El poder del hombre no radica en su fuerza, sino en el  poder de su palabra&lt;/span&gt;&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr size=&quot;2&quot; width=&quot;100%&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        &lt;br /&gt;&lt;hr /&gt;Get news, entertainment and everything you care about at Live.com. &lt;a href=&quot;http://www.live.com/getstarted.aspx%20&quot; target=&quot;_new&quot;&gt;Check it out!&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/4076153375453328815/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/07/arreglo-de-objetos-un-poco-de-ayuda.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/4076153375453328815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/4076153375453328815'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/07/arreglo-de-objetos-un-poco-de-ayuda.html' title='Arreglo de Objetos. Un poco de ayuda'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-4842157795688228110</id><published>2010-07-20T11:12:00.000-04:30</published><updated>2010-07-20T11:42:33.339-04:30</updated><title type='text'>Cómo convertir un número de base decimal a otra y no morir en el intento con C</title><content type='html'>&lt;br&gt;&lt;br&gt;Saludos seguidores;&lt;br&gt;&lt;br&gt;Acá les dejo un sencillo programa realizado en c++ para convertir un numero de base decimal a base binaria, octal o hexadecimal, solo hay que especificar con que base se desea trabajar. Deseo les sirva de orientación y ayuda...&lt;br&gt;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;#include&lt;/font&gt; &amp;lt;iostream&amp;gt;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#0070c0&quot;&gt;#include&lt;/font&gt; &amp;lt;string.h&amp;gt;&lt;br&gt;using namespace std;&lt;br&gt;&lt;br&gt;void invertir(char origen[], char destino[]){&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int j = strlen(origen)-1;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; destino[j+1] = &#39;\0&#39;;&amp;nbsp; //colocar el fin de cadena&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i=j;i&amp;gt;=0;i--){&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //cout&amp;lt;&amp;lt;origen[i];&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; destino[j-i] = origen[i];&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;/**&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;* numero: número decimal a convertir&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;* base: la base del numero a la cual convertir (2: binaria, 8: octal, 16: hexadecimal&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;* c[]: el número convertido&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;**/&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;br&gt;void dec2base(int numero, int base, char c[]){&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int resto = 0;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int n = numero;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i = 0;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char aux[100];&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (base!=2 &amp;amp;&amp;amp; base!=8 &amp;amp;&amp;amp; base!=16){ &lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;//validar que la base sea valida&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;&lt;br&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;base no valida debe ser 2,8 o 16&quot;&amp;lt;&amp;lt;endl;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strcpy(c, &quot;&quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (n==0){&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; strcpy(c,&quot;0&quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; while (n&amp;gt;0){&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; resto = n % base;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;//Obtiene el resto de la division entera&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (resto&amp;lt;10){&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; c[i] = &#39;0&#39;+resto; &lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;//el ASCII de 0 es 48 y así sucesivamente&amp;nbsp;&lt;/font&gt;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; c[i] = &#39;7&#39;+resto; &lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;//el ASCII de A es 65 y así sucesivamente&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; n = n / base;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;//&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;división entera y se actualiza el valor de n&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; i++;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; c[i] = &#39;\0&#39;;&amp;nbsp;&amp;nbsp; &lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;//se coloca el fin de la cadena&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; invertir(c,aux); &lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;// se invierte la cadena&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; strcpy(c,aux); &lt;font style=&quot;&quot; color=&quot;#00b050&quot;&gt;// se asigna aux a c&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;}&lt;br&gt;&lt;br&gt;int main(){&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char s[100],d[100];&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dec2base(1024,16,d);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;d;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;br&gt;}&lt;br&gt;&lt;br&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Get news, entertainment and everything you care about at Live.com. &lt;a href=&#39;http://www.live.com/getstarted.aspx &#39; target=&#39;_new&#39;&gt;Check it out!&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/4842157795688228110/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/07/como-convertir-un-numero-de-base.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/4842157795688228110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/4842157795688228110'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/07/como-convertir-un-numero-de-base.html' title='Cómo convertir un número de base decimal a otra y no morir en el intento con C'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-2192754394519497390</id><published>2010-07-14T16:35:00.003-04:30</published><updated>2010-07-15T07:39:12.844-04:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="clases"/><category scheme="http://www.blogger.com/atom/ns#" term="Ejercicios"/><category scheme="http://www.blogger.com/atom/ns#" term="Objetos"/><category scheme="http://www.blogger.com/atom/ns#" term="polimofismo"/><category scheme="http://www.blogger.com/atom/ns#" term="poo"/><title type='text'>Ejercicios prácticos propuestos</title><content type='html'>&lt;meta equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 12&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 12&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CUsers%5CTOMZAM%7E1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml&quot;&gt;&lt;link rel=&quot;themeData&quot; href=&quot;file:///C:%5CUsers%5CTOMZAM%7E1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx&quot;&gt;&lt;link rel=&quot;colorSchemeMapping&quot; href=&quot;file:///C:%5CUsers%5CTOMZAM%7E1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml&quot;&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:hyphenationzone&gt;21&lt;/w:HyphenationZone&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;ES-VE&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val=&quot;Cambria Math&quot;&gt;    &lt;m:brkbin val=&quot;before&quot;&gt;    &lt;m:brkbinsub val=&quot;--&quot;&gt;    &lt;m:smallfrac val=&quot;off&quot;&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val=&quot;0&quot;&gt;    &lt;m:rmargin val=&quot;0&quot;&gt;    &lt;m:defjc val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent val=&quot;1440&quot;&gt;    &lt;m:intlim val=&quot;subSup&quot;&gt;    &lt;m:narylim val=&quot;undOvr&quot;&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate=&quot;false&quot; defunhidewhenused=&quot;true&quot; defsemihidden=&quot;true&quot; defqformat=&quot;false&quot; defpriority=&quot;99&quot; latentstylecount=&quot;267&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;0&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Normal&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;heading 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 7&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 8&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 9&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 7&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 8&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 9&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;35&quot; qformat=&quot;true&quot; name=&quot;caption&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;10&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Title&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;1&quot; name=&quot;Default Paragraph Font&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;11&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Subtitle&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;22&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Strong&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;20&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Emphasis&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;59&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Table Grid&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Placeholder Text&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;1&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;No Spacing&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Revision&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;34&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;List Paragraph&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;29&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Quote&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;30&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Intense Quote&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;19&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Subtle Emphasis&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;21&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Intense Emphasis&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;31&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Subtle Reference&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;32&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Intense Reference&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;33&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Book Title&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;37&quot; name=&quot;Bibliography&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; qformat=&quot;true&quot; name=&quot;TOC Heading&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:&quot;Cambria Math&quot;; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:&quot;&quot;; 	margin:0cm; 	margin-bottom:.0001pt; 	text-align:justify; 	text-indent:17.0pt; 	line-height:150%; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;,&quot;serif&quot;; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-ansi-language:ES; 	mso-fareast-language:EN-US;} p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	margin-top:0cm; 	margin-right:0cm; 	margin-bottom:0cm; 	margin-left:36.0pt; 	margin-bottom:.0001pt; 	mso-add-space:auto; 	text-align:justify; 	text-indent:17.0pt; 	line-height:150%; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;,&quot;serif&quot;; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-ansi-language:ES; 	mso-fareast-language:EN-US;} p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-type:export-only; 	margin-top:0cm; 	margin-right:0cm; 	margin-bottom:0cm; 	margin-left:36.0pt; 	margin-bottom:.0001pt; 	mso-add-space:auto; 	text-align:justify; 	text-indent:17.0pt; 	line-height:150%; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;,&quot;serif&quot;; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-ansi-language:ES; 	mso-fareast-language:EN-US;} p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-type:export-only; 	margin-top:0cm; 	margin-right:0cm; 	margin-bottom:0cm; 	margin-left:36.0pt; 	margin-bottom:.0001pt; 	mso-add-space:auto; 	text-align:justify; 	text-indent:17.0pt; 	line-height:150%; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;,&quot;serif&quot;; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-ansi-language:ES; 	mso-fareast-language:EN-US;} p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-type:export-only; 	margin-top:0cm; 	margin-right:0cm; 	margin-bottom:0cm; 	margin-left:36.0pt; 	margin-bottom:.0001pt; 	mso-add-space:auto; 	text-align:justify; 	text-indent:17.0pt; 	line-height:150%; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;,&quot;serif&quot;; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-ansi-language:ES; 	mso-fareast-language:EN-US;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	font-size:12.0pt; 	mso-ansi-font-size:12.0pt; 	mso-bidi-font-size:12.0pt; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-fareast-language:EN-US;} .MsoPapDefault 	{mso-style-type:export-only; 	text-align:justify; 	text-indent:17.0pt; 	line-height:150%;} @page Section1 	{size:612.0pt 792.0pt; 	margin:3.0cm 3.0cm 3.0cm 4.0cm; 	mso-header-margin:35.45pt; 	mso-footer-margin:35.45pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1241599655; 	mso-list-type:hybrid; 	mso-list-template-ids:1485895822 537526287 537526297 537526299 537526287 537526297 537526299 537526287 537526297 537526299;} @list l0:level1 	{mso-level-tab-stop:none; 	mso-level-number-position:left; 	margin-left:18.0pt; 	text-indent:-18.0pt;} ol 	{margin-bottom:0cm;} ul 	{margin-bottom:0cm;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:&quot;Tabla normal&quot;; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:&quot;&quot;; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	text-align:justify; 	text-indent:17.0pt; 	line-height:150%; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;,&quot;serif&quot;; 	mso-fareast-language:EN-US;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;Saludos;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;Acá les dejo seis ejercicios prácticos evaluados, de los cuales deben resolver sólo cuatro.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;1.    Diseña la clase Circulo representado por el radio r con dos método que calculan   su perímetro y su área. Implemente la clase junto con sus métodos en una aplicación funcional para obtener dichos valores.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;2.    Diseñe un calculadora básica la cual tiene como atributos dos operadores x e y de tipo float y como métodos las operaciones matemáticas básicas; suma, resta, multiplicación y división. Implemente la clase junto con sus métodos en un programa funcional para obtener dichos resultados.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;3.    Desarrolle una clase Fecha representado por el atributo día, el cual es un dato de tipo long y es introducido en el formato AAAA-MM-DD, por ejemplo 31 de diciembre sería 20101231, implemente los métodos para determinar el número de días transcurridos desde el día 1 de enero de ese año, cuál es el día anterior, cuál es el día siguiente.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;4.    Realizar una aplicación para gestionar cierta información de los empleados de una empresa. El diseño de la aplicación estará formado por dos clases: la clase empleado y la clase empleadoPorHoras  (que hereda de empleado), junto con un programa principal que llama a las operaciones públicas de ambas clases. La Clase empleado: contiene como datos privados el nombre del empleado y su número de CI. Además, sus métodos públicos son: un constructor de la clase, dos operaciones obtenedoras (GetNombre y GetCI), y una operación destructora de la clase. La  Clase empleadoPorHoras: contiene como datos privados el costo por hora de un empleado y el número de horas trabajadas durante la semana. Además, dispone de los siguientes métodos públicos: un constructor de la clase (que requiere de su clase base el nombre y la CI del empleado) y una operación llamada DevuelvePago (que calcula el pago del empleado multiplicando su costo por hora por el número de horas trabajadas en la semana).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;5.    Crear una clase base abstracta Vehículo que contenga una función virtual para mostrar los atributos de un objeto  en  pantalla    y  dos  clases  derivadas  que  deberán  concretar  la  clase  anterior:  vehiculo_de_tierra  y vehiculo_de_aire. La clase base definirá dos atributos: costo y año del vehículo y dos funciones para obtener sus valores. Las clases derivadas vehiculo_de_tierra y vehiculo_de_aire contienen los atributos kilometraje y horas  de  vuelo  respectivamente.  Además  deberán  ofrecer  funciones  para  obtener  y  establecer  esos atributos. Escriba una aplicación funcional que cree objetos de las clases derivadas y un apuntador de clase base que haga uso de la función virtual que se ha concretado en cada una de las clases derivadas.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;6.    Dada una clase llamada Figuras que tiene dos atributos, identificador que es un arreglo de char de 25 caracteres y area de tipo float. La clase Figuras implementa dos métodos virtuales Calcular_Area(), e Identificar(). Defina dos clases derivadas; Rectangulo y Triangulo donde son redefinidos estos métodos y calculan los valores correspondientes. A continuación la implementación de la clase Figuras:&lt;br /&gt;class Figuras{&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;      protected:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;                char  identificar[25];&lt;br /&gt;          float area;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;      public:&lt;br /&gt;          // Definiendo las funciones virtuales en la clase base&lt;br /&gt;          virtual void Calcular_Area();&lt;br /&gt;          virtual void Identificar();&lt;br /&gt;};&lt;br /&gt;// Cuando se definen las funciones no es necesario utilizar virtual&lt;br /&gt;void Figuras::Calcular_Area(){&lt;br /&gt;}&lt;br /&gt;void Figuras::Identificar(){&lt;br /&gt;          cout &lt;&lt; &quot;Nombre Figura:&quot; &lt;&lt; identificar &lt;&lt; endl;            cout &lt;&lt; &quot;El Area es:&quot; &lt;&lt; area &lt;&lt; endl;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 18pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;&quot; lang=&quot;ES&quot;&gt;&lt;span style=&quot;&quot;&gt;       }  &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  </content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/2192754394519497390/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/07/ejercicios-practicos-propuestos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/2192754394519497390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/2192754394519497390'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/07/ejercicios-practicos-propuestos.html' title='Ejercicios prácticos propuestos'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-3097380158723365696</id><published>2010-06-25T08:18:00.003-04:30</published><updated>2010-06-25T08:27:34.376-04:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C/C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Configurar"/><category scheme="http://www.blogger.com/atom/ns#" term="MinGW"/><category scheme="http://www.blogger.com/atom/ns#" term="Netbeans"/><title type='text'>Configurar el NetBeans IDE para C/C++ / Fortran</title><content type='html'>Saludos estudiantes, seguidores y seguidoras;&lt;br /&gt;&lt;br /&gt;Acá les dejo una guia tomada y traducida de la página de &lt;a href=&quot;http://netbeans.org/community/releases/68/cpp-setup-instructions.html&quot;&gt;netbeans.org&lt;/a&gt; en la cual les explica como configurar el netbeans para C/C++ con MinGW.&lt;br /&gt;&lt;br /&gt;Deseo realmente les sirva este material. Pues sin más preambulo aqui el enlace a la guia traducida:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.scribd.com/doc/33457512/Configurar-El-NetBeans-IDE-Para-C-C-Fortran&quot;&gt;http://www.scribd.com/doc/33457512/Configurar-El-NetBeans-IDE-Para-C-C-Fortran&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Aprovechen al máximo y no olviden de dejar sus comentarios</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/3097380158723365696/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/06/configurar-el-netbeans-ide-para-cc.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/3097380158723365696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/3097380158723365696'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/06/configurar-el-netbeans-ide-para-cc.html' title='Configurar el NetBeans IDE para C/C++ / Fortran'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-375597028579917619</id><published>2010-06-22T11:42:00.004-04:30</published><updated>2010-06-27T10:00:28.809-04:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Proyecto Padigma Programación"/><title type='text'>Proyecto de Paradigma de Programación</title><content type='html'>Saludos estimados estudiantes;&lt;br /&gt;&lt;br /&gt;Acá les dejo el enlace al enunciado del Proyecto de Paradigma de programación&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.scribd.com/doc/33416800/Enunciado-Proyecto-Paradigma-Programacion&quot;&gt;http://www.scribd.com/doc/33416800/Enunciado-Proyecto-Paradigma-Programacion&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Así que desde ya a ponerle muchas ganas y empeño.&lt;br /&gt;&lt;br /&gt;Por favor no olviden de dejar sus comentarios, éstos son importantes para el crecimiento de este blog, su blog!!!!</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/375597028579917619/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/06/saludos-estimados-estudiantes-aca-les.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/375597028579917619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/375597028579917619'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/06/saludos-estimados-estudiantes-aca-les.html' title='Proyecto de Paradigma de Programación'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-2409624062671501871</id><published>2010-06-18T12:31:00.003-04:30</published><updated>2010-06-22T07:38:10.054-04:30</updated><title type='text'>Curso de CPP</title><content type='html'>Saludos estudiantes y seguidores. aca les dejo un enlace donde pueden bajar un curso de CPP&lt;br /&gt;tomado de &lt;a href=&quot;http://www.conclase.net/&quot;&gt;http://www.conclase.net&lt;/a&gt;&lt;br /&gt;y elaborado por Salvador Pozo Coronado&lt;br /&gt;&lt;br /&gt;aprovechenlo al máximo&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.slideshare.net/comodoro/mediatom-nissimcursocpp&quot;&gt;http://www.slideshare.net/comodoro/mediatom-nissimcursocpp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.scribd.com/doc/33242753/cursocpp&quot;&gt;http://www.scribd.com/doc/33242753/cursocp&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/2409624062671501871/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/06/curso-de-cpp.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/2409624062671501871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/2409624062671501871'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/06/curso-de-cpp.html' title='Curso de CPP'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-346724852509128031</id><published>2010-06-12T09:17:00.000-04:30</published><updated>2010-06-12T09:21:09.648-04:30</updated><title type='text'>Ejercicios prácticos propuestos</title><content type='html'>Paradigmas de la Programación&lt;br /&gt;Ing. Tom Zambrano&lt;br /&gt;A continuación se proponen tres ejercicios, de los cuales debe resolver dos. Los mismos deben ser entregados en formato físico y digital. Valor diez (10) puntos.&lt;br /&gt;1. Construya una clase llamada Rectángulo que tenga miembros de datos en número de precisión doble llamados largo y ancho. La clase deberá tener una función miembro llamada perimetro() y area() para calcular el perímetro y el área de un rectángulo, una función miembro llamada setDatos() para establecer el largo y el ancho de los rectángulos y una función miembro llamada getDatos() que despliega el largo, ancho, perímetro y área de un rectángulo, así como el constructor correspondiente. Incluya la clase en un programa C++ funcional.&lt;br /&gt;&lt;br /&gt;2. Construya una clase llamada Tiempo que tenga miembro de datos en número entero llamados segundos, minutos y horas. Construya la sección de implementación de clase para el constructor y los miembros de la funciones setTiempo() y getTiempo() correspondientes a la declaración. Incluya la clase en un programa C++ funcional.&lt;br /&gt;&lt;br /&gt;3. Agregue una función miembro a la definición de clase Fecha que determine el día de la semana para cualquier objeto fecha. Emplee un algoritmo que se ajuste a la necesidad. Incorpore la definición de clase en un programa C++ funcional. La función main() deberá desplegar el nombre del día de la semana (Sab, Dom, Lun, Mar, etc.) para el objeto fecha que se esté probando.</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/346724852509128031/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/06/ejercicios-practicos-propuestos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/346724852509128031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/346724852509128031'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/06/ejercicios-practicos-propuestos.html' title='Ejercicios prácticos propuestos'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-3097598693195620434</id><published>2010-06-04T06:56:00.004-04:30</published><updated>2010-07-21T10:10:30.780-04:30</updated><title type='text'>esperar pulsado de tecla en C</title><content type='html'>Saludos seguidores;&lt;br /&gt;&lt;br /&gt;éste es un artículo enviado por Leonardo Mosquera de una lista de correo de programación (Programacion@listas.fi.uba.ar) el cual se tomo textualmente y respetando los creditos, deseo les sirva de ayuda a ustedes programadores:&lt;br /&gt;&lt;br /&gt;On 9/11/07, Andorogynus ! &lt;[EMAIL PROTECTED]&gt; wrote:&lt;br /&gt;&gt;&lt;br /&gt;&gt; Como puedo hacer en C para simular un INKEY$ (que viejo !)&lt;br /&gt;&gt; Es decir, efectuar una pausa hasta que el tipo presione una tecla.&lt;br /&gt;&gt;&lt;br /&gt;&gt; Probe con getchar() pero no me permite abortar (Ctrl-C) el programa.&lt;br /&gt;&gt;&lt;br /&gt;&lt;br /&gt;A continuacion te adjunto una contribucion que hizo alguien a la lista de mi&lt;br /&gt;universidad una vez. Podes recortar todo lo que no sea getch() y su soporte.&lt;br /&gt;Tene en cuenta la licencia, o al menos no copies/pegues sino que&lt;br /&gt;&quot;inspirate&quot;.&lt;br /&gt;&lt;br /&gt;Nota: tradicionalmente se usa ncurses para eso que queres hacer, pero yo&lt;br /&gt;mismo ya conclui que ncurses es demasiado armatoste si simplemente queres&lt;br /&gt;pausar el programa por la duracion de exactamente 1 tecla.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;/* +++++++++++  conio.h de Porland (versión trucha del Borland  :-)&lt;br /&gt;+++++++++++&lt;br /&gt; *&lt;br /&gt; * Autor: Omar Murray (Crux_)             Versión: 0.0.2&lt;br /&gt; * Licencia: GPL                Fecha: 05/06/07&lt;br /&gt; *&lt;br /&gt; * Esto intenta ser una recopilación de las funciones más utilizadas en&lt;br /&gt; * la librería &lt;conio.h&gt; de Borland para poder generar código y compilar&lt;br /&gt; * utilizando gcc en GNU/Linux, y luego poder correrlo en un entorno&lt;br /&gt; * Borland sin necesidad de modificar el código escrito. Mayormente son&lt;br /&gt;trozos&lt;br /&gt; * de código obtenido de inet y recopilados en una sola librería. La&lt;br /&gt;idea es&lt;br /&gt; * utilizarlo para fines educativos; está en absoluto estado alfa, así&lt;br /&gt;que su&lt;br /&gt; * uso queda a riesgo de quien lo utilice.&lt;br /&gt; *&lt;br /&gt; * CHANGELOG&lt;br /&gt; * v 0.0.1    Se implemente funciones getch() y clrscr().&lt;br /&gt; * v 0.0.2    se agrega función gotoxy(), se ordena código.*/&lt;br /&gt;&lt;br /&gt;#include &lt; stdio.h &gt;&lt;br /&gt;#include &lt; termios.h &gt;&lt;br /&gt;#include &lt; unistd.h &gt;&lt;br /&gt;#include &lt; stdlib.h &gt;&lt;br /&gt;#include &lt; string.h &gt;&lt;br /&gt;&lt;br /&gt;//******************FUNCION GETCH****************************&lt;br /&gt;int getch( ) {&lt;br /&gt; struct termios oldt,&lt;br /&gt;                newt;&lt;br /&gt; int            ch;&lt;br /&gt; tcgetattr( STDIN_FILENO, &amp;oldt );&lt;br /&gt; newt = oldt;&lt;br /&gt; newt.c_lflag &amp;= ~( ICANON | ECHO );&lt;br /&gt; tcsetattr( STDIN_FILENO, TCSANOW, &amp;newt );&lt;br /&gt; ch = getchar();&lt;br /&gt; tcsetattr( STDIN_FILENO, TCSANOW, &amp;oldt );&lt;br /&gt; return ch;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//******************FUNCION CLRSCR*****************************&lt;br /&gt;void clrscr( ) {&lt;br /&gt;system(&quot;clear&quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//**************** **FUNCION GOTOXY*****************************&lt;br /&gt;int gotoxy(int x, int y) {&lt;br /&gt;char essq[100]; // String variable to hold the escape sequence&lt;br /&gt;char xstr[100]; // Strings to hold the x and y coordinates&lt;br /&gt;char ystr[100]; // Escape sequences must be built with characters&lt;br /&gt;&lt;br /&gt;//   ** Convert the screen coordinates to strings&lt;br /&gt;sprintf(xstr, &quot;%d&quot;, x);&lt;br /&gt;sprintf(ystr, &quot;%d&quot;, y);&lt;br /&gt;&lt;br /&gt;//    ** Build the escape sequence (vertical move)&lt;br /&gt;essq[0] = &#39;\0&#39;;&lt;br /&gt;strcat(essq, &quot;\033[&quot;);&lt;br /&gt;strcat(essq, ystr);&lt;br /&gt;&lt;br /&gt;//     ** Described in man terminfo as vpa=\E[%p1%dd&lt;br /&gt;//     ** Vertical position absolute&lt;br /&gt;strcat(essq, &quot;d&quot;);&lt;br /&gt;&lt;br /&gt;//     ** Horizontal move&lt;br /&gt;//     ** Horizontal position absolute&lt;br /&gt;strcat(essq, &quot;\033[&quot;);&lt;br /&gt;strcat(essq, xstr);&lt;br /&gt;&lt;br /&gt;//     // Described in man terminfo as hpa=\E[%p1%dG&lt;br /&gt;strcat(essq, &quot;G&quot;);&lt;br /&gt;&lt;br /&gt;//      ** Execute the escape sequence&lt;br /&gt;//      ** This will move the cursor to x, y&lt;br /&gt;printf(&quot;%s&quot;, essq);&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;_______________________________________________&lt;br /&gt;Lista de correo Programacion.&lt;br /&gt;Programacion@listas.fi.uba.ar&lt;br /&gt;http://listas.fi.uba.ar/mailman/listinfo/programacion</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/3097598693195620434/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/06/esperar-pulsado-de-tecla-en-c.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/3097598693195620434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/3097598693195620434'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/06/esperar-pulsado-de-tecla-en-c.html' title='esperar pulsado de tecla en C'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-7425817107471273279</id><published>2010-05-12T10:29:00.002-04:30</published><updated>2010-05-12T10:33:26.485-04:30</updated><title type='text'>Cómo calcular el valor de una resistencia?</title><content type='html'>Saludos amigos y seguidores;&lt;br /&gt;&lt;br /&gt;me preguntaban unos estudiantes como calcular la resistencia según su codificación de colores, aca les dejo un sencillo programa de como se hace:&lt;br /&gt; &lt;a href=&quot;http://www.scribd.com/doc/31258442&quot;&gt;&lt;br /&gt;http://www.scribd.com/doc/31258442&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Deseo les sirva de utilidad y que los pueda ayudar....</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/7425817107471273279/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/05/como-calcular-el-valor-de-una.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/7425817107471273279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/7425817107471273279'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/05/como-calcular-el-valor-de-una.html' title='Cómo calcular el valor de una resistencia?'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-3673996579734315231</id><published>2010-04-09T10:42:00.002-04:30</published><updated>2010-04-09T10:49:39.407-04:30</updated><title type='text'>La solución esta a un click de distancia!!!</title><content type='html'>saludos estimados estudiantes y seguidores;&lt;br /&gt;&lt;br /&gt;Hacia tiempo no dejaba algún post, ya hasta me estaban preguntado el por qué?&lt;br /&gt;pero bueno, la respuesta algunos la conocen!!!!&lt;br /&gt;&lt;br /&gt;Sin emabargo, retomaremos este espacio nuevamente para crear un sitio de discución y de construcción de conocimiento&lt;br /&gt;&lt;br /&gt;porque recuerden que &lt;a href=&quot;http://www.scribd.com/doc/29604969&quot;&gt;la solución esta a un click de distancia&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/3673996579734315231/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/04/la-solucion-esta-un-click-de-distancia.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/3673996579734315231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/3673996579734315231'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/04/la-solucion-esta-un-click-de-distancia.html' title='La solución esta a un click de distancia!!!'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-6951724288866172832</id><published>2010-01-28T12:19:00.001-04:30</published><updated>2010-01-28T12:23:30.302-04:30</updated><title type='text'>Codigo Fuente de Lista Simple Con Cabecera</title><content type='html'>&lt;meta equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 12&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 12&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CUsers%5CTOMZAM%7E1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml&quot;&gt;&lt;link rel=&quot;themeData&quot; href=&quot;file:///C:%5CUsers%5CTOMZAM%7E1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx&quot;&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:hyphenationzone&gt;21&lt;/w:HyphenationZone&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;ES-VE&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val=&quot;Cambria Math&quot;&gt;    &lt;m:brkbin val=&quot;before&quot;&gt;    &lt;m:brkbinsub val=&quot;--&quot;&gt;    &lt;m:smallfrac val=&quot;off&quot;&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val=&quot;0&quot;&gt;    &lt;m:rmargin val=&quot;0&quot;&gt;    &lt;m:defjc val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent val=&quot;1440&quot;&gt;    &lt;m:intlim val=&quot;subSup&quot;&gt;    &lt;m:narylim val=&quot;undOvr&quot;&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate=&quot;false&quot; defunhidewhenused=&quot;true&quot; defsemihidden=&quot;true&quot; defqformat=&quot;false&quot; defpriority=&quot;99&quot; latentstylecount=&quot;267&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;0&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Normal&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;heading 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 7&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 8&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;9&quot; qformat=&quot;true&quot; name=&quot;heading 9&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 7&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 8&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; name=&quot;toc 9&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;35&quot; qformat=&quot;true&quot; name=&quot;caption&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;10&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Title&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;1&quot; name=&quot;Default Paragraph Font&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;11&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Subtitle&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;22&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Strong&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;20&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Emphasis&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;59&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Table Grid&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Placeholder Text&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;1&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;No Spacing&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Revision&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;34&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;List Paragraph&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;29&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Quote&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;30&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Intense Quote&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 1&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 2&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 3&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 4&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 5&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;60&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Shading Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;61&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light List Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;62&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Light Grid Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;63&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 1 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;64&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Shading 2 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;65&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 1 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;66&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium List 2 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;67&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 1 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;68&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 2 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;69&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Medium Grid 3 Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;70&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Dark List Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;71&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Shading Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;72&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful List Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;73&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; name=&quot;Colorful Grid Accent 6&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;19&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Subtle Emphasis&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;21&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Intense Emphasis&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;31&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Subtle Reference&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;32&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Intense Reference&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;33&quot; semihidden=&quot;false&quot; unhidewhenused=&quot;false&quot; qformat=&quot;true&quot; name=&quot;Book Title&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;37&quot; name=&quot;Bibliography&quot;&gt;   &lt;w:lsdexception locked=&quot;false&quot; priority=&quot;39&quot; qformat=&quot;true&quot; name=&quot;TOC Heading&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:&quot;Cambria Math&quot;; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:&quot;&quot;; 	margin:0cm; 	margin-bottom:.0001pt; 	text-align:justify; 	text-indent:17.0pt; 	line-height:150%; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;,&quot;serif&quot;; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-ansi-language:ES; 	mso-fareast-language:EN-US;} p.MsoFooter, li.MsoFooter, div.MsoFooter 	{mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-link:&quot;Pie de página Car&quot;; 	margin:0cm; 	margin-bottom:.0001pt; 	text-align:justify; 	text-indent:17.0pt; 	mso-pagination:widow-orphan; 	tab-stops:center 220.95pt right 441.9pt; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;,&quot;serif&quot;; 	mso-fareast-font-family:Calibri; 	mso-ansi-language:ES; 	mso-fareast-language:EN-US; 	mso-bidi-font-weight:bold;} span.PiedepginaCar 	{mso-style-name:&quot;Pie de página Car&quot;; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-unhide:no; 	mso-style-locked:yes; 	mso-style-link:&quot;Pie de página&quot;; 	font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; 	mso-fareast-font-family:Calibri; 	mso-ansi-language:ES; 	mso-bidi-font-weight:bold;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	font-size:12.0pt; 	mso-ansi-font-size:12.0pt; 	mso-bidi-font-size:12.0pt; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-fareast-language:EN-US;} .MsoPapDefault 	{mso-style-type:export-only; 	text-align:justify; 	text-indent:17.0pt; 	line-height:150%;} @page Section1 	{size:612.0pt 792.0pt; 	margin:36.0pt 36.0pt 36.0pt 36.0pt; 	mso-header-margin:35.45pt; 	mso-footer-margin:35.45pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:&quot;Tabla normal&quot;; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:&quot;&quot;; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	text-align:justify; 	text-indent:17.0pt; 	line-height:150%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:&quot;Times New Roman&quot;; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:&quot;Times New Roman&quot;; 	mso-bidi-theme-font:minor-bidi;} &lt;/style&gt; &lt;![endif]--&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10pt;&quot;   lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;Tipo Lista Con Cabecera&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***********************************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Ejemplo de programa para manejar una: */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* LISTA SIMPLEMENTE ENLAZADA CON CABECERA, */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* como Estructura de Datos Dinámica (con punteros). */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Incluye: Primitivas de la lista y programa de prueba. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Todo en el mismo fichero. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;#include&lt;stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;#include&lt;stdlib.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;#include&lt;conio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/*Declaración del tipo base de la lista*/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;struct element {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;long num;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;};&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Tipos de la lista: */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Tipo de cada celda de la lista */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;struct celda{ &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;struct element elem;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;struct celda *sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;};&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Tipo lista: Puntero a celda */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;typedef struct celda *lista; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Inicializa una lista simplemente enlazada y CON cabecera. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Devuelve -1 en caso de ERROR. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;int Inicializar_lista(lista *list){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (((*list)=(struct celda *) malloc(sizeof(struct celda))) == NULL)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;(*list)-&gt;sig=NULL;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/*Devuelve TRUE si la lista está vacía.*/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;int Lista_vacia(lista list){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (list-&gt;sig) return 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Inserta el elemento e en la posición pos de la lista ant. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Si pos&lt;=1 inserta en la primera posición. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Si pos&gt;longitud_lista, inserta en la última posición. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Devuelve -1 si no hay memoria suficiente para la inserción. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;int Insertar_pos (lista ant, struct element e, long pos){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;lista p, L=ant-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;long i=1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if ((p=(struct celda *) malloc(sizeof(struct celda))) == NULL)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;p-&gt;elem=e;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (L &amp;amp;&amp;amp; i&lt;pos){&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;ant=L;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;L=L-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;ant-&gt;sig=p; /* Insertar elemento apuntado por p, entre anterior y L */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;p-&gt;sig=L;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Inserta el elemento e en la lista ant ordenadamente por */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* el campo elem.num */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Devuelve -1 si no hay memoria suficiente para la inserción. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;int Insertar_orden (lista ant, struct element e){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;lista p, L=ant-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;unsigned i=1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if ((p=(struct celda *) malloc(sizeof(struct celda))) == NULL)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;p-&gt;elem=e;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (L &amp;amp;&amp;amp; e.num&gt;L-&gt;elem.num){ /* Hallar posición en la que insertar */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;ant=L;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;L=L-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;ant-&gt;sig=p; /* Insertar elemento apuntado por p, entre anterior y L */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;p-&gt;sig=L;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Borra el elemento en la posición pos de la lista ant. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Si la pos=1 borra el primer elemento. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Devuelve -1 si no existe la posición: */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* pila vacía, pos&lt;1&gt;long */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;int Borrar_elemento(lista ant, long pos){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;lista aux, L=ant-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;long i=1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (Lista_vacia(ant) || pos&lt;1)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return -1; /* Posición NO válida */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (L &amp;amp;&amp;amp; i&lt;pos){&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;ant=L;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;L=L-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (L){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Borrar elemento apuntado por L, teniendo un puntero al anterior */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;ant-&gt;sig=L-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;free(L);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return -1; /* La lista tiene menos de pos elementos */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Devuelve la longitud de la lista list (núm. de elementos). */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;long Long_lista(lista list){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;long i=0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;list=list-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (list) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;list=list-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return i;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Vacía la lista totalmente, dejándola inicializada. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Tras esta operación NO es necesario inicializarla. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;void Vaciar_lista(lista list){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (Borrar_elemento (list,1) != -1);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Destruye la lista totalmente, liberando toda la memoria. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Tras esto ES necesario Inicializar la lista para reusarla. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;void Destruir_lista(lista *list){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;Vaciar_lista(*list);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;free(*list); /* Liberar la cabecera */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;*list=NULL;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Devuelve en e, el elemento que está en la posición pos */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* de la lista list. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Si no existe esa posición, devuelve -1. En otro caso 0. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;int Leer_element (lista list, long pos, struct element *e){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;long i=1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (Lista_vacia(list) || pos&lt;1)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;list=list-&gt;sig; /* Nos saltamos la cabecera */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (list &amp;amp;&amp;amp; i&lt;pos)&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;list=list-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (list){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;*e=list-&gt;elem;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/*************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Devuelve la posición de la primera ocurrencia del elemento */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* e en la lista list, a partir de la posición pos (inclusive).*/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Esta ocurrencia será considerada por el campo elem.num */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Devuelve 0 si no ha sido encontrada. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Con esta función, cambiando pos, podremos encontrar TODAS */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* las ocurrencias de un elemento en la lista. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;long Posic_lista(lista list, struct element e, long pos){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;long i=1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;list=list-&gt;sig; /* Saltar cabecera */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (list &amp;amp;&amp;amp; i&lt;pos)&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;list=list-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (!list) return 0; /* No existe posición pos, luego... */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (list &amp;amp;&amp;amp; e.num!=list-&gt;elem.num) { /* Intentar encontrar el&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;elemento */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;list=list-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (!list) return 0; /* No encontrado */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return i; /* Encontrado en la posición i */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Actualiza la posición pos de la lista list con el elemento e*/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Devuelve -1 si no existe esa posición. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;int Actualiza_lista(lista list, struct element e, long pos){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;long i=1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (Lista_vacia(list) || pos&lt;1)&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;list=list-&gt;sig; /* Saltar cabecera */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (list &amp;amp;&amp;amp; i&lt;pos)&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;list=list-&gt;sig;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (!list) return -1; /* Posición no existe */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;list-&gt;elem=e; /* Actualización */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* FIN de las PRIMITIVAS de la LISTA SIMPLEMENTE ENLAZADA CON CABECERA */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Imprime un elemento e por la Salida estándar. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;void Imprimir_elemento (struct element e){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;printf(&quot;%li&quot;,e.num);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Muestra todos los elementos de la lista list por su orden. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;void mostrar_lista(lista list){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;struct element e;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;unsigned i=1,tama=Long_lista(list);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (i&lt;=tama) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;printf(&quot;\nElemento %u: &quot;,i);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;Leer_element(list,i++,&amp;amp;e);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;Imprimir_elemento(e);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/* Muestra un menu de opciones. */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;void menu(void){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\n\t\t***** MENU *****\n&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\tS. Destruir lista y SALIR.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\t1. Inicializar lista.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\t2. Insertar por orden.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\t3. Insertar por posición.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\t4. Mostrar lista.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\t5. Borrar elemento.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\t6. Longitud lista&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\t7. Ver si está vacía.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\t8. Ver elemento n-ésimo.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\t9. Posición de un elemento a partir de una dada.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\t0. Modificar un elemento en una posición.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;printf(&quot;\n\tOpcion: &quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;/***************************************/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;void main(){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;lista list;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;struct element e;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;char opcion=&#39;x&#39;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;long pos;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;Inicializar_lista(&amp;amp;list);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;while (opcion!=&#39;S&#39; &amp;amp;&amp;amp; opcion!=&#39;s&#39;){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;menu();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;opcion=getche();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;switch (opcion) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;s&#39;:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;S&#39;:Destruir_lista(&amp;amp;list);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;1&#39;:Vaciar_lista(list);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;2&#39;:printf(&quot;\nDame número: &quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;scanf(&quot;%li&quot;,&amp;amp;(e.num));&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (Insertar_orden(list,e))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\n\aERROR: No existe memoria suficiente.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;3&#39;:printf(&quot;\nDame número: &quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;scanf(&quot;%li&quot;,&amp;amp;(e.num));&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;printf(&quot;\nDame la posición: &quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;scanf(&quot;%li&quot;,&amp;amp;pos);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (Insertar_pos(list,e,pos))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\n\aERROR: No existe memoria suficiente.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;4&#39;:printf(&quot;\n----------------&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;mostrar_lista(list);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\n----------------&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;5&#39;:printf(&quot;\nDame posición a borrar: &quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;scanf(&quot;%li&quot;,&amp;amp;pos);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (Borrar_elemento(list,pos))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\n\aERROR: No existe esa posición.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;6&#39;:printf(&quot;\n- Longitud: %u.&quot;,Long_lista(list));&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;7&#39;:if (Lista_vacia(list))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\n- Lista VACIA.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;else puts(&quot;\n- Lista NO VACIA.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;8&#39;:printf(&quot;\nDame posición a leer: &quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;scanf(&quot;%li&quot;,&amp;amp;pos);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (Leer_element(list,pos,&amp;amp;e))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\n\aERROR: No existe esa posición.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;printf(&quot;\n- Elemento %li: %li.\n&quot;,pos,e.num);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;9&#39;:printf(&quot;\nDame número para buscar su posición: &quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;scanf(&quot;%li&quot;,&amp;amp;(e.num));&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;printf(&quot;\nDame la posición a partir de la que buscar: &quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;scanf(&quot;%li&quot;,&amp;amp;pos);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (!(pos=Posic_lista(list,e,pos)))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;&quot;\n\aERROR: No existe ese elemento a partir de esa posición.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;printf(&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;&quot;\n-La primera posición encontrada de ese elemento es: %i&quot;,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;pos);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;case &#39;0&#39;:printf(&quot;\nDame número para actualizar: &quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;scanf(&quot;%li&quot;,&amp;amp;(e.num));&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;printf(&quot;\nDame la posición a modificar: &quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;scanf(&quot;%li&quot;,&amp;amp;pos);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;if (Actualiza_lista(list,e,pos))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\n\aERROR: No existe esa posición. No se ha&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;modificado.&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;puts(&quot;\n\t***** FIN *****&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10pt;&quot;  &gt;&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10pt;&quot;  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/6951724288866172832/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/01/codigo-fuente-de-lista-simple-con.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/6951724288866172832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/6951724288866172832'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/01/codigo-fuente-de-lista-simple-con.html' title='Codigo Fuente de Lista Simple Con Cabecera'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-6362492849756713318</id><published>2010-01-28T11:24:00.005-04:30</published><updated>2010-01-28T12:18:17.842-04:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dinámicas"/><category scheme="http://www.blogger.com/atom/ns#" term="Dobles"/><category scheme="http://www.blogger.com/atom/ns#" term="Estructuras"/><category scheme="http://www.blogger.com/atom/ns#" term="Listas"/><category scheme="http://www.blogger.com/atom/ns#" term="Simples"/><title type='text'>Estructuras de Datos Dinámicas</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;Son aquellas cuyo tamaño (longitud, número de elementos...) varía en tiempo de ejecución. Las más famosas son: Listas simplemente enlazadas (con y sin cabecera), Listas doblemente enlazadas (con y sin cabecera)&lt;/span&gt;, Pilas, Colas, Árboles y Grafos.&lt;br /&gt;&lt;div style=&quot;text-align: justify; font-family: arial;&quot;&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: bold;font-size:130%;&quot; &gt;Las Listas&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;Las listas son estructuras de datos que &lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;son dinámicas,&lt;/span&gt; &lt;span style=&quot;font-size:130%;&quot;&gt;esto significa que adquieren espacio y liberan espacio a medida que se&lt;/span&gt; &lt;span style=&quot;font-size:130%;&quot;&gt;necesita. sin embargo, hay una advertencia. Como regla general siempre hay&lt;/span&gt; &lt;span style=&quot;font-size:130%;&quot;&gt;que tener cuidado al manejar direcciones de espacios de memoria, porque es&lt;/span&gt; &lt;span style=&quot;font-size:130%;&quot;&gt;posible que accedamos a una localidad de memoria de la cual no deseabamos&lt;/span&gt; &lt;span style=&quot;font-size:130%;&quot;&gt;cambiar su contenido.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;Las listas son estructuras de datos que son dinámicas,&lt;/span&gt; &lt;span style=&quot;font-size:130%;&quot;&gt;esto significa que adquieren espacio y liberan espacio a medida que &lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;se&lt;/span&gt; &lt;span style=&quot;font-size:130%;&quot;&gt;necesita. sin embargo, hay una advertencia. Como regla general siempre hay&lt;/span&gt; &lt;span style=&quot;font-size:130%;&quot;&gt;que tener cuidado al manejar direcciones de espacios de memoria, porque es&lt;/span&gt; &lt;span style=&quot;font-size:130%;&quot;&gt;posible que accedamos a una localidad de memoria de la cual no deseabamos&lt;/span&gt; &lt;span style=&quot;font-size:130%;&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;ambiar su contenido.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;Una lista es un conjunto de nodos que están relacionados. Cada nodo consta de dos partes:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;- una donde se almacena la información,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;- otra donde se guarda una referencia al s&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;iguiente n&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;odo.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;La creación de los nodos es dinámica, es decir, se crean nodos (por tanto se reserva memoria para ellos) según se van necesitando. Estos nodos finalmente estarán relacionados por un puntero que los enlaza. Ventaja: como creamos los nodos según los necesitamos, no necesitamos saber a p&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;riori&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt; la cantidad de datos que se van a manejar.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Sintaxis de un nodo: &lt;/span&gt;&lt;br /&gt;Un nodo es una estructura donde se almacena la información y que además tiene una referencia al siguiente nodo:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;struct nodo&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;{&lt;br /&gt;  struct nombre_estructura información;&lt;br /&gt;  struct nodo *siguiente;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;br /&gt;Si cada nodo tiene sólo una referencia al nodo siguiente, se dice que la lista está enlazada de forma simple. Si cada nodo tiene dos referencias, una al nodo siguiente y otra al nodo anterior, se dice que la lista está doblemente enlazada.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;/*Lista simple*/ &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;br /&gt;está formado por nodos como el siguiente:&lt;br /&gt;struct nodo_articulo&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;    art info_articulo;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;    struct nodo_articulo *sig;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;/*Lista doble*/&lt;/span&gt;&lt;br /&gt;está formado por nodos como el siguiente:&lt;br /&gt;struct nodo_articulo&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;   art info_articulo;&lt;br /&gt; struct nodo_articulo *sig;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;    struct nodo_articulo *ant;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Lista Simple&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh211w1pq8EmrGHf_gtLBt31qcaxUJJ_mpjGA5k0s1PYK3Mqz7bEWg-PE16chIpoPyAVLnTIFzmC8GbnuApHIYaPhRiahNj6EhC8ke6nx_3UQJ3xYrGxYMsbv2bPVtpZS4GKvEzmAQEhrdP/s1600-h/lse.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 33px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh211w1pq8EmrGHf_gtLBt31qcaxUJJ_mpjGA5k0s1PYK3Mqz7bEWg-PE16chIpoPyAVLnTIFzmC8GbnuApHIYaPhRiahNj6EhC8ke6nx_3UQJ3xYrGxYMsbv2bPVtpZS4GKvEzmAQEhrdP/s320/lse.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5431823717640660450&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:130%;&quot; &gt;Lista doblemente enlazada&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRAK8KgrtpWlCGAPRIKOYwSTxS2HgBoR5N7kVrxHRbth4kNy_aTyjNKJali2bSmPYGhwHvaKoJbtuwu4UUUOONwF9nwMYTVMtHTOSkELWUf9Qy2cVSqQ3kfAFLuUg6OA31onxLb4z7AOn9/s1600-h/lde.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 62px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRAK8KgrtpWlCGAPRIKOYwSTxS2HgBoR5N7kVrxHRbth4kNy_aTyjNKJali2bSmPYGhwHvaKoJbtuwu4UUUOONwF9nwMYTVMtHTOSkELWUf9Qy2cVSqQ3kfAFLuUg6OA31onxLb4z7AOn9/s320/lde.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5431825056736671042&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;Además si el puntero del último elemento de la lista apunta al principio de la lista, se dice que la lista es circular. Cuando esto no ocurre, el puntero del último elemento de la lista debe tener el valor NULL. Est&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;e valor concreto representa que el puntero no está apuntando a ninguna dirección válida.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Lista Circular&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGomi_IW4sc4WOC8OSK8NXNWd2ZPnMay1tb0WjnRbSv9gGDGs4vEi33Yum92u2WeKqIQ54qqblmH-PN3rN7OjRzA_1DRK6Wt6fKpvC9yqQ0dYZ4mhmStSJ67MNzCln2S09aI0xGtnCTbvH/s1600-h/lc.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 86px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGomi_IW4sc4WOC8OSK8NXNWd2ZPnMay1tb0WjnRbSv9gGDGs4vEi33Yum92u2WeKqIQ54qqblmH-PN3rN7OjRzA_1DRK6Wt6fKpvC9yqQ0dYZ4mhmStSJ67MNzCln2S09aI0xGtnCTbvH/s320/lc.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5431826077901452578&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;Ejemplo: Supongamos que tenemos una aplicación para un registro de estudiantes. En este caso el ejemplo de nodo corresponde al estudiante que va a contener como subcampos la cédula, el nombre, el apellido, la edad y el. indice académico.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Definimos la estructura estudiante: &lt;/span&gt;&lt;br /&gt;struct &lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;estudiante&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;br /&gt;{&lt;br /&gt;    long cedula;&lt;br /&gt;    char *nombre;&lt;br /&gt;    char *apellido;&lt;br /&gt;    int edad;&lt;br /&gt;    float ia;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;/*Definición de nodo en una lista simple*/ &lt;/span&gt;&lt;br /&gt;struct nodo_estudiante&lt;br /&gt;{&lt;br /&gt;     struct estudiante info;&lt;br /&gt;     struct nodo_estudiante *sig;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; /*Definición de nodo en una lista doblemente enlazada*/&lt;/span&gt;&lt;br /&gt;struct nodo_estudiante&lt;br /&gt;{&lt;br /&gt;     struct estudiante info;&lt;br /&gt;     struct nodo_estudiante *sig;&lt;br /&gt;     struct nodo_estudiante *ant;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;Es importante tener siempre un puntero que referencie el principio de la lista, ya que si se pierde esa referencia se pierde el contenido de toda la lista.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/6362492849756713318/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/01/estructuras-de-datos-dinamicas.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/6362492849756713318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/6362492849756713318'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/01/estructuras-de-datos-dinamicas.html' title='Estructuras de Datos Dinámicas'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh211w1pq8EmrGHf_gtLBt31qcaxUJJ_mpjGA5k0s1PYK3Mqz7bEWg-PE16chIpoPyAVLnTIFzmC8GbnuApHIYaPhRiahNj6EhC8ke6nx_3UQJ3xYrGxYMsbv2bPVtpZS4GKvEzmAQEhrdP/s72-c/lse.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-6980320994523578626</id><published>2010-01-24T11:12:00.000-04:30</published><updated>2010-01-24T11:13:57.184-04:30</updated><title type='text'>Ejemplo para probar</title><content type='html'>#include &lt;stdio.h&gt;&lt;br /&gt;#include &lt;stdlib.h&gt;&lt;br /&gt;void main() {&lt;br /&gt;    int a, *b;&lt;br /&gt;    b = (int *) malloc(sizeof(int)); /* Reserva Mm para UN entero */&lt;br /&gt;    if (b == NULL)&lt;br /&gt;        printf(&quot;No hay memoria suficiente.&quot;);&lt;br /&gt;    else {&lt;br /&gt;        a=5;&lt;br /&gt;        *b=6;&lt;br /&gt;        printf(&quot;Dirección de a: %p. Valor de a: %d\n&quot;,&amp;amp;a, a);&lt;br /&gt;        printf(&quot;Dirección b: %p. valor al que apunta: %d\n&quot;,b, *b);&lt;br /&gt;        free(b); /* Importante: Liberar la memoria */&lt;br /&gt;    }&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/6980320994523578626/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/01/ejemplo-para-probar.html#comment-form' title='9 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/6980320994523578626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/6980320994523578626'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2010/01/ejemplo-para-probar.html' title='Ejemplo para probar'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-1427581541097752340</id><published>2009-11-05T14:05:00.003-04:30</published><updated>2009-11-05T15:56:13.372-04:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Recursividad"/><title type='text'>Recursividad</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;;font-family:arial;font-size:100%;&quot;  &gt;La recursividad es una técnica de programación importante. Se utiliza para realizar una llamada a una función desde la misma función.&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:arial;font-size:100%;&quot;  &gt;Se puede decir que  la recursividad es la forma en la cual se especifica un proceso basado en su propia definición. Siendo un poco más precisos, y para evitar el aparente círculo sin fin en esta definición:&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:arial;font-size:100%;&quot;  &gt;Un problema que pueda ser definido en función de su tamaño, sea este N, pueda ser dividido en instancias más pequeñas (menores que N) &lt;n)&gt;del mismo problema y se conozca la solución explícita a las instancias más simples, lo que se conoce como casos base ( o lo que llamo criterio de parada), se puede aplicar inducción sobre las llamadas más pequeñas y suponer que estas quedan resueltas.&lt;br /&gt;&lt;span style=&quot;;font-family:arial;font-size:100%;&quot;  &gt;&lt;span style=&quot;font-family:arial;&quot;&gt;La recursividad es un concepto importante en informática. Muchos algoritmos se pueden describir mejor en términos de recursividad.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Supongamos que P es un procedimiento que contiene una sentencia de Llamada a si mismo o una sentencia de Llamada a un segundo procedimiento que puede eventualmente llamar de vuelta al procedimiento original P. Entonces P se dice que es un procedimiento recursivo. Como el programa no ha de continuar ejecutandose indefinidamente, un procedimiento recursivo ha de tener las dos siguientes propiedades:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/n)&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol  style=&quot;text-align: justify;font-family:arial;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Debe existir un cierto criterio, llamado criterio base, por el que el procedimiento no se llama así mismo.&lt;/span&gt;&lt;/li&gt;&lt;li value=&quot;2&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Cada vez que el procedimiento se llame a si mismo(directa o indirectamente), debe estar mas cerca del criterio base.&lt;br /&gt;&lt;/span&gt;   &lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;;font-family:arial;font-size:100%;&quot;  &gt;Un procedimiento recursivo con estas dos propiedades se dice que esta bien definido.&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:arial;font-size:100%;&quot;  &gt;Análogamente, una función se dice que esta definida recursivamente si la definición de la función se refiere a si misma. De nuevo, para que la definición no sea circular, debe tener las dos siguientes propiedades:&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol  style=&quot;text-align: justify;font-family:arial;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Debe haber ciertos argumentos, llamados valores base, para los que la función no se refiera a si misma.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Cada vez que la función se refiera a si misma, el argumento de la función debe acercarse más al valor base.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;;font-family:arial;font-size:100%;&quot;  &gt;Una función recursiva con estas dos propiedades se dice también que esta bien definida. &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p  style=&quot;text-align: justify;font-family:arial;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;span style=&quot;font-weight: bold;&quot;&gt;Tipos.&lt;/span&gt;  &lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;  &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;  &lt;/div&gt;&lt;p  style=&quot;text-align: justify;font-family:arial;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt; Podemos distinguir dos tipos de recursividad:&lt;br /&gt;Directa: Cuando un subprograma se llama a si mismo una o mas veces directamente.&lt;br /&gt;Indirecta: Cuando se definen una serie de subprogramas usándose unos a otros.  &lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;  &lt;/div&gt;&lt;p  style=&quot;text-align: justify;font-family:arial;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;span style=&quot;font-weight: bold;&quot;&gt;Características.&lt;/span&gt;  &lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;  &lt;/div&gt;&lt;p  style=&quot;text-align: justify;font-family:arial;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt; Un algoritmo &lt;span class=&quot;search_hit&quot;&gt;recursivo&lt;/span&gt; consta de una parte recursiva, otra iterativa o no recursiva y una condición de terminación. La parte recursiva y la condición de terminación siempre existen. En cambio la parte no recursiva puede coincidir con la condición de terminación. Algo muy importante a tener en cuenta cuando se use la recursividad es que es necesario asegurarnos que llega un momento en que no hacemos más llamadas recursivas. Si no se cumple esta condición el programa no parará nunca. &lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;  &lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; Ventajas e inconvenientes&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;La principal ventaja es la simplicidad de comprensión y su gran potencia, favoreciendo la resolución de problemas de manera natural, sencilla y elegante; y facilidad para comprobar y convencerse de que la solución del problema es correcta.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;El inconveniente es la ineficiencia tanto en tiempo como en memoria, dado que para permitir su uso es necesario transformar el programa &lt;/span&gt;&lt;span class=&quot;search_hit&quot;  style=&quot;font-family:arial;&quot;&gt;recursivo&lt;/span&gt; en otro iterativo, que utiliza bucles y pilas para almacenar las variables.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Ejemplos&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;function&lt;/span&gt; factorial(n : &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;integer&lt;/span&gt;): &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;longint&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;begin &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;if&lt;/span&gt; n=0 &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;then&lt;/span&gt; factorial := &lt;span style=&quot;color: rgb(204, 102, 204);&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;(** Criterio base o condici¢n de parada **)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;else&lt;/span&gt; factorial := n*factorial(n-&lt;span style=&quot;color: rgb(204, 102, 204);&quot;&gt;1&lt;/span&gt;); &lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;(** simplificaci¢n del problema **&lt;/span&gt;)&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;end&lt;/span&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;/*Máximo comun divisor */&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;function MCD(m,n : integer): integer; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;begin &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;  if (m mod n)=0 then MCD := n (* Criterio base o condici¢n de parada **) &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;  else MCD := MCD(n, m mod n); (** simplificaci¢n del problema **) &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;end;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/1427581541097752340/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/11/recursividad.html#comment-form' title='6 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/1427581541097752340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/1427581541097752340'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/11/recursividad.html' title='Recursividad'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-2220353924226836643</id><published>2009-11-04T10:33:00.002-04:30</published><updated>2009-11-04T10:43:02.264-04:30</updated><title type='text'>Ejercicios de recuperación</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Para aquellos estudiantes que vienen con baja nota y desean recuperar, les propongo desarrollar uno y sólo uno de los dos ejercicios propuestos en la entrada anterior, especificamente el &lt;span style=&quot;font-weight: bold; color: rgb(51, 51, 153);&quot;&gt;número 13&lt;/span&gt; y &lt;span style=&quot;font-weight: bold; color: rgb(51, 51, 153);&quot;&gt;el número 16&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 51, 153);&quot;&gt;, &lt;/span&gt;ustedes deciden cual hacer.&lt;br /&gt;&lt;br /&gt;La entrega es estrictamente individual.&lt;br /&gt;Debe ser entregado impreso o a mano y documentado.&lt;br /&gt;Debe ser entregado para el dia 30/11/2009.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/2220353924226836643/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/11/ejercicios-de-recuperacion.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/2220353924226836643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/2220353924226836643'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/11/ejercicios-de-recuperacion.html' title='Ejercicios de recuperación'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-1181678094696135535</id><published>2009-10-28T11:16:00.009-04:30</published><updated>2009-11-04T10:33:39.614-04:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ejercicios de cadenas"/><title type='text'>Ejercicios sobre cadenas (string) turbo pascal</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Saludos acá les dejo varios ejercicios tipo examen para que los desarrollen, practiquen y tomen fortalezas, adelante muchachos les invito a que los hagan todos y cada uno de ellos&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;ol&gt;&lt;li&gt;Desarrolle una función que devuelva una cadena con un caracter repetido n veces.&lt;/li&gt;&lt;li&gt;Implemente una función que elimine los caracteres en blanco a la izquierda de una cadena y retorne esta sin los espacios en blanco a la izquierda.&lt;/li&gt;&lt;li&gt;Realice una función que elimine los caracteres en blanco a la derecha de una cadena y retorne ésta sin los blancos a la derecha.&lt;/li&gt;&lt;li&gt;Escriba una función que determine si una cadena esta vacia o no.&lt;/li&gt;&lt;li&gt;Desarrolle una función que elimine los espacios en blanco a ambos extremos de la cadena.&lt;/li&gt;&lt;li&gt;Implemente una función que devuelva una cadena invertida.&lt;/li&gt;&lt;li&gt;Un palíndromo es una palabra que se lee igual hacia adelante que hacia atras. Desarrolle una función que determine si una palabra es palíndrome o no.&lt;/li&gt;&lt;li&gt;Un número capicúo se refiere a cualquier número que se lee igual de izquierda a derecha y de derecha a izquierda. Escriba una función que determine si un número es capicúo o no.&lt;/li&gt;&lt;li&gt;Escriba una función que determine la cantidad de minusculas en una cadena.&lt;/li&gt;&lt;li&gt;Escriba una función que determine la cantidad de mayusculas en una cadena.&lt;/li&gt;&lt;li&gt;Desarrolle una función que calcule la cantidad de veces que se repite un caracter dado en una cadena.&lt;/li&gt;&lt;li&gt;Escriba una función que remplace un caracter por otro en una cadena.&lt;/li&gt;&lt;li style=&quot;font-weight: bold; color: rgb(204, 51, 204);&quot;&gt;desarrolle una función que lea caracter a caracter, mostrandolo por pantalla, mediante el teclado y que valide que el caracter pertenezca a un conjunto valido de caracteres devolviendo la cadena resultante.&lt;/li&gt;&lt;li&gt;Realice una función que compare dos cadenas y que devuelva 0 si cad1&lt;cad2, cad1=&quot;cad2&quot;&gt; es mayor que cad2, 1 si cad1 es igaul a cad2, y 2 si cad1 es mayor que cad2.&lt;/cad2,&gt;&lt;/li&gt;&lt;li&gt;Desarrolle una función que devuelva una cadena en minusculas.&lt;/li&gt;&lt;li style=&quot;font-weight: bold; color: rgb(204, 51, 204);&quot;&gt;&lt;span style=&quot;color: rgb(204, 51, 204);&quot;&gt;Elabore el conjunto de funciones necesarias para convertir de una base númerica a otra base. Es decir, decimal a binario, decimal a octal, decimal a hexadecimal, octal a binario, octal a hexadecimal, octal a decimal, hexadecimal a binario, hexadecimal a octal, hexadecimal a decimal, binario a decimal, binario a octal y binario a hexadecimal.&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Si los desarrollan les aseguro que saldran bien..., les sugiero hacer el algoritmo primero y luego la implemtación&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/1181678094696135535/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/10/ejercicios-sobre-cadenas-string-turbo.html#comment-form' title='27 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/1181678094696135535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/1181678094696135535'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/10/ejercicios-sobre-cadenas-string-turbo.html' title='Ejercicios sobre cadenas (string) turbo pascal'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>27</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-7512200201335386877</id><published>2009-10-27T10:32:00.006-04:30</published><updated>2009-10-27T11:51:42.171-04:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="String"/><title type='text'>STRING (Cadena de caracteres)</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;El tipo de datos &lt;span style=&quot;font-weight: bold;&quot;&gt;STRING&lt;/span&gt; guarda información de texto. Una variable &lt;span style=&quot;font-weight: bold;&quot;&gt;STRING&lt;/span&gt; puede tener de 1 a 255 caracteres de longitud, aunque ocupa un byte más que su longitud definida.&lt;br /&gt;&lt;br /&gt;Por ejemplo, si se declara una variable &lt;span style=&quot;font-weight: bold;&quot;&gt;STRING&lt;/span&gt; de 10 caracteres de longitud (cad:&lt;span style=&quot;font-weight: bold;&quot;&gt;string[&lt;/span&gt;10&lt;span style=&quot;font-weight: bold;&quot;&gt;]&lt;/span&gt;;) la variable ocupa 11 bytes de memoria. Esto se debe a que el primer byte (&lt;span style=&quot;font-style: italic;&quot;&gt;byte de longitud&lt;/span&gt;) de cada variable &lt;span style=&quot;font-weight: bold;&quot;&gt;STRING&lt;/span&gt; guarda la longitud de la cadena que en ese momento está contenida en la variable.&lt;br /&gt;&lt;br /&gt;Si una variable &lt;span style=&quot;font-weight: bold;&quot;&gt;STRING&lt;/span&gt; de 10 caracteres contiene la palabra &quot;hola&quot; el primer byte de memoria tendra el valor binario 4, indicando que la variable contiene cuatro caracteres. En ese caso, los últimos seis caracters de la variable son ignorados por los procedimientos de manipulación de cadenas de turbo pascal.&lt;br /&gt;&lt;br /&gt;  0 1 2 3 4 5 6 7 8 9 10&lt;br /&gt;  4 h o l a } # - X ¬  %&lt;br /&gt;&lt;br /&gt;(00000100)Observe que el primer byte (el byte 0) no es el caracter &quot;4&quot;, sino el número 4 en binario y que los últimos seis bytes contienen datos aleatorios.&lt;br /&gt;&lt;br /&gt;Veamos algunos ejemplos visto en clases con manipulación de cadenas:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;(* Funcion que devuelve la posición de un caracter en la cadena especificada *)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;function&lt;/span&gt; poscar(cadena : string; cual : char) : byte;&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;var&lt;/span&gt;&lt;br /&gt; pos, &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;  (* para devolver la posición de la cadena *)&lt;/span&gt;&lt;br /&gt; i      : byte; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;(* para recorrer cada caracter de la cadena *)&lt;/span&gt;&lt;br /&gt; encontrado : boolean;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt; (* para determinar si encontro el caracter buscado *)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;begin&lt;/span&gt;&lt;br /&gt; pos := 0;&lt;br /&gt; encontrado := false;&lt;br /&gt; i := 1;&lt;br /&gt; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;(* ord(cadena[0]) devuelve la longitud de la cadena *)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;while&lt;/span&gt; (not encontrado) &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;and&lt;/span&gt; (i&amp;lt;ord(cadena[0])) &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;do&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;begin&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;if&lt;/span&gt; (cadena[i]&amp;lt;&amp;gt;cual)&lt;br /&gt;     &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;begin&lt;/span&gt;&lt;br /&gt;                  pos := i;&lt;br /&gt;                  encontrado := true;&lt;br /&gt;     &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;end&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;else&lt;/span&gt; i := i + 1;&lt;br /&gt; &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;end&lt;/span&gt;;&lt;br /&gt; poscar := pos; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;(* retorna el valor de la funcion *)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;end&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;(* Funcion que cuenta cuantas veces se repite un caracter en una cadena*)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;function&lt;/span&gt; contarcar(cadena : string; cual : char) : byte;&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;var&lt;/span&gt;&lt;br /&gt; contador, &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;     (* para contar el caracter *)&lt;/span&gt;&lt;br /&gt; i      : byte;  &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;(* para recorrer cada caracter de la cadena *)&lt;/span&gt;&lt;br /&gt;begin&lt;br /&gt; contador := 0;&lt;br /&gt; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;(* ord(cadena[0]) devuelve la longitud de la cadena *)&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;for&lt;/span&gt; i := 1 &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;to&lt;/span&gt; &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;ord&lt;/span&gt;(cadena[0]) &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;do&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;begin&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;if&lt;/span&gt; (cadena[i]=cual)&lt;br /&gt;     &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;then&lt;/span&gt; contador := contador + 1&lt;br /&gt;     &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;(* nada que hacer*)&lt;/span&gt;;&lt;br /&gt; &lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;end&lt;/span&gt;;&lt;br /&gt; contarcar := contador; &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;(* retorna el valor de la funcion *)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 51, 153);&quot;&gt;end&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Función Length&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Para conocer la longitud de una cadena utilizamos la función Length, la longitud es la cantidad de caracteres que contiene la cadena en un momento determinado.&lt;br /&gt;&lt;br /&gt;Su sintaxis es: Length (cadena);&lt;br /&gt;&lt;br /&gt;La función regresa un valor entero.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Función Concat&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;La función concat produce los mismos resultados que la concatenación, es posible incluir cualquier número de cadenas que se necesiten concatenar.&lt;br /&gt;&lt;br /&gt;La suma de las cadenas no deberá sobrepasar la longitud que la variable, a la cual se asignará dicha suma, puede manejar. Ejemplo:&lt;br /&gt;&lt;br /&gt;Cadena := Concat (Cad1, cad2, cad3);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Función Pos&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;La función Pos nos sirve para localizar una determinada cadena dentro de otra, en otras palabras para verificar si una cadena es subcadena de otra segunda.&lt;br /&gt;&lt;br /&gt;Los parámetros que requiere son: la cadena que se buscará y la cadena donde se buscará la primera:&lt;br /&gt;&lt;br /&gt;Pos (Cadena1, Cadena2);&lt;br /&gt;&lt;br /&gt;Ejemplo:&lt;br /&gt;Cadena := &#39;Domingo Lunes Martes Miercoles Jueves Viernes Sabado&#39;;&lt;br /&gt;WriteLn(Cadena);&lt;br /&gt;WriteLn(Pos(&#39;Lunes&#39;, Cadena)); {Muestra 9}&lt;br /&gt;WriteLn(Pos(&#39;Jueves&#39;, Cadena)); {Muestra 32}&lt;br /&gt;WriteLn(Pos(&#39;Ayer&#39;, Cadena)); {Muestra 0}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Función Copy&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;La función copy regresa una subcadena de una variable o constante dada como parámetro. Su sintaxis es:&lt;br /&gt;&lt;br /&gt;Copy (Cadena, Inicio, Cantidad);&lt;br /&gt;&lt;br /&gt;Donde Cadena es la fuente de la subcadena, Inicio es la posición desde la cual se obtendrá la subcadena y Cantidad es el número de caracteres que se extraerán.&lt;br /&gt;&lt;br /&gt;Los valores de Inicio y Cantidad deben ser de tipo entero.&lt;br /&gt;&lt;br /&gt;Ejemplo:&lt;br /&gt;Cadena := &quot;Nuevos horizontes&quot;;&lt;br /&gt;WriteLn (Copy(Cadena, 8, 10)); {Visualiza: horizontes}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Fución Insert&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;El procedimiento Insert sirve para insertar una cadena dentro de otra en alguna posición determinada. Sintaxis:&lt;br /&gt;&lt;br /&gt;Insert (Cadena1, Cadena2, Posición)&lt;br /&gt;&lt;br /&gt;Donde Cadena1 es la que se insertará, Cadena2 es donde se insertará y Posición es el lugar donde se insertará. El parámetro Posición debe ser de tipo entero.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Procedimiento Delete&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Este procedimiento elimina un determinado número de caracteres de una cadena. Su sintaxis es:&lt;br /&gt;&lt;br /&gt;Delete (Cadena, Inicio, Número)&lt;br /&gt;&lt;br /&gt;Cadena es la variable en la cual se eliminarán los caracteres, Inicio es la posición del primer caracter a eliminar y Número es la cantidad de caracteres que se borrarán.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Fución UpCase&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;La función UpCase regresa la letra mayuscula correspondiente al caracter dado como parámetro. Es muy común trabajando con cadenas que se quiera convertir una que contiene un número a su valor numérico, para poder utilizarlo en operaciones matemáticas, así como convertir un número a su equivalente en una cadena.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Procedimiento Str&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;El procedimiento Str obtiene una cadena a partir de un valor numérico. Su sintaxis es:&lt;br /&gt;&lt;br /&gt;Str(Valor, Cadena)&lt;br /&gt;&lt;br /&gt;Donde valor es el número a convertir y Cadena es la variable donde se almacenará la cadena ya convertida.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Procedimiento Val&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Este procedimiento convierte una cadena en un valor de tipo numérico, el problema con esta función es que si la cadena no esta formada exclusivamente de números siguiendo las reglas para el tipo de datos que se vallan a obtener se generará un error. Sintaxis:&lt;br /&gt;&lt;br /&gt;Val (Cad, Num, Código)&lt;br /&gt;&lt;br /&gt;Cadena contiene la cadena que será procesada, Num es la variable de tipo numérico donde se guardará el valor de la cadena y Código es una variable de tipo entero (Integer) que contendrá el valor de 0 si no hubo errores y un valor diferente en caso de que no se haya podido convertir la cadena, el valor de Código representa la posición de la cadena donde ocurrio el error.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/7512200201335386877/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/10/string-cadena-de-caracteres.html#comment-form' title='5 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/7512200201335386877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/7512200201335386877'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/10/string-cadena-de-caracteres.html' title='STRING (Cadena de caracteres)'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-1324481653191634675</id><published>2009-10-14T11:01:00.000-04:30</published><updated>2009-10-14T12:07:36.326-04:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Archivos"/><title type='text'>Archivos</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Muchas de las aplicaciones que ustedes han programado se hicieron usando la memoria principal o memoria RAM como único medio de almacenamiento (usando variables, arreglos, registros o estructuras de datos mas complejas, las recuerdan ¿verdad?) , con los problemas que esto representa: la volatilidad de la memoria RAM; es decir, si se apaga la computadora se pierden los datos. De ahí surge la necesidad de almacenar dichos datos de forma permanente que permita retenerlos en ciertos dispositivos de almacenamiento secundario por un período de tiempo largo sin necesidad de suministrarles energía, de tal forma que permitan transportarlos y utilizarlos en otro equipo.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;El procesamiento que realiza una computadora es tarea absoluta del microprocesador en conjunción con la memoria principal; es decir, los dispositivos de almacenamiento secundario (diskettes, discos duros, CDs, flash drives, etc.) no procesan datos, sólo los almacenan.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Esto repercute de manera significativa al momento de programar archivos, ya que para hacerle modificaciones a los datos de un registro previamente almacenado es necesario primero “cargarlo” en la memoria principal, es decir, localizar el registro en el archivo y leerlo para colocar sus datos en la memoria RAM, ahí modificarlo y posteriormente grabarlo en la misma posición en la que se encontraba.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Recordemos algunas definiciones vistas en clases:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Campo&lt;/span&gt;: características de ciertos objetos de estudio o condiciones particulares de situaciones dadas. Por ejemplo un producto tiene los siguientes campos: codigo, marca, peso, presentación, fecha de elaboración y fecha de vencimiento. Cada campo es definido por un tipo de dato.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Registro&lt;/span&gt;: una combinación de otros tipos de datos en un nuevo tipo de datos. Se puede decir además que es el conjunto completo de datos relacionados pertenecientes a una entrada.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;sigamos recordando&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Type&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;        Tipo_registro = Record&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;             no_prod : integer;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;             descrip : string[30];&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;             cantidad: integer;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;             precio : real;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;            garantia: char;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;   End;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Var &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;        Registro : Tipo_registro;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Así pues tenemos que un archivo en términos informáticos es una colección de datos que tiene un nombre y se guardan en dispositivos de almacenamiento secundario, los cuales pueden ser magnéticos, ópticos, electrónicos, etc. P. ejem. Diskettes, discos duros, CD´s, ZIP drives, flash drives, memory sticks, entre otros.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;span style=&quot;color: rgb(102, 0, 204); font-weight: bold;&quot;&gt;Clasificación por tipo de contenido&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Existen muchas clasificaciones de archivos de acuerdo a diferentes criterios o aplicaciones. Aquí se presenta una muy importante: de acuerdo al contenido de Texto y Binario.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:arial;&quot; &gt;Archivos de texto&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; : Son aquellos que pueden contener cualquier clase de datos y de tal maneraque son “entendibles” por la gente. Los datos en un archivo de texto se almacenan usando el código ASCII, en el cual cada carácter es representado por un simple byte. Debido a que los archivos de texto utilizan el código ASCII, se pueden desplegar o imprimir. En este tipo de archivos, todos sus datos se almacenan como cadenas de caracteres, es decir, los números se almacenan con su representación ASCII y no su representación numérica.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:arial;&quot; &gt;Archivos binarios&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;: En este tipo de archivos también se pueden almacenar diferentes tipos de datos incluyendo datos numéricos; sin embargo, cabe destacar que los datos numéricos se graban con su representación binaria (no con su representación ASCII), por tal razón, cuando se despliegan con un editor de textos o por medio de comandos del sistema operativo, aparecen caracteres raros que no se interpretan.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 51, 255); font-weight: bold;font-family:arial;&quot; &gt;Clasificacion por tipo de acceso&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:arial;&quot; &gt;Archivos secuenciales&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;: Como su nombre lo indica, en este tipo de archivos los registros se graban en secuencia o consecutivamente y deben accesarse de ese mismo modo, es decir, conforme se van insertando nuevos registros, éstos se almacenan al final del último registro almacenado; por lo tanto, cuando se desea consultar un registro almacenado es necesario recorrer completamente el archivo leyendo cada registro y comparándolo con el que se busca. En este tipo de archivo se utiliza una marca invisible que el sistema operativo coloca al final de los archivos: EOF (End of File), la cual sirve para identificar dónde termina el archivo.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:arial;&quot; &gt;Archivos directos&lt;/span&gt; &lt;span style=&quot;font-family:arial;&quot;&gt;: A diferencia de los archivos secuenciales, en los archivos directos no esnecesario recorrerlo completamente para acceder un registro en particular, sino se puede colocar el apuntador interno del archivo directamente en el registro deseado, permitiendo con esto mayor rapidez de acceso. Cabe destacar que para reposicionar este apuntador se utiliza el comando SEEK indicándole la dirección del registro que se desea.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Enlace de ínteres:&lt;/span&gt;&lt;br /&gt;&lt;a style=&quot;font-family: arial;&quot; href=&quot;http://www.itnuevolaredo.edu.mx/maestros/sis_com/takeyas/Apuntes/Administracion_Archivos/Apuntes/Manejo%20de%20Archivos%20en%20Pascal/index.htm&quot;&gt;Manejo de archivos es pascal&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/1324481653191634675/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/10/archivos.html#comment-form' title='14 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/1324481653191634675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/1324481653191634675'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/10/archivos.html' title='Archivos'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515547900735842228.post-560723248018237822</id><published>2009-10-09T12:08:00.000-04:30</published><updated>2009-10-09T12:21:45.539-04:30</updated><title type='text'>Sesión de nivelación</title><content type='html'>Saludos chicos;&lt;br /&gt;&lt;br /&gt;Para los dias Lunes 19, Lunes 26 de octubre y Lunes 02 de noviembre luego de nuestra sesión de clases normal, se haran unas sesiones para nivelar sus conocimientos en algoritmica.&lt;br /&gt;&lt;br /&gt;En este sentido les extiendo la invitación a participar en estas actividades y asi reforzar sus conocimientos, aclarar dudas y practicar un poco más.&lt;br /&gt;&lt;br /&gt;Así que apunten sus comentarios y opiniones para esta idea.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;NOTA&lt;/span&gt;: envien por correo la practica sobre arreglo de registros de la torrefactora, recuerden que deben indetificarla con sus nombre y apellidos, así como con número de expediente y cédula. deben hacerlo antes del día 12 de octubre del 2009.&lt;br /&gt;mi correo es: tomzambrano@gmail.com&lt;br /&gt;&lt;br /&gt;Atte Tom Zambrano&lt;br /&gt;&lt;br /&gt;&quot;El hombre inteligente no es aquel que lo sabe todo, sino aquel que sabe aplicar lo poco que sabe&quot;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Zilver sTone&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algoritmicayaracuy.blogspot.com/feeds/560723248018237822/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/10/sesion-de-nivelacion.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/560723248018237822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515547900735842228/posts/default/560723248018237822'/><link rel='alternate' type='text/html' href='http://algoritmicayaracuy.blogspot.com/2009/10/sesion-de-nivelacion.html' title='Sesión de nivelación'/><author><name>Prof. Ing. Tom Zambrano</name><uri>http://www.blogger.com/profile/15425842003165196738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-Q5hjkv4mrk2agrVAn8VdOz-_qsdJQmZv4W8Lug1KY0oWrJWQC928RNkyjXlVP7O1I60IU0q7jGm23nzLkZ7iZ2sQMgpeqj7aLf_g6NH5JsXDFuw5GSdSa4Pdc21pAQ/s113/207414_10150130949812285_582102284_6552887_1580469_n.jpg'/></author><thr:total>1</thr:total></entry></feed>