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
// 1.stairofnumbers.cpp | |
// juanfc 2025-10-15 | |
// | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int n = 4; |
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
// 05.demorgan2.cpp | |
// juanfc 2025-09-30 | |
// | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
cout << boolalpha; |
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
// 04.demorgan1.cpp | |
// juanfc 2025-09-30 | |
// https://gist.github.com/juanfal/35f5cea92fa0005cbb4fa815f35032eb | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int x, y; |
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
// 03.calculator.cpp | |
// juanfc 2025-09-30 | |
// | |
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
int main() | |
{ |
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
// 03.calculator.cpp | |
// juanfc 2025-09-30 | |
// | |
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
int main() | |
{ |
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
// 02.concatbool.cpp | |
// juanfc 2025-09-29 | |
// https://gist.github.com/juanfal/e6333a1de084b92ee95211613a21f525 | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
cout << boolalpha; // to print all bools as true/false |
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
// 01.booleans.cpp | |
// juanfc 2025-09-24 | |
// | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
cout << "true and true -> " << (true and true) << endl; |
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
// 31.mercadona.cpp | |
// juanfc 2025-09-29 | |
// version with previous to while price reading | |
// https://gist.github.com/juanfal/0ad059d9c81aac52b22d836f949ad3bf | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ |
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
#!/bin/sh | |
# pdfamaker.sh | |
# 2025-05-20 | |
# | |
# build by ChatGPT | |
# it depends only on Ghostscript | |
# it works with my current one: | |
# Ghostscript 10.05.1 (2025-04-29) | |
# Exit on any error |
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
// wordPuzzle.cpp | |
// juanfc 2022-12-07 | |
// juanfc 22/1/02-2012-02-07-2015-02-02 | |
// Program to find words in a word search game | |
// https://gist.github.com/juanfal/b4f5e72a12b0549e2014b7cebc5b5b81 | |
#include <iostream> | |
#include <array> | |
#include <iomanip> | |
using namespace std; |
NewerOlder