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

C / C++ / MFC

 
QuestionProblem between CPU Utilization & Data Transfer Pin
Andy Rama20-Sep-07 1:09
Andy Rama20-Sep-07 1:09 
AnswerRe: Problem between CPU Utilization & Data Transfer Pin
Cedric Moonen20-Sep-07 1:19
Cedric Moonen20-Sep-07 1:19 
QuestionRe: Problem between CPU Utilization & Data Transfer Pin
Andy Rama20-Sep-07 1:31
Andy Rama20-Sep-07 1:31 
QuestionHow to code Pin
snoop8220-Sep-07 0:06
snoop8220-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
snoop8220-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
snoop8220-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
David Crow20-Sep-07 17:42 
QuestionRe: How to code Pin
David Crow20-Sep-07 17:44
David Crow20-Sep-07 17:44 
AnswerRe: How to code Pin
DevMentor.org20-Sep-07 18:20
DevMentor.org20-Sep-07 18:20 
QuestionHow to use bitmap buttons Pin
Engr_Arsalan19-Sep-07 23:28
Engr_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
josip 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
josip cagalj20-Sep-07 3:32 
GeneralRe: How to use bitmap buttons Pin
Engr_Arsalan24-Sep-07 20:42
Engr_Arsalan24-Sep-07 20:42 
GeneralRe: How to use bitmap buttons Pin
josip cagalj24-Sep-07 22:28
josip cagalj24-Sep-07 22:28 
Question[Message Deleted] Pin
imdx8019-Sep-07 23:24
imdx8019-Sep-07 23:24 
AnswerRe: VC++ Editor Quick Question, Pin
nbugalia20-Sep-07 1:33
nbugalia20-Sep-07 1:33 
General[Message Deleted] Pin
imdx8020-Sep-07 2:02
imdx8020-Sep-07 2:02 
GeneralRe: VC++ Editor Quick Question, Pin
nbugalia20-Sep-07 2:17
nbugalia20-Sep-07 2:17 
Question[Message Deleted] Pin
tasumisra19-Sep-07 23:24
tasumisra19-Sep-07 23:24 
AnswerRe: vc++ equivalent of c# Pin
toxcct19-Sep-07 23:35
toxcct19-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.