Update c-language-challenge_it.md
Traduzione completata per la challege
This commit is contained in:
parent
9b1e06fbcd
commit
fd46e97fa7
1 changed files with 42 additions and 43 deletions
|
|
@ -77,68 +77,67 @@ crea server e client ftp
|
||||||
|
|
||||||
i client inviano immagini sequenziali e il server mostra le immagini
|
i client inviano immagini sequenziali e il server mostra le immagini
|
||||||
* trasforma un'immagine gif in multiple immagini jpeg
|
* trasforma un'immagine gif in multiple immagini jpeg
|
||||||
* client sends the jpeg images
|
* il client invia le immagini jpeg
|
||||||
* server receives the jpeg images and shows
|
* il server riceve le immagini jpeg e le mostra
|
||||||
* server supports many windows, each windows shows images from a client
|
* il server supporta molte finestre, ogni finestra mostra le immagini da un client
|
||||||
* use gtk or win32 APIs
|
* usa le API gtk o win32
|
||||||
|
|
||||||
# data-driven code
|
# Codice focalizzato sui dati
|
||||||
|
|
||||||
Make serial number certification program
|
|
||||||
* certificate a serial number file
|
|
||||||
* read spec.rc file to specify serial number format
|
|
||||||
* encode user information, user-account number, name, product id, in serial number
|
|
||||||
* decode the information from the serial number
|
|
||||||
* serial code is printed in BASE64 code.
|
|
||||||
* use any encryption algorithm
|
|
||||||
|
|
||||||
|
Crea un programma di certificazione dei numeri seriali
|
||||||
|
* certificate un codice seriale
|
||||||
|
* leggi il file spec.rc per specificare il formato del codice seriale
|
||||||
|
* codifica le informazioni dell'utente, il numero dell'account utente, il nome e l'id del prodotto nel numero seriale
|
||||||
|
* decodifica le informazioni dal numero seriale
|
||||||
|
* il codice seriale è scritto in Base64.
|
||||||
|
* usa qualsi algoritmo di criptazione
|
||||||
```
|
```
|
||||||
$ cat spec.rc
|
$ cat spec.rc
|
||||||
# field length
|
# lunghezza dei campi
|
||||||
user-account 4
|
account-utente 4
|
||||||
user-name 16
|
nome-utente 16
|
||||||
product-id 4
|
id-del-prodotto 4
|
||||||
|
|
||||||
$ encode-serial spec.rc
|
$ codifica-seriale spec.rc
|
||||||
user-account: 1234 <user-input>
|
account-utente: 1234 <input-utente>
|
||||||
user-name: gogostar <user-input>
|
nome-utente: gogostar <input-utente>
|
||||||
product-id: 5678 <user-input>
|
id-del-prodotto: 5678 <input-utente>
|
||||||
abcd-defg- <output>
|
abcd-defg- <output>
|
||||||
|
|
||||||
$ decode-serial
|
$ decodifica-seriale
|
||||||
serial: abcd-defg-xxxx-xxxx <input>
|
seriale: abcd-defg-xxxx-xxxx <input>
|
||||||
account: 1234
|
account: 1234
|
||||||
name: gogostar
|
nome: gogostar
|
||||||
product: 5678
|
prodotto: 5678
|
||||||
```
|
```
|
||||||
|
|
||||||
# pool-based memory allocator
|
# allocatore di memoria basato su pool
|
||||||
|
|
||||||
make a pool-based memory allocator
|
crea un allocatore di memoria basato su pool
|
||||||
* create pool as many as number of CPUs in your system
|
* crea un allocatore di memoria basato su pool per ogni CPU nel tuo PC
|
||||||
* each thread allocates memory from a pool of its own CPU
|
* ogni thread alloca memoria da un pool assegnato a sè stesso
|
||||||
* apply your allocator to any multi-thread program and compare performance
|
* Utilizza il tuo allocatore in qualsias programma multi thread e confronta le prestazioni
|
||||||
* ``LD_PRELOAD=${PATH}/lib/libyourallocator.so.1 app``
|
* ``LD_PRELOAD=${PATH}/lib/libyourallocator.so.1 app``
|
||||||
|
|
||||||
# make a shell
|
# crea una shell
|
||||||
|
|
||||||
make your own shell
|
crea la tua shell
|
||||||
* features
|
* feature
|
||||||
* pipe
|
* pipe
|
||||||
* redirection
|
* redirezioni
|
||||||
* background running
|
* esecuzione in background
|
||||||
* stdin, stdout, stderr
|
* stdin, stdout, stderr
|
||||||
```
|
```
|
||||||
$ myshell
|
$ miashell
|
||||||
THIS-IS-MYSHELL> ls
|
QUESTA-E-LA-MIASHELL> ls
|
||||||
a b c
|
a b c
|
||||||
THIS-IS-MYSHELL> ls > files.txt
|
QUESTA-E-LA-MIASHELL> ls > file.txt
|
||||||
THIS-IS-MYSHELL> cat ls
|
QUESTA-E-LA-MIASHELL> cat ls
|
||||||
a b c
|
a b c
|
||||||
THIS-IS-MYSHELL> ls | cat > files.txt
|
QUESTA-E-LA-MIASHELL> ls | cat > file.txt
|
||||||
THIS-IS-MYSHELL> asdf 2> error.txt
|
QUESTA-E-LA-MIASHELL> asdf 2> errore.txt
|
||||||
THIS-IS-MYSHELL> cat error.txt
|
QUESTA-E-LA-MIASHELL> cat errore.txt
|
||||||
command is not found
|
commando non trovato
|
||||||
```
|
```
|
||||||
|
|
||||||
# Altre sfide
|
# Altre sfide
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue