Click here to Skip to main content
15,037,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem between CPU Utilization & Data Transfer Pin
Andy Rama20-Sep-07 1:09
MemberAndy Rama20-Sep-07 1:09 
AnswerRe: Problem between CPU Utilization & Data Transfer Pin
Cedric Moonen20-Sep-07 1:19
MemberCedric Moonen20-Sep-07 1:19 
QuestionRe: Problem between CPU Utilization & Data Transfer Pin
Andy Rama20-Sep-07 1:31
MemberAndy Rama20-Sep-07 1:31 
QuestionHow to code Pin
snoop8220-Sep-07 0:06
Membersnoop8220-Sep-07 0:06 
AnswerRe: How to code Pin
Nelek20-Sep-07 0:34
protectorNelek20-Sep-07 0:34 
GeneralRe: How to code Pin
snoop8220-Sep-07 0:40
Membersnoop8220-Sep-07 0:40 
GeneralRe: How to code Pin
Nelek20-Sep-07 1:47
protectorNelek20-Sep-07 1:47 
GeneralRe: How to code Pin
snoop8220-Sep-07 2:15
Membersnoop8220-Sep-07 2:15 
Thanks i understand you are guiding me,but it this correct what i'm doing now.Please have a look and if there is mistakes please correct me.
Thank you.

#include<iostream.h>
#include<ctime>
#include<math.h>

CFile f;
if (!f.Open ("FileName.ext", CFile::modeRead))
{
//Read your ints
}

if (!f.Open ("FileName.ext", CFile::modeWrite))
{
//Write your ints
}

void CMyView::WriteFile (CFile* file)
{
int Array[LIM];

for (int i = 0; i < lim; i++)
{
//fill with random
}

int* pBuf;
pBuf = &Array[0];
file->Write (pBuf, sizeof (Array));
}



void insertionsort(T data[],int n)


{
for(int i=1,j;i
T tmp=data[i];
for(j=i;j>0&&tmp
data[j]=data[j-1];
data[j]=tmp;
}
}

void main()
{
int x, y, z;
int arr[];




getArray (arr, n);


cout<<"The array before sorting was"<<endl;

="" for="" (x="0;" x<n;="" x++)
=""

="" {
="" cout<<arr[x]<<'="" ';
="" }
="" cout<<endl;

="" insertionsort="" (arr,="" n);



="" cout<<"the="" array="" after="" sorting="" was="" (assending)"<<endl;
="" (y="0;" y<n;="" y++)
="" cout<<arr[y]<<'="" (decending)"<<endl;
="" (z="n;" z="">=0; z--)


{
cout<
GeneralRe: How to code Pin
Nelek20-Sep-07 3:05
protectorNelek20-Sep-07 3:05 
GeneralRe: How to code Pin
David Crow20-Sep-07 17:42
MemberDavid Crow20-Sep-07 17:42 
QuestionRe: How to code Pin
David Crow20-Sep-07 17:44
MemberDavid Crow20-Sep-07 17:44 
AnswerRe: How to code Pin
DevMentor.org20-Sep-07 18:20
MemberDevMentor.org20-Sep-07 18:20 
QuestionHow to use bitmap buttons Pin
Engr_Arsalan19-Sep-07 23:28
MemberEngr_Arsalan19-Sep-07 23:28 
AnswerRe: How to use bitmap buttons Pin
KarstenK19-Sep-07 23:54
mveKarstenK19-Sep-07 23:54 
GeneralRe: How to use bitmap buttons Pin
josip cagalj20-Sep-07 3:19
Memberjosip cagalj20-Sep-07 3:19 
GeneralRe: How to use bitmap buttons Pin
KarstenK20-Sep-07 3:27
mveKarstenK20-Sep-07 3:27 
GeneralRe: How to use bitmap buttons Pin
josip cagalj20-Sep-07 3:32
Memberjosip cagalj20-Sep-07 3:32 
GeneralRe: How to use bitmap buttons Pin
Engr_Arsalan24-Sep-07 20:42
MemberEngr_Arsalan24-Sep-07 20:42 
GeneralRe: How to use bitmap buttons Pin
josip cagalj24-Sep-07 22:28
Memberjosip cagalj24-Sep-07 22:28 
Question[Message Deleted] Pin
imdx8019-Sep-07 23:24
Memberimdx8019-Sep-07 23:24 
AnswerRe: VC++ Editor Quick Question, Pin
nbugalia20-Sep-07 1:33
Membernbugalia20-Sep-07 1:33 
General[Message Deleted] Pin
imdx8020-Sep-07 2:02
Memberimdx8020-Sep-07 2:02 
GeneralRe: VC++ Editor Quick Question, Pin
nbugalia20-Sep-07 2:17
Membernbugalia20-Sep-07 2:17 
Question[Message Deleted] Pin
tasumisra19-Sep-07 23:24
Membertasumisra19-Sep-07 23:24 
AnswerRe: vc++ equivalent of c# Pin
toxcct19-Sep-07 23:35
Membertoxcct19-Sep-07 23:35 

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.