Documente online.
Zona de administrare documente. Fisierele tale
Am uitat parola x Creaza cont nou
 HomeExploreaza
upload
Upload




Определение «нового» типа данных

Rusa


В языке «C» предусмотрена возможность, называемая typedef



typedef int length;

length int «Тип» length int

length len, maxlen;

length *lengths[];

typedef char string

string char*

string p, lineptr[lines], alloc();

typedef typedef typedef extern static

typedef

typedef struct tnode // Узел дерева



treenode, *treeptr;

treenode и treeptr talloc

treeptr talloc

typedef переменные, описанные явным образом. По существу конструкция typedef #define за исключением того, что она интерпретируется компилятором и потому может осуществлять подстановки текста, которые выходят за пределы возможностей макропроцессора языка «C». Например,

typedef int pfi

pfi int



pfi strcmp numcmp swap

typedef typedef typedef short int long typedef treeptr lint typedef




Document Info


Accesari: 806
Apreciat: hand-up

Comenteaza documentul:

Nu esti inregistrat
Trebuie sa fii utilizator inregistrat pentru a putea comenta


Creaza cont nou

A fost util?

Daca documentul a fost util si crezi ca merita
sa adaugi un link catre el la tine in site


in pagina web a site-ului tau.




eCoduri.com - coduri postale, contabile, CAEN sau bancare

Politica de confidentialitate | Termenii si conditii de utilizare




Copyright © Contact (SCRIGROUP Int. 2025 )