Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
#include
#include
#define STRLEN 1024 #define MAX_ITERAZIONI 30 #define S_MIN 2 #define S_MAX 3 #define B_MIN 3 #define B_MAX 3 #define ALIVE 1 #define DEAD 0 typedef int* pint; typedef int** ppint; typedef char* pchar; int get_int(pchar q) { char input[STRLEN]; printf("%s: ",q); scanf("%s",input); return atoi(input); } int frame(ppint ppcasella, int nr, int nc) { } int print_tab(ppint ppcasella, int nr, int nc) { ppint pprmax; pint pcmax; for (pprmax=ppcasella+nr;ppcasella
100)) printf("Per favore, inserisci un numero nell'intervallo [0,100].\n"); else check=0; } while (check); //printf("Ho acquisito i seguenti valori:\nRighe: %d,\nColonne: %d,\nTotale caselle: %d,\nDensita': %d.\n",nr,nc,(ntot=(nc*nr)),life); printf("Uno"); if((ppcasella=(ppint)malloc(sizeof(pint)*nr))==NULL) goto err_mem; printf("due"); //if((ppcasellaswap=(ppint)malloc(sizeof(pint)*nr))==NULL) goto err_mem; for (i=0;i
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)