This file contains 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
// t11e09.freqString.cpp | |
// juanfc 2023-11-22 | |
// | |
#include <iostream> | |
#include <array> | |
using namespace std; | |
typedef array<int,256> TCharFreq; |
This file contains 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
// p6e02.getline.cpp | |
// juanfc 2023-11-22 | |
// | |
#include <iostream> | |
using namespace std; | |
void stringStat(string s, int& nVow, int& nCons, int& nSpc); | |
void printStats(string s, int nVow, int nCons, int nSpc); |
This file contains 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
// readwords.cpp | |
// juanfc 2020-12-14 | |
// A simple case of word reading and simply adding | |
// non-repeated ones to a list, a simple array | |
// of strings | |
// | |
#include <iostream> | |
#include <array> | |
using namespace std; |
This file contains 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
// filename.cpp | |
// juanfc 2022-11-24 | |
// | |
#include <iostream> | |
using namespace std; | |
string fileName(string path); | |
string fileName2(string path); |
This file contains 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
// t9e14.sum2biggest.cpp | |
// juanfc 2023-11-14 | |
// https://gist.github.com/juanfal/e2735a69938475585381b70ff6bf3a1e | |
#include <iostream> | |
#include <array> | |
using namespace std; | |
const int N = 5; | |
typedef array<int,N> TVec; |
This file contains 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
// t9e13.malagastats.cpp | |
// juanfc 2023-11-14 | |
// https://gist.github.com/juanfal/656e0030070e0a61c3c544bc059879c0 | |
#include <iostream> | |
#include <cmath> | |
#include <array> | |
using namespace std; | |
// consts |
This file contains 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
// t9e12.stats.cpp | |
// juanfc 2023-11-14 | |
// | |
#include <iostream> | |
#include <cmath> | |
#include <array> | |
using namespace std; | |
// consts |
This file contains 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
// t9e11.pointsDistance.cpp | |
// juanfc 2023-11-14 | |
// https://gist.github.com/juanfal/4b55b90e61369616e051b7d41d727be6 | |
#include <iostream> | |
#include <cmath> | |
#include <array> | |
using namespace std; | |
// consts |
This file contains 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
// t9e10.find12.cpp | |
// juanfc 2023-11-14 | |
// https://gist.github.com/juanfal/0de9ce7af220a1d3fb59a3bb983b7d5d | |
#include <iostream> | |
#include <array> | |
using namespace std; | |
// consts | |
const int N=5; |
This file contains 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
// t9e09.invertArr.cpp | |
// juanfc 2023-11-14 | |
// https://gist.github.com/juanfal/cc28c4728f7179e5e9c90214d09860b0 | |
#include <iostream> | |
#include <array> | |
using namespace std; | |
// consts | |
const int N=5; |