Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL list object Pin
mjackson1123-Apr-04 1:37
mjackson1123-Apr-04 1:37 
GeneralChar* -> DWORD conversion Pin
__Cerb22-Apr-04 11:14
__Cerb22-Apr-04 11:14 
GeneralRe: Char* -> DWORD conversion Pin
ravjak22-Apr-04 11:28
ravjak22-Apr-04 11:28 
GeneralRe: Char* -> DWORD conversion Pin
__Cerb22-Apr-04 11:31
__Cerb22-Apr-04 11:31 
GeneralRe: Char* -> DWORD conversion Pin
Michael Dunn22-Apr-04 16:42
sitebuilderMichael Dunn22-Apr-04 16:42 
GeneralProblem overloading operators in templated classes Pin
22-Apr-04 10:36
suss22-Apr-04 10:36 
GeneralRe: Problem overloading operators in templated classes Pin
mjackson1122-Apr-04 12:29
mjackson1122-Apr-04 12:29 
GeneralTest your C++ knowledge with these questions! Pin
soer22-Apr-04 10:17
soer22-Apr-04 10:17 
Hi, I just came up with some quick C++ problems that I thought some people might like to try out. Post your answers as replies. Good luck!

1) Identify any errors in the following declarations.

a. int x[4] = { 8,7,6,4,3 };
b. int x[] = { 8,7,6,4 };
c. const int SIZE = 4;
int x[SIZE];

2) What is wrong with the following piece of code?

int sample_array[10];

for (int index=1; index<=10; index++)
sample_array[index] = 3*index;

3) Suppose we expect the elements of the array a to be ordered so that
a[0] <= a[1] <= a[2] <=…

However, to be safe we want our program to test the array and issue a warning in case it turns out that some elements are out of order. The following code is supposed to output such a warning, but it contains a bug. What is it?

double a[10];
<some code="" to="" fill="" the="" array="" a="" goes="" here.="">
for (int index = 0; index <10; index++)
if(a[index] > a[index +1])
cout <<”Array elements”<
GeneralRe: Test your C++ knowledge with these questions! Pin
Navin22-Apr-04 10:39
Navin22-Apr-04 10:39 
GeneralRe: Test your C++ knowledge with these questions! Pin
Antony M Kancidrowski22-Apr-04 10:58
Antony M Kancidrowski22-Apr-04 10:58 
GeneralRe: Test your C++ knowledge with these questions! Pin
ravjak22-Apr-04 11:33
ravjak22-Apr-04 11:33 
GeneralRe: Test your C++ knowledge with these questions! Pin
soer22-Apr-04 16:21
soer22-Apr-04 16:21 
GeneralRe: Test your C++ knowledge with these questions! Pin
FlyingDancer22-Apr-04 14:27
FlyingDancer22-Apr-04 14:27 
QuestionHow to display a transparent PNG using CxImage??? Pin
randythawkins22-Apr-04 9:21
randythawkins22-Apr-04 9:21 
Generaldrawing dot and rect Pin
lvidot22-Apr-04 7:22
lvidot22-Apr-04 7:22 
GeneralRe: drawing dot and rect Pin
jmkhael22-Apr-04 7:32
jmkhael22-Apr-04 7:32 
GeneralTrace to Output window or Command Window in MSDEV Pin
pny22-Apr-04 7:02
pny22-Apr-04 7:02 
GeneralRe: Trace to Output window or Command Window in MSDEV Pin
jmkhael22-Apr-04 7:08
jmkhael22-Apr-04 7:08 
GeneralRe: Trace to Output window or Command Window in MSDEV Pin
pny22-Apr-04 8:00
pny22-Apr-04 8:00 
GeneralRe: Trace to Output window or Command Window in MSDEV Pin
David Crow22-Apr-04 9:28
David Crow22-Apr-04 9:28 
GeneralRe: Trace to Output window or Command Window in MSDEV Pin
pny22-Apr-04 20:25
pny22-Apr-04 20:25 
GeneralRe: Trace to Output window or Command Window in MSDEV Pin
Michael Dunn22-Apr-04 16:45
sitebuilderMichael Dunn22-Apr-04 16:45 
GeneralCMapStringToOb problem in MFC COM DLL Pin
Ed K22-Apr-04 6:35
Ed K22-Apr-04 6:35 
GeneralRe: CMapStringToOb problem in MFC COM DLL Pin
basementman22-Apr-04 7:58
basementman22-Apr-04 7:58 
GeneralFiles &amp; strings Pin
roadragedave22-Apr-04 5:46
roadragedave22-Apr-04 5:46 

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.