Bozza della libreria
This commit is contained in:
15
libreria/linguaggio.i
Normal file
15
libreria/linguaggio.i
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef LINGUAGGIO_I
|
||||
#define LINGUAGGIO_I
|
||||
|
||||
#define se if
|
||||
#define altrimenti else
|
||||
#define per for
|
||||
#define finche while
|
||||
#define finché while
|
||||
#define fare do
|
||||
#define ritorna return
|
||||
|
||||
|
||||
#define principale main
|
||||
|
||||
#endif
|
||||
0
libreria/mat.i
Normal file
0
libreria/mat.i
Normal file
12
libreria/nrmiu.i
Normal file
12
libreria/nrmiu.i
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef NRMIU_I
|
||||
#define NRMIU_I
|
||||
|
||||
#include "linguaggio.i"
|
||||
#include "tipi.i"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define stampaf printf
|
||||
#define leggif scanf
|
||||
|
||||
#endif
|
||||
0
libreria/stringa.i
Normal file
0
libreria/stringa.i
Normal file
18
libreria/tipi.i
Normal file
18
libreria/tipi.i
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef TIPI_I
|
||||
#define TIPI_I
|
||||
|
||||
#define corto short
|
||||
#define lungo long
|
||||
#define naturale unsigned
|
||||
|
||||
#define car char
|
||||
#define vuoto void
|
||||
|
||||
#define cost const
|
||||
|
||||
#define mobile float
|
||||
#define doppia double
|
||||
|
||||
#define NULLO 0
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user