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
//Combinazioni binarie.cpp: Stampa il numero e tutte le combinazioni possibili che si possono avere con un tot di bit dati da input | |
/* * Copyright © 2017-2018 Lorenzo Fiocco <fiocco@giallo.it> | |
* This program is free software. It comes without any warranty, to | |
* the extent permitted by applicable law. You can redistribute it | |
* and/or modify it under the terms of the Do What The Fuck You Want | |
* To Public License, Version 2, as published by Sam Hocevar. See | |
* http://www.wtfpl.net/ for more details. */ | |
#include <iostream> | |
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
//Codifica di linea.cpp: Effettua la codifica di un byte inserito da input | |
/* * Copyright © 2017-2018 Lorenzo Fiocco <fiocco@giallo.it> | |
* This program is free software. It comes without any warranty, to | |
* the extent permitted by applicable law. You can redistribute it | |
* and/or modify it under the terms of the Do What The Fuck You Want | |
* To Public License, Version 2, as published by Sam Hocevar. See | |
* http://www.wtfpl.net/ for more details. */ | |
#include <iostream> | |
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
//Palindroma ricorsiva.cpp: Vede se una parola è palindroma o meno usando una funzione ricorsiva | |
/* * Copyright © 2017-2018 Lorenzo Fiocco <fiocco@giallo.it> | |
* This program is free software. It comes without any warranty, to | |
* the extent permitted by applicable law. You can redistribute it | |
* and/or modify it under the terms of the Do What The Fuck You Want | |
* To Public License, Version 2, as published by Sam Hocevar. See | |
* http://www.wtfpl.net/ for more details. */ | |
#include <iostream> | |
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
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <curlpp/cURLpp.hpp> | |
#include <curlpp/Easy.hpp> | |
#include <curlpp/Options.hpp> | |
#include <pugixml.hpp> | |
int main(){ | |
long flags = CURL_GLOBAL_ALL; |
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
//Palindroma.cpp: Vede se una parola è palindroma o meno usando una funzione | |
/* * Copyright © 2017-2018 Lorenzo Fiocco <fiocco@giallo.it> | |
* This program is free software. It comes without any warranty, to | |
* the extent permitted by applicable law. You can redistribute it | |
* and/or modify it under the terms of the Do What The Fuck You Want | |
* To Public License, Version 2, as published by Sam Hocevar. See | |
* http://www.wtfpl.net/ for more details. */ | |
#include <iostream> | |
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
import java.io.*; //Fatelo e basta | |
public class NomeCheVePare { | |
public static void main(String[] args) { | |
InputStreamReader input = new InputStreamReader (System.in); //Ci servira in seguito per l'input | |
BufferedReader tastiera = new BufferedReader (input); //Come sopra | |
int Numero; //Per creare una variabile intera | |
int Vettore[] = new int [2]; //Per creare un vettore da 2 | |
int Matrice[][] = new int [3][2]; //Per creare una matrice 3x2 |
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
//Pedo infame.cpp: Programma in C++ che ti dice sei punibile dalla legge italiana (Art. 609 CP) per atti sessuali con minorenne di una data eta' | |
/* * Copyright © 2017-2021 Lorenzo Fiocco <fiocco@giallo.it> | |
* This program is free software. It comes without any warranty, to | |
* the extent permitted by applicable law. You can redistribute it | |
* and/or modify it under the terms of the Do What The Fuck You Want | |
* To Public License, Version 2, as published by Sam Hocevar. See | |
* http://www.wtfpl.net/ for more details. */ | |
#include <iostream> | |
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
#include <iostream> | |
#include <string> | |
#include <iomanip> | |
#include <fstream> | |
using namespace std; | |
int main(){ | |
int cla=0; //Variabile n. di classi | |
string name; //Stringa per il nome dell'istituto | |
cout << "Inserisci il nome dell'istituto:"; |