Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Pages: 1
Hi,
Is there any possible that we can pre-declare fuction in scol?
like C language
void add(int a, int b);
main()
{
add(1,2);
}
void add(int a ,int b)
{
}
Offline
Ok,I got it
/* functions which refer to each other */
proto g= fun[i] I;;
fun f(x)= if x>0 then 1+ g x-1 else 0;;
fun g(x)= if x>0 then 1+ f x-1 else 0;;
thanks guys
Offline
Pages: 1