#include <iostream>
#include <fstream>
int main() {
ofstream MyFile("filename.txt");
MyFile << "First line\n";
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| Rápida introducción a Modern Pascal: | |
| Pascal es un lenguaje que a pesar de sus años ha evolucionado bastante hasta llegar a ser un lenguaje orientado a objetos. De hecho | |
| tiene todas las características que te puedes encontrar en un lenguaje de programación (clases, unidades, interfaces, genéricos, etc) | |
| Además compila de forma rápida y nativa al lenguaje máquina, también tiene un tipado seguro y construcciones de alto nivel pero que | |
| también puede llegar a bajo nivel si así lo necesitas. | |
| El compilador libre y más popular es FreePascal http://freepascal.org y el IDE de preferencia es Lazarus (http://lazarus.freepascal.org) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * ===================================================================================== | |
| * Consulta las tasas del dolar desde el sitio web: | |
| * https://www.dolarsi.com/api/api.php?type=valoresprincipales | |
| * | |
| * Dependencias: | |
| * VfpRestClient: https://github.com/Irwin1985/VFPRestClient | |
| * JSONFox: https://github.com/Irwin1985/JSONFox | |
| * | |
| * NOTA: | |
| * 1. Cambie las rutas de vfpRestClient y JSONFox por las correspondientes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Comentarion de una línea | |
| #[ | |
| Comentario de | |
| varias | |
| líneas | |
| ]# | |
| # Tipos de datos nativos: bool, char, int, float, string | |
| # Tipos de datos compuestos: arrays, secuencias y conjuntos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| #include<stdlib.h> | |
| struct AbstractBaseClass { | |
| char tipo; | |
| }; | |
| struct Entero { | |
| char tipo; | |
| int dato; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| typedef enum TokenType { | |
| NUMBER_TYPE, | |
| STRING_TYPE, | |
| PLUS_TYPE, | |
| MINUS_TYPE, | |
| MUL_TYPE, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef double (*math)(double, double); | |
| double add(double a, double b) { return a + b; } | |
| double sub(double a, double b) { return a - b; } | |
| double mul(double a, double b) { return a * b; } | |
| double divi(double a, double b) { return a / b; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set procedure to vfprestclient.prg additive | |
| do JSONFOX.app | |
| local oRest, lcShop, lcAccessToken | |
| lcShop = "mi_tienda_shopify" | |
| lcAccessToken = strconv("VCILZZY4AQ9YBDN42SMFELTJX6FIM7JM", 13) && base64 encode | |
| oRest = createobject("Rest") | |
| oRest.AddRequest(oRest.get, "https://" + lcShop + ".myshopify.com/admin/api/2021-07/shop.json") |