Warning: session_start(): open(/var/cpanel/php/sessions/ea-php54/sess_2dr4l1s3am612gu2dr3kr3cq96, O_RDWR) failed: No space left on device (28) in /home/svadan38/public_html/calculatoare/c/IMPLEMENTAREA-STIVELOR-PRIN-TI55253.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/svadan38/public_html/calculatoare/c/IMPLEMENTAREA-STIVELOR-PRIN-TI55253.php:2) in /home/svadan38/public_html/calculatoare/c/IMPLEMENTAREA-STIVELOR-PRIN-TI55253.php on line 2
IMPLEMENTAREA STIVELOR PRIN TIPUL TABLOU
  Scrigroup - Documente si articole

Username / Parola inexistente      

Home Documente Upload Resurse Alte limbi doc  


AccessAdobe photoshopAlgoritmiAutocadBaze de dateCC sharp
CalculatoareCorel drawDot netExcelFox proFrontpageHardware
HtmlInternetJavaLinuxMatlabMs dosPascal
PhpPower pointRetele calculatoareSqlTutorialsWebdesignWindows
WordXml


IMPLEMENTAREA STIVELOR PRIN TIPUL TABLOU

c

+ Font mai mare | - Font mai mic





DOCUMENTE SIMILARE

Trimite pe Messenger
Domeniu; variabile externe
Constante simbolice
Switch
PROGRAMAREA STRUCTURILOR DE DATE IN C++
Memoria partajata
Tablouri de caractere
Struct (inregistrarea)
Pointeri pe caractere si functii
FUNCTII SI STRUCTURA PROGRAMULUI
TRAVERSAREA GRAFURILOR NEORIENTATE

TERMENI importanti pentru acest document

IMPLEMENTAREA STIVELOR PRIN TIPUL TABLOU

#include<stdio.h>

#include<conio.h>

#include<alloc.h>




#include<ctype.h>

#define lungime_max 10

typedef int tipelem;

typedef struct

Stiva;

int er;

void initializare(Stiva *s)

/* intitializare */

int stivid(Stiva s)

/* stvid */

tipelem virfst(Stiva s)

else return s.elemente[s.varf];

} /* virfst */

void pop(Stiva *s,tipelem *x)

else

} /* pop */

void push(tipelem x,Stiva *s)

else

} /* push */

void listare(Stiva s) /* afiseza continutul stivei */

else

}/* listare*/

int cautare(tipelem x,Stiva s)

void enter(void)

/* enter */

int main(void)

else printf('Ati intr. elem. de alt tip!n');

printf('Introduceti?[D/N]:');fflush(stdin);scanf('%c',&ch);

ch=toupper(ch);

}

break;

case 'I':

else printf('Ati intr. elem. de alt tip!n');



break;

case 'V':

clrscr();

er=0;

x=virfst(s);

if (!er)

printf('Elementul din varful stivei: %dn',x);

break;

case 'S':

clrscr();

er=0;

pop(&s,&x);

if (!er)

printf('Am suprimat elementul %d.n',x);

break;

case 'T':

clrscr();

printf('Introduceti elem.( nr. intreg, max. 5 caractere):');

fflush(stdin);n=scanf('%d',&x);

if(n!=0)

else printf('Ati introdus element de alt tip'An');

break;

case 'F':

clrscr();

if (stivid(s))

printf('Eroare: stiva este vida.n');

else

else printf('Ati introdus element de alt tip!n');

}

break;

case 'L':

clrscr();

listare(s);

break;

} /*switch */

enter();

}

while (op!='E');

return 0;

} /* main */






Politica de confidentialitate



DISTRIBUIE DOCUMENTUL

Comentarii


Vizualizari: 676
Importanta: rank

Comenteaza documentul:

Te rugam sa te autentifici sau sa iti faci cont pentru a putea comenta

Creaza cont nou

Termeni si conditii de utilizare | Contact
© SCRIGROUP 2022 . All rights reserved

Distribuie URL

Adauga cod HTML in site


Warning: Unknown: open(/var/cpanel/php/sessions/ea-php54/sess_2dr4l1s3am612gu2dr3kr3cq96, O_RDWR) failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/cpanel/php/sessions/ea-php54) in Unknown on line 0