Turbo Pascal Essay

6097 words - 24 pages

Unidad IPalabras reservadas:Para poder usar cualquier lenguaje, debemos conocer los códigos que representan las actividades a realizar. Turbo Pascal cuenta con su propio conjunto, los cuales llamaremos palabras reservadas.Palabras reservadas de Pascal Estándar y Turbo Pascal:ABSOLUTEANDARRAYASMASSEMBLERBEGINBOOLEANBYTECASECHARCOMPCONSTCONSTRUCTORDESTRUCTORDIVDODOUBLEDOWNTOELSEENDEXPORTEXPORTSEXTENDEDEXTERNALFARFILEFORFORWARDFUNCTIONGOTOIFIMPLEMENTATIONININDEXINHERITEDINLINEINTEGERINTERFACEINTERRUPTLABELLIBRARYLONGINTMODNAMENEARNILNOTOBJECTOFORPACKEDPOINTERPRIVATEPROCEDUREPROGRAMPUBLICREALRECORDREPEATRESIDENTSETSHLSHORTINTSHRSINGLESTRINGTHENTOTYPEUNITUNTILUSESVARVIRTUALWHILEWITHWORDXORNinguna de estas palabras reservadas puede ser usada como identificador, ya que cada una de ellas tiene predefinida una función.Identificadores:Son etiquetas que representan variables, constantes, procedimientos, tipos de datos, funciones. Existen dos tipos de identificadores, los predefinidos por Turbo Pascal y los que define el programador. Los identificadores son una secuencia de 1 a 127 caracteres, donde el primer carácter debe ser alfabético, y el resto no debe contener espacios en blanco y caracteres especiales como son: !, %, $, &...Tipos de datos:Existen diferentes tipos de datos, los cuales son utilizados para manipular la información:TipoDescripciónRangoBooleanValoresTrue o FalseByteNúmeros enteros0 .. +255CharCaracteres ASCII'$', '%', '¦', 'ß', '¢'CompNúmeros reales-9.2E18 a 9.2E18DoubleNúmeros reales5.0E -324 a 1.7E +308ExtendedNúmeros reales1.9E -4851 a 1.1E +4932IntegerNúmeros enteros-32768 .. +32767LongintNúmeros enteros-2147483648 .. +2147483647RealNúmeros con decimales2.9E -39 a 1.7E +38ShortintNúmeros enteros-128 .. + 127SingleNúmeros reales1.5E -45 a 3.4E +38StringConjunto de caracteres'La casa', 'El toro', 'Camión'WordNúmeros enteros0 .. +65535Variables y constantes:Los tipos de datos que manejaremos son constates y variables. Las variables son las que tienen la capacidad de cambiar su valor a lo largo del programa, a diferencia de las constantes que permanecen con el mismo valor desde su inicio hasta el final del programa. Un ejemplo sencillo de una constante es la gravedad 9.81, el cual es un valor fijo, a diferencia de una variable, la cual cambia con facilidad su valor durante la ejecución de un programa. No obstante los valores almacenados, pueden ser de tipo numérico, alfanuméricos, o carácter.Comentarios:Los comentarios nos sirven para dar una apropiada documentación al programa, logrando con esto una mejor comprensión del código en futuras revisiones, o en su defecto a los programadores que tengan que modificar nuestro programa. Los comentarios no son tomados en cuenta por el compilador, es decir que durante la ejecución del programa,...

Find Another Essay On Turbo Pascal

Hamlet as Victim and Hero Essay

1301 words - 5 pages Hamlet as Victim and Hero      Hamlet, Prince of Denmark, a Shakespearean tragedy, tells the story of Prince Hamlet, who gained the knowledge of a terrible incident that his kingdom had suffered. Claudius, the king of Denmark and Hamlet's uncle, had killed his own brother, the king, who was also the father of Hamlet, and married his brother's widow. Hamlet suffered these traumas to a severe degree, and his only relief was to defeat his

Essay on Light and Dark in Antigone

1188 words - 5 pages Use of Light and Dark in Antigone   The "Golden Age" of Greece is noted for its many contributions to the creative world, especially in its development of the play. These performances strived to emphasize Greek morals, and were produced principally for this purpose. Antigone, by Sophocles, is typical. The moral focused on in Antigone is the conflict between physis (nature) and nomos (law), with physis ultimately presiding over nomos

charant Creon as the Main Character of Antigone

1231 words - 5 pages Creon as the Main Character of Antigone   Throughout the Greek play Antigone by Sophocles, there exists a dispute as to who should receive the designation of main character. Antigone, the daughter of the cursed King Oedipus, as well as Creon, stately king of Thebes, both appear as the key figures in this historic play. I believe that Creon, king of Thebes, should be considered the main character in this work of Greek theater. Three

Free Macbeth Essays: Sleep and Sleeplessness

525 words - 2 pages The Sleep and Sleeplessness Motif in Macbeth We have consciences that function to tell us the difference between right and wrong. If we have clear consciences, we usually possess the ability to sleep. But when our consciences are full of guilt, we experience a state of sleeplessness. In Macbeth, Shakespeare uses the sleep and sleeplessness motif to represent Macbeth's and Lady Macbeth's consciences and the effect Macbeth's conscience has on

