Click here to Skip to main content
15,905,971 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Array size Pin
Michael Dunn14-Mar-06 16:53
sitebuilderMichael Dunn14-Mar-06 16:53 
You can determine the number of elements in a staticly-allocated array:
#define countof(x) (sizeof(x)/sizeof((x)[0]))
int arr[10];
size_t cElements = countof(arr);  // cElements gets 10
You cannot do this in a function, however, it's just not possible in C. That's why a function always takes an array (or pointer) and a count of elements when it has to know the array's size.


--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
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 
Questionifstream issue in Visual C++ .NET 2005 Pin
yellowine14-Mar-06 10:20
yellowine14-Mar-06 10:20 

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.