Click here to Skip to main content
15,799,363 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [edited] collision response in a RTS Pin
Calin Negru31-Aug-23 7:05
Calin Negru31-Aug-23 7:05 
GeneralRe: [edited] collision response in a RTS Pin
Gerry Schmitz1-Sep-23 7:26
mveGerry Schmitz1-Sep-23 7:26 
GeneralRe: [edited] collision response in a RTS Pin
Calin Negru2-Sep-23 8:35
Calin Negru2-Sep-23 8:35 
GeneralRe: [edited] collision response in a RTS Pin
Gerry Schmitz3-Sep-23 6:30
mveGerry Schmitz3-Sep-23 6:30 
QuestionDSA Pin
ZAID razvi25-Aug-23 1:50
ZAID razvi25-Aug-23 1:50 
AnswerRe: DSA Pin
CPallini25-Aug-23 2:36
mveCPallini25-Aug-23 2:36 
GeneralRe: DSA Pin
ZAID razvi25-Aug-23 2:54
ZAID razvi25-Aug-23 2:54 
GeneralRe: DSA Pin
CPallini25-Aug-23 3:10
mveCPallini25-Aug-23 3:10 
Quote:
first code doesn't actually need to free something as it is not creating a node
Neither the second one is. So the second code wrongly releases memory.

Quote:
And yes I have wrote a function 'isFull' already
But you should check for not-empty condition, with is NOT quite the same of is-full, is it?
"In testa che avete, Signor di Ceprano?"
-- Rigoletto

GeneralRe: DSA Pin
ZAID razvi25-Aug-23 5:57
ZAID razvi25-Aug-23 5:57 
GeneralRe: DSA Pin
Richard Deeming28-Aug-23 22:34
mveRichard Deeming28-Aug-23 22:34 
GeneralRe: DSA Pin
ZAID razvi28-Aug-23 22:52
ZAID razvi28-Aug-23 22:52 
GeneralRe: DSA Pin
Andre Oosthuizen29-Aug-23 3:41
mveAndre Oosthuizen29-Aug-23 3:41 
GeneralRe: DSA Pin
Richard Deeming29-Aug-23 4:11
mveRichard Deeming29-Aug-23 4:11 
GeneralRe: DSA Pin
Richard MacCutchan28-Aug-23 22:56
mveRichard MacCutchan28-Aug-23 22:56 
GeneralRe: DSA Pin
Dave Kreskowiak29-Aug-23 3:04
mveDave Kreskowiak29-Aug-23 3:04 
GeneralRe: DSA Pin
Richard Deeming29-Aug-23 4:12
mveRichard Deeming29-Aug-23 4:12 
GeneralRe: DSA Pin
CPallini30-Aug-23 3:57
mveCPallini30-Aug-23 3:57 
QuestionInvalid application of 'sizeof' to incomplete type 'struct Node' Pin
ZAID razvi22-Aug-23 21:20
ZAID razvi22-Aug-23 21:20 
AnswerRe: Invalid application of 'sizeof' to incomplete type 'struct Node' Pin
Victor Nijegorodov22-Aug-23 21:41
Victor Nijegorodov22-Aug-23 21:41 
GeneralRe: Invalid application of 'sizeof' to incomplete type 'struct Node' Pin
ZAID razvi25-Aug-23 0:45
ZAID razvi25-Aug-23 0:45 
AnswerRe: Invalid application of 'sizeof' to incomplete type 'struct Node' Pin
CPallini22-Aug-23 22:06
mveCPallini22-Aug-23 22:06 
PraiseRe: Invalid application of 'sizeof' to incomplete type 'struct Node' Pin
ThatsAlok23-Aug-23 18:01
ThatsAlok23-Aug-23 18:01 
GeneralOT Pin
CPallini23-Aug-23 20:59
mveCPallini23-Aug-23 20:59 
GeneralRe: Invalid application of 'sizeof' to incomplete type 'struct Node' Pin
ZAID razvi25-Aug-23 0:43
ZAID razvi25-Aug-23 0:43 
GeneralRe: Invalid application of 'sizeof' to incomplete type 'struct Node' Pin
CPallini25-Aug-23 0:47
mveCPallini25-Aug-23 0:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.