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<iomanip> | |
using namespace std; | |
int main() | |
{ | |
int listamesi[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; | |
int mese, giorno, tgiorni, colonna; | |
cout<<"Inserisci il mese:"; |
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 <math.h> | |
using namespace std; | |
//Calcolo delle aree, nessun copyright su questo file, non lo voglio// | |
float quaderettangolo(float base, float altezza) { | |
float area = 0; | |
area = base * altezza; | |
return area; |
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 <sstream> | |
#include <string> | |
#include <math.h> | |
using namespace std; | |
void clear_screen() { | |
cout<<string(100, '\n' ); | |
} |
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
// Made by n00b Zhenxiang Chen | |
#include <iostream> | |
#include <iomanip> | |
#include <math.h> | |
using namespace std; | |
// Determinate the right thickness of symbols | |
int dynamic_thickness_scaling(int msize) { | |
int temp = msize / 10; | |
/*if (fmod(temp, 2.0) != 0.0) { |
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
// My first Arduino program which prints a snake | |
// Zhenxiang Chen 2018 | |
// Some functions we need | |
void button_manager(int pin, bool &output) { | |
if (digitalWrite(pin) == LOW) { | |
if (output == true) { | |
output = false; | |
} | |
} |
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> | |
using namespace std; | |
struct weapon_stats { | |
char name[50]; | |
float max_damage; | |
float min_damage; | |
float bullet_drop; |
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
int analogPin = 3; // potentiometer wiper (middle terminal) connected to analog pin 3 | |
int val = 0; | |
int pwmPin = 5; | |
void setup() { | |
pinMode(pwmPin, OUTPUT); | |
} | |
void loop() { | |
val = analogRead(analogPin); |
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> | |
using namespace std; | |
void rextend_array(int old[], int msize, int newsize) { | |
int *ptr_new; | |
ptr_new = new int[newsize]; | |
for (int p = 0; p < msize; p++) { | |
ptr_new[p] = old[p]; | |
} |
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> | |
using namespace std; | |
struct contatto { | |
string nome; | |
string cognome; | |
int eta; | |
}; |
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
#EXTM3U | |
#EXTINF:-1,CCTV 1 HD | |
http://223.110.241.204:6610/gitv/live1/G_CCTV-1-CQ/G_CCTV-1-CQ | |
#EXTINF:-1,CCTV-2高清 | |
http://223.110.241.204:6610/gitv/live1/G_CCTV-2-CQ/G_CCTV-2-CQ | |
#EXTINF:-1,CCTV-3高清 | |
http://223.110.241.204:6610/gitv/live1/G_CCTV-3-CQ/G_CCTV-3-CQ | |
#EXTINF:-1,CCTV-4高清 | |
http://223.110.241.204:6610/gitv/live1/G_CCTV-4-CQ/G_CCTV-4-CQ | |
#EXTINF:-1,CCTV-5高清 |
OlderNewer