Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionInternet to USB application Pin
2buck5613-Apr-09 9:17
2buck5613-Apr-09 9:17 
AnswerRe: Internet to USB application Pin
bulg13-Apr-09 12:08
bulg13-Apr-09 12:08 
GeneralRe: Internet to USB application Pin
2buck5613-Apr-09 13:04
2buck5613-Apr-09 13:04 
QuestionMore specific question, help please Pin
bulg13-Apr-09 14:32
bulg13-Apr-09 14:32 
AnswerRe: More specific question, help please Pin
2buck5613-Apr-09 15:58
2buck5613-Apr-09 15:58 
AnswerRe: Internet to USB application Pin
Iain Clarke, Warrior Programmer14-Apr-09 4:02
Iain Clarke, Warrior Programmer14-Apr-09 4:02 
GeneralRe: Internet to USB application Pin
2buck5614-Apr-09 5:01
2buck5614-Apr-09 5:01 
QuestionSet Class - Insert Function Pin
aab1990213-Apr-09 7:28
aab1990213-Apr-09 7:28 
I am working on a set class and I have successfully written an insert function, but I need the function to insert in an ordered fashion.

bool Set::insert( const EType & A )
{
   bool Flag = false;
   unsigned Position = 0;
   Node * Prev = Head;
   Node * Curr = Head->Succ;
   Node * Temp;

   Temp = new Node;
   if (Temp != NULL )
   {
      Temp->Item = A;
      Temp->Succ = Curr;
      Prev->Succ = Temp;
      Num++;
      Flag = true;
   }
   return Flag;
}

Set::Set()
{
   Num = 0;
   Head = new (nothrow) Node;
   Head->Succ = NULL;
}

class Set
{
  private:

    struct Node
    {
      EType Item;     // User data item
      Node * Succ;    // Link to the node's successor
    };

    unsigned Num;     // Number of user data items in the set
    Node * Head;      // Link to the head of the chain


Tell me if anything else is needed
AnswerRe: Set Class - Insert Function Pin
David Crow13-Apr-09 7:32
David Crow13-Apr-09 7:32 
QuestionDetect copied file? Pin
steve7606313-Apr-09 6:57
steve7606313-Apr-09 6:57 
AnswerRe: Detect copied file? Pin
David Crow13-Apr-09 7:28
David Crow13-Apr-09 7:28 
GeneralRe: Detect copied file? Pin
steve7606313-Apr-09 8:40
steve7606313-Apr-09 8:40 
GeneralRe: Detect copied file? Pin
Luc 64801113-Apr-09 9:45
Luc 64801113-Apr-09 9:45 
AnswerRe: Detect copied file? [modified] Pin
steve7606313-Apr-09 11:04
steve7606313-Apr-09 11:04 
AnswerRe: Detect copied file? Pin
john563213-Apr-09 19:48
john563213-Apr-09 19:48 
QuestionDeleted File Pin
recmisi13-Apr-09 6:34
recmisi13-Apr-09 6:34 
AnswerRe: Deleted File Pin
David Crow13-Apr-09 9:00
David Crow13-Apr-09 9:00 
GeneralRe: Deleted File Pin
recmisi13-Apr-09 16:33
recmisi13-Apr-09 16:33 
GeneralRe: Deleted File Pin
john563213-Apr-09 19:45
john563213-Apr-09 19:45 
AnswerRe: Deleted File Pin
Divyang Mithaiwala13-Apr-09 20:58
Divyang Mithaiwala13-Apr-09 20:58 
QuestionHow to cancel during serialization on CDocument Pin
Joseph Marzbani13-Apr-09 5:21
Joseph Marzbani13-Apr-09 5:21 
QuestionHow to cancel CDocument::Serialaize()? Pin
Joseph Marzbani13-Apr-09 5:17
Joseph Marzbani13-Apr-09 5:17 
QuestionQuestion on I/O stream and for loop Pin
Mohamed_Khalil13-Apr-09 2:02
Mohamed_Khalil13-Apr-09 2:02 
AnswerRe: Question on I/O stream and for loop Pin
Rajesh R Subramanian13-Apr-09 4:50
professionalRajesh R Subramanian13-Apr-09 4:50 
QuestionRe: Question on I/O stream and for loop Pin
David Crow13-Apr-09 5:08
David Crow13-Apr-09 5:08 

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.