Click here to Skip to main content
15,896,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I Parse the Serial Data Recieved from the Serial Port Pin
Jimmie Sypolt25-Mar-10 17:19
Jimmie Sypolt25-Mar-10 17:19 
AnswerRe: How do I Parse the Serial Data Recieved from the Serial Port Pin
loyal ginger25-Mar-10 18:08
loyal ginger25-Mar-10 18:08 
AnswerRe: How do I Parse the Serial Data Recieved from the Serial Port Pin
KingsGambit25-Mar-10 18:33
KingsGambit25-Mar-10 18:33 
GeneralRe: How do I Parse the Serial Data Recieved from the Serial Port Pin
Jimmie Sypolt25-Mar-10 20:15
Jimmie Sypolt25-Mar-10 20:15 
GeneralRe: How do I Parse the Serial Data Recieved from the Serial Port Pin
KingsGambit25-Mar-10 20:36
KingsGambit25-Mar-10 20:36 
QuestionRe: How do I Parse the Serial Data Recieved from the Serial Port Pin
David Crow26-Mar-10 4:57
David Crow26-Mar-10 4:57 
Questionconstructor and destructor [modified] Pin
zakria8125-Mar-10 15:43
zakria8125-Mar-10 15:43 
AnswerRe: constructor and destructor Pin
hanq_3891013025-Mar-10 16:51
hanq_3891013025-Mar-10 16:51 
Actually, I think the design of your class "ThreeD" is terrible.
If you are sure to implement it, the follow is for you.

class ThreeD
{
public:
ThreeD(int _l=5, int _w=5, int _d=5)
: l(_l), w(_w), d(_d)
{
data = new int**[l];
for (int i=0; i<l; ++i)
{
data[i] = new int*[w];
for (int j=0; j<w; ++j)
{
data[i][j] = new int[d];
memset(data[i][j], 0, d*sizeof(int));
}
}
}
~ThreeD()
{
for (int i=0; i<l; ++i)
{
for (int j=0; j<w; ++j)
{
delete [] (data[i][j]);
}
delete [] (data[i]);
}
delete [] data;
}

private:
int*** data;
int l, w, d;
};
AnswerRe: constructor and destructor Pin
David Crow26-Mar-10 4:59
David Crow26-Mar-10 4:59 
QuestionDisplay current time as Label control text Pin
Lucidation25-Mar-10 12:14
Lucidation25-Mar-10 12:14 
AnswerRe: Display current time as Label control text Pin
Peter_in_278025-Mar-10 16:23
professionalPeter_in_278025-Mar-10 16:23 
GeneralRe: Display current time as Label control text Pin
loyal ginger25-Mar-10 18:10
loyal ginger25-Mar-10 18:10 
AnswerRe: Display current time as Label control text Pin
BIJU Manjeri25-Mar-10 18:00
BIJU Manjeri25-Mar-10 18:00 
AnswerRe: Display current time as Label control text Pin
loyal ginger25-Mar-10 18:15
loyal ginger25-Mar-10 18:15 
GeneralRe: Display current time as Label control text Pin
Cool_Dev26-Mar-10 3:35
Cool_Dev26-Mar-10 3:35 
GeneralRe: Display current time as Label control text Pin
Lucidation26-Mar-10 5:31
Lucidation26-Mar-10 5:31 
QuestionHow to create database & tables on another machine?? Pin
Ed K25-Mar-10 9:50
Ed K25-Mar-10 9:50 
QuestionRe: How to create database & tables on another machine?? Pin
David Crow25-Mar-10 10:46
David Crow25-Mar-10 10:46 
AnswerRe: How to create database & tables on another machine?? Pin
Ed K25-Mar-10 15:20
Ed K25-Mar-10 15:20 
QuestionHow can I get VS 2008 to generate all the classes a control needs? Pin
Interrobang25-Mar-10 9:35
Interrobang25-Mar-10 9:35 
Questionvector sort method Pin
b-rad31125-Mar-10 9:13
b-rad31125-Mar-10 9:13 
AnswerRe: vector sort method Pin
Maximilien25-Mar-10 9:37
Maximilien25-Mar-10 9:37 
GeneralRe: vector sort method Pin
Luc Pattyn25-Mar-10 10:19
sitebuilderLuc Pattyn25-Mar-10 10:19 
GeneralRe: vector sort method Pin
Maximilien25-Mar-10 10:34
Maximilien25-Mar-10 10:34 
GeneralRe: vector sort method Pin
Luc Pattyn25-Mar-10 10:36
sitebuilderLuc Pattyn25-Mar-10 10:36 

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.