Results 1 to 5 of 5
Hybrid View
-
8th December 2011 02:05 #1
? C, linked lists, malloc, typedef, etc...
! , , , .. dynamic memory allocation, - . , , .
:
, list_item_struct list_item. list_item - list_item_struct? list_item *next ? , list_item , list_item_struct ?Code:typedef struct list_item_struct { char word[32]; int freq; struct list_item_struct * next; } list_item;

.. Inception...D80; 50/1.8D; Tamron 70-300; 18-55 VR;
-
8th December 2011 07:29 #2
, . .
| Aorus X570 Master | Ryzen 9 5900X | Hellhound 7900XT | G.SKILL 32GB DDR4 3800 CL16 | Enermax Galaxy 1000W | SSD Corsair MP510 960GB & WD-RE3 2 x 1TB RAID0 | Pioneer BDR-209EBK | Creative X-Fi Titanium Fatal1ty & GigaWorks S750 | ViewSonic VX3276-2K-MHD |
-
8th December 2011 17:06 #3
- ? :
list_item_struct list_item? , , ? ?
, , typedef :
:Code:typedef < > < >
mystructure .Code:typedef struct { int a[10]; char b[32]; } mystructure;
.. :
typedef < list_item_struct, > < , list_item>
, :
?Code:struct list_item_struct { char word[32]; int freq; struct list_item_struct * next; }; typedef struct list_item_struct list_item;
....D80; 50/1.8D; Tamron 70-300; 18-55 VR;
-
8th December 2011 17:20 #4
, C C++.
C++, , :
:Code:struct Point { double x, y; };
C, , , , :Code:Point p = {2.5, 3};
, , , "struct T < >".Code:struct Point p = {2.5, 3};
- , struct .
, ( C):
"struct _Point" "Point" .Code:struct _Point { double x, y; }; typedef struct _Point Point;
, , .
, , , Point - "struct _Point" , :
, "Point" (*). , .Code:struct _Point { double x, y; struct _Point* next; // (*) }; typedef struct _Point Point;
, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
8th December 2011 18:11 #5




Reply With Quote


Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in