Citation :
using namespace System;
__gc struct impr
{
String* proc;
int duree;
};
__gc struct file {
impr* elem;
struct file *elemprochain;
};
void initFile(file *t,file *q)
{
t=NULL;
q=NULL;
}
int fileVide(file *t)
{
if (t == NULL)
{
return 1;
}
else
{
return 0;
}
}
void ajoutFile(file *q,impr* donnee)
{
file *ptra;
ptra = new file();
ptra->elem = donnee;
ptra->elemprochain = q;
q = ptra;
}
void retraitFile(file *t,impr* donnee)
{
file* ptra;
ptra = t;
donnee = t->elem;
t = t->elemprochain;
delete ptra; }
|