Life Outside of Life in Hawthorne’s Wakefield

898 words - 4 pages Life Outside of Life in Hawthorne’s Wakefield   Efficacy lies at the heart of human desires for immortality. Characters throughout literature and art are depicted as wanting to step aside and see what their world would be like without their individual contributions. The literary classic A Christmas Carol and the more recent, but ageless, film It’s Wonderful Life both use outside influences (three ghosts and Clarence the Angel

Essay on Identity in Song of Solomon

2172 words - 9 pages Searching for Identity in Song of Solomon         Abstract: Whether Africans really fly or just escape a monumental burden, perhaps only through death, is a decision Toni Morrison has apparently left to her readers. Never the less, no matter what you believe, within Song of Solomon, the suggestion is, that in order to "fly" you must go back to the beginning, back to your roots. You must learn the "art" from the old messages.   O

The Character of Oedipus in Oedipus and The Infernal Machine

904 words - 4 pages The Character of Oedipus in Oedipus and The Infernal Machine    The stories of Oedipus, as told through Seneca's Oedipus and Cocteau's The Infernal Machine, contain both similarites and differences. Both authors portray the character of Oedipus as being obstinate, ignorant, and inquisitive. Yet Seneca and Cocteau differ on their interpretation of the motives that propelled these characteristics of Oedipus. Seneca portrays Oedipus as a

Okonkwo's Tragic Flaws in Chinua Achebe's Things Fall Apart

3121 words - 12 pages        An increasing amount of contemporary literature traces its origins back to the early works of Greece. For ages, humans have fascinated themselves with the impossible notion of perfection. Unrealistic expectations placed on those who were thought to be the noblest or most honorable individuals have repeatedly led to disappointment and frustration, either on the part of those particular individuals or those they influence. Classic

Sophocles' Antigone - Antigone Must Challenge Creon

889 words - 4 pages Antigone Must Challenge Creon in Antigone   In his "Funeral Oration" Pericles, Athens's leader in their war with other city-states, rallies the patriotism of his people by reminding them of the things they value. He encourages a sense of duty to Athens even to the point of self-sacrifice. He glorifies the free and democratic Athenian way of life and extravagantly praises those willing to die for it. In Antigone, Creon, Thebes's leader in

The Role of Women in Homer’s Iliad

796 words - 3 pages The Role of Women in Homer’s Iliad Homer’s Iliad is undoubtedly focused on its male characters: Achilles, primarily, but also Hector and Agamemnon. Nevertheless, it seems that the most crucial characters in the epic are female. Homer uses the characters of Thetis, Andromache, and Helen as a basis for comparison to the male characters. Homer wants his audience to see and understand the folly of his male characters in choosing war over peace

A Comparison of Butler's Life and Kindred

1915 words - 8 pages A Comparison of Butler's Life and Kindred   What lies in the mind of an author as he or she begins the long task of writing a fiction novel? This question can be answered if the author's life is studied and then compared to the work itself. Octavia E. Butler's life and her novel Kindred have remarkable comparisons. This essay will point out important events of Butler's life and how they link to the mentioned novel. Octavia Estelle

Similar Essays

Compiler Essay

4117 words - 16 pages programming language and its interactive implementation. PAG -- a Program Analyzer Generator which makes static program analysis easy. PAMELA -- a language that supports a procedure-oriented modeling paradigm. Pascal --- Free Pascal -- a free 32-bit Pascal compiler. gpc -- GNU Pascal compiler. NDP Pascal -- a full implementation of Pascal. PTOC -- ANSI/Turbo Pascal to C/C++ converter with BGI graphics library emulation. Perl

How To Crack A Game Essay

1802 words - 7 pages imigrate in russland) but if you try it often enough you`ll check it and crack it!I am sure you do! This is the first text i write about cracking in my life and i am sure it will be not the last! OUTRO The text was written by The PuppetMaster2501.I am proud member of one of the newest crack groups called D.O.C. - Defenders of Cracking.If you have some experience in cracking hacking or can program some graphic tools in Turbo Pascal or C++ and wanna be an Defender too and an member of D.O.C. then send me an e-mail and i will contact you. Lucien91@hotmail.com ROCK DA PLANET BABY

Reality And Illusion In Shakespeare's Hamlet Reality, Appearance And Deception

896 words - 4 pages Reality and Illusion in Hamlet   Shakespeare’s play, Hamlet, begins with the appearance of a ghost, an apparition, possibly a hallucination. Thus, from the beginning, Shakespeare presents the air of uncertainty, of the unnatural, which drives the action of the play and develops in the protagonist as a struggle to clarify what only seems to be absolute and what is actually reality. Hamlet's mind, therefore, becomes the central force of the

Sub Plots In Hamlet Essay

1118 words - 4 pages Sub-plots in Hamlet   There are many things that critics say make Hamlet a "Great Work," one of which is the way that Shakespeare masterfully incorporates so many sub-plots into the story, and ties them all into the main plot of Hamlet’s revenge of his father’s murder. By the end of Act I, not only is the main plot identified, but many other sub-plots are introduced. Among the sub-plots are trust in the Ghost of King Hamlet, Fortinbras, and