Click here to Skip to main content
15,911,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Convert text to hexadecimal Pin
kakan26-Oct-06 1:41
professionalkakan26-Oct-06 1:41 
QuestionHow can I copy a folder from one location to another location through code Pin
sujtha26-Oct-06 0:37
sujtha26-Oct-06 0:37 
AnswerRe: How can I copy a folder from one location to another location through code Pin
Rajesh R Subramanian26-Oct-06 1:05
professionalRajesh R Subramanian26-Oct-06 1:05 
GeneralRe: How can I copy a folder from one location to another location through code Pin
David Crow26-Oct-06 3:36
David Crow26-Oct-06 3:36 
AnswerRe: How can I copy a folder from one location to another location through code Pin
Mila02526-Oct-06 1:21
Mila02526-Oct-06 1:21 
AnswerRe: How can I copy a folder from one location to another location through code Pin
Hamid_RT26-Oct-06 2:55
Hamid_RT26-Oct-06 2:55 
AnswerRe: How can I copy a folder from one location to another location through code Pin
ThatsAlok27-Oct-06 19:47
ThatsAlok27-Oct-06 19:47 
QuestionHow to read them Pin
sonyama25-Oct-06 23:54
sonyama25-Oct-06 23:54 
I use these codes to storage the data
ofstream output(filename,ios::out|ios::binary);
if (!output)
{
cout<<"Khong mo duoc file"<<endl;
exit(1);
="" }
="" output.write((char="" *)="" &n,sizeof(int));

="" for="" (i="0;i<n;i++)
" {
="" cin="">>obj[i];
}

for (i=0;i<n;i++)
{
="" output.write((char="" *)="" &obj[i],sizeof(student));
="" }
="" output.close();
but="" i="" cant="" read="" the="" data="" with="" these="" code
="" ifstream="" input(filename,ios::in|ios::binary);
="" if="" (!input)
="" cout<<"khong="" mo="" duoc="" file"<<endl;
="" exit(1);
="" input.read((char="" &n,sizeof(int));
="" student="" *obj="new" student[n];

="" for="" (i="0;i<n;i++)
" while(input.read((char="" &obj[i],sizeof(student)))
="" cout<<obj[i];
="" cout<<"\n";
="" input.close();
please="" help="" me="" to="" figure="" it="" out
thanks=""

<div="" class="ForumSig">hehe
AnswerRe: How to read them Pin
benjymous26-Oct-06 1:36
benjymous26-Oct-06 1:36 
AnswerRe: How to read them Pin
David Crow26-Oct-06 3:40
David Crow26-Oct-06 3:40 
AnswerRe: How to read them Pin
Hamid_RT26-Oct-06 19:30
Hamid_RT26-Oct-06 19:30 
QuestionDrawing square wave by getting the data from a file.. Pin
cyn825-Oct-06 23:26
cyn825-Oct-06 23:26 
AnswerRe: Drawing square wave by getting the data from a file.. Pin
Cedric Moonen25-Oct-06 23:40
Cedric Moonen25-Oct-06 23:40 
QuestionCEdit Control Pin
fabiotriolo25-Oct-06 23:13
fabiotriolo25-Oct-06 23:13 
AnswerRe: CEdit Control Pin
Cedric Moonen25-Oct-06 23:22
Cedric Moonen25-Oct-06 23:22 
AnswerRe: CEdit Control Pin
Hamid_RT26-Oct-06 2:52
Hamid_RT26-Oct-06 2:52 
GeneralRe: CEdit Control Pin
ThatsAlok26-Oct-06 19:29
ThatsAlok26-Oct-06 19:29 
GeneralRe: CEdit Control Pin
Hamid_RT26-Oct-06 19:31
Hamid_RT26-Oct-06 19:31 
QuestionRe: CEdit Control Pin
David Crow26-Oct-06 3:43
David Crow26-Oct-06 3:43 
QuestionCEdit Control Pin
fabiotriolo26-Oct-06 4:32
fabiotriolo26-Oct-06 4:32 
AnswerRe: CEdit Control Pin
ThatsAlok26-Oct-06 19:28
ThatsAlok26-Oct-06 19:28 
AnswerRe: CEdit Control Pin
Hamid_RT26-Oct-06 19:28
Hamid_RT26-Oct-06 19:28 
GeneralCEdit Control Pin
fabiotriolo27-Oct-06 0:33
fabiotriolo27-Oct-06 0:33 
GeneralRe: CEdit Control Pin
ThatsAlok27-Oct-06 20:01
ThatsAlok27-Oct-06 20:01 
Questionsum of variables of parent window Pin
prithaa25-Oct-06 23:08
prithaa25-Oct-06 23: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.