Click here to Skip to main content
15,906,097 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Is it possible that the operation Insert AND DeleteMinimum on some data structure be done in constant time. Pin
JERKII.SHANG14-Mar-06 15:02
JERKII.SHANG14-Mar-06 15:02 
AnswerRe: Is it possible that the operation Insert AND DeleteMinimum on some data structure be done in constant time. Pin
David Crow15-Mar-06 2:56
David Crow15-Mar-06 2:56 
AnswerRe: Is it possible that the operation Insert AND DeleteMinimum on some data structure be done in constant time. Pin
Dan McCormick15-Mar-06 4:04
Dan McCormick15-Mar-06 4:04 
GeneralRe: Is it possible that the operation Insert AND DeleteMinimum on some data structure be done in constant time. Pin
JERKII.SHANG15-Mar-06 13:13
JERKII.SHANG15-Mar-06 13:13 
QuestionEnable an dit box Pin
beardy janggut14-Mar-06 14:33
beardy janggut14-Mar-06 14:33 
AnswerRe: Enable an dit box Pin
Nibu babu thomas14-Mar-06 16:54
Nibu babu thomas14-Mar-06 16:54 
AnswerRe: Enable an dit box Pin
ThatsAlok14-Mar-06 18:01
ThatsAlok14-Mar-06 18:01 
QuestionArray size Pin
hint_5414-Mar-06 14:11
hint_5414-Mar-06 14:11 
Hi there..

Anybody knows a way (if it is even possible) to determine an array's size. Something like this:

int GetSize( int* pArray )
{
  // Should return the number of elements on the array
}

int main( void )
{
 int* pArray;

 pArray = new int[ 20 ]; // MARK

 printf( "%d\n", GetSize( pArray ) * sizeof( int ) ); // Should output the number of bytes allocated at MARK

 return 0;
}


regards [[]]

hint_54
AnswerRe: Array size Pin
Michael Dunn14-Mar-06 16:53
sitebuilderMichael Dunn14-Mar-06 16:53 
GeneralRe: Array size Pin
hint_5415-Mar-06 5:46
hint_5415-Mar-06 5:46 
AnswerRe: Array size Pin
Stephen Hewitt14-Mar-06 17:07
Stephen Hewitt14-Mar-06 17:07 
GeneralRe: Array size Pin
ThatsAlok14-Mar-06 18:13
ThatsAlok14-Mar-06 18:13 
AnswerRe: Array size Pin
JERKII.SHANG15-Mar-06 13:20
JERKII.SHANG15-Mar-06 13:20 
AnswerRe: Array size Pin
JERKII.SHANG15-Mar-06 13:28
JERKII.SHANG15-Mar-06 13:28 
GeneralRe: Array size Pin
hint_5415-Mar-06 13:34
hint_5415-Mar-06 13:34 
Questionbeginner ask for DirectX Pin
Karlzheng14-Mar-06 13:35
Karlzheng14-Mar-06 13:35 
QuestionDual language GUI Pin
JBAK_CP14-Mar-06 12:47
JBAK_CP14-Mar-06 12:47 
AnswerRe: Dual language GUI Pin
Maximilien14-Mar-06 13:50
Maximilien14-Mar-06 13:50 
Questionhow to disable Close button? Pin
includeh1014-Mar-06 12:37
includeh1014-Mar-06 12:37 
AnswerRe: how to disable Close button? Pin
Nibu babu thomas14-Mar-06 16:55
Nibu babu thomas14-Mar-06 16:55 
AnswerRe: how to disable Close button? Pin
ThatsAlok14-Mar-06 18:14
ThatsAlok14-Mar-06 18:14 
Questionneed code for PhoneCall program Pin
calizdesi14-Mar-06 11:36
calizdesi14-Mar-06 11:36 
AnswerRe: need code for PhoneCall program Pin
hint_5414-Mar-06 13:56
hint_5414-Mar-06 13:56 
GeneralRe: need code for PhoneCall program Pin
calizdesi15-Mar-06 12:52
calizdesi15-Mar-06 12:52 
GeneralRe: need code for PhoneCall program Pin
hint_5415-Mar-06 13:22
hint_5415-Mar-06 13:22 

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.