Results 1 to 3 of 3
Thread: C
Hybrid View
-
18th May 2013 21:15 #1Registered User
Join Date: May:2013
Location: Bulgaria
Posts: 1
C
! , :
( id, , 4 ..). - text . enter, , 4- .Code:typedef struct { int id; char* text; int correct_answer; char* date; char* author; int difficulty; struct Question* next; char** answer; } Question;
-
18th May 2013 23:48 #2
- fgets().
- char* answer[4]; , ..
.Code:Question q; q.answer[0] = (char*) malloc(...) q.answer[1] = (char*) malloc(...) ..
malloc, - char answer[4][256], (255 ), ., . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
19th May 2013 22:48 #3Registered User
Join Date: Nov:2005
Location:
Posts: 3,317
scanf .




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