Click here to Skip to main content
16,005,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBase class initialization problem Pin
pesho293223-Jun-05 5:09
pesho293223-Jun-05 5:09 
GeneralRe: Base class initialization problem Pin
Jose Lamas Rios23-Jun-05 5:34
Jose Lamas Rios23-Jun-05 5:34 
GeneralRe: Base class initialization problem Pin
pesho293223-Jun-05 21:29
pesho293223-Jun-05 21:29 
GeneralFile Properties Pin
Rage23-Jun-05 4:22
professionalRage23-Jun-05 4:22 
GeneralRe: File Properties Pin
David Crow23-Jun-05 4:36
David Crow23-Jun-05 4:36 
GeneralRe: File Properties Pin
Rage23-Jun-05 20:54
professionalRage23-Jun-05 20:54 
GeneralRe: File Properties Pin
David Crow24-Jun-05 2:33
David Crow24-Jun-05 2:33 
GeneralHELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
Ana-bahy23-Jun-05 3:32
Ana-bahy23-Jun-05 3:32 
//header file
/////////////////////////////////////////////

node* next;
};

class cqueuetype
{
public:
cqueuetype();
void EnqueueRear(node* newNode);
void display();
bool isempty();
void makeEmpty();
void save();
void load();
void find();
void find1();
char infile();
void num_of_memo();


private:
node* rear;
node* front;
int counter;
};
//////////////////////////////////////////////


//Part of da cpp
//////////////////////////////////////////////
void cqueuetype::save()
{
node* saving=front;

ofstream outfile("c:\\queue.txt",ios::out);
if(!outfile)
{
cout<<"Can not find drive"<<endl;
}
="" else
="" {
="" outfile<<counter<<endl;
=""
="" while="" (saving="" !="NULL)
" outfile<<"title:"<<endl;
="" outfile<<"="" "<<saving-="">Title<<endl;;
outfile<<"date="" &="" time:"<<endl;
="" outfile<<"="" "<<saving-="">Date_Time<<endl;
outfile<<"memo:"<<endl;
="" outfile<<"="" "<<saving-="">Content<<endl;
outfile<<"....................................."<<endl;


="" saving="saving-">next;
}
outfile.close ();
}

}

And here is an example of da file it saved


2
TITLE:
Bad Day
Date & Time:
06/19/2005 04:19:27 PM
MEMO:
Today is da worst day in my life..
.....................................
TITLE:
Good Day
Date & Time:
06/20/2005 04:19:27 PM
MEMO:
Today is a Good day.
.....................................



Now this (2) is the number of memos in my file
but now i got a problem which is...as soon as close my programe and run it again , and ask da program to display da memos , it cant display it well , cause it cant read it from da file...
da other problem is , if i added a new entry before i load da file , all da old enteries will be deleted... it will over write on it...

So... i need to know what shall i do , and what is da prober load function i can use , where i have 3 string , in dat node i load....
My regards ,
Bahy
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
Cedric Moonen23-Jun-05 3:47
Cedric Moonen23-Jun-05 3:47 
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
ana_bahy23-Jun-05 3:55
ana_bahy23-Jun-05 3:55 
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
ana_bahy23-Jun-05 3:57
ana_bahy23-Jun-05 3:57 
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
ana_bahy23-Jun-05 4:02
ana_bahy23-Jun-05 4:02 
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
Cedric Moonen23-Jun-05 4:05
Cedric Moonen23-Jun-05 4:05 
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
Cedric Moonen23-Jun-05 4:03
Cedric Moonen23-Jun-05 4:03 
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
ana_bahy23-Jun-05 4:07
ana_bahy23-Jun-05 4:07 
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
Cedric Moonen23-Jun-05 4:13
Cedric Moonen23-Jun-05 4:13 
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
ana_bahy23-Jun-05 4:17
ana_bahy23-Jun-05 4:17 
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
Bob Stanneveld23-Jun-05 4:34
Bob Stanneveld23-Jun-05 4:34 
GeneralOnChangeEdit needs to be paused Pin
Anonymous23-Jun-05 3:32
Anonymous23-Jun-05 3:32 
GeneralRe: OnChangeEdit needs to be paused Pin
Cedric Moonen23-Jun-05 3:53
Cedric Moonen23-Jun-05 3:53 
GeneralRe: OnChangeEdit needs to be paused Pin
Blake Miller23-Jun-05 5:01
Blake Miller23-Jun-05 5:01 
GeneralRe: OnChangeEdit needs to be paused Pin
Cedric Moonen23-Jun-05 6:13
Cedric Moonen23-Jun-05 6:13 
GeneralRe: OnChangeEdit needs to be paused Pin
Blake Miller23-Jun-05 3:58
Blake Miller23-Jun-05 3:58 
Questionhow to Rotate,translate ,scale a polygon Pin
pradish23-Jun-05 3:31
pradish23-Jun-05 3:31 
AnswerRe: how to Rotate,translate ,scale a polygon Pin
Budric B.23-Jun-05 5:41
Budric B.23-Jun-05 5:41 

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.