Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Finding hex pattrens in file Pin
Nibu babu thomas2-May-06 22:06
Nibu babu thomas2-May-06 22:06 
GeneralRe: Finding hex pattrens in file Pin
aamir ali2-May-06 23:46
aamir ali2-May-06 23:46 
QuestionProb with GetKeyState Pin
cpp_prgmer2-May-06 18:52
cpp_prgmer2-May-06 18:52 
QuestionTAPI hold/Resume Transfer Pin
sanju_kg2-May-06 18:19
sanju_kg2-May-06 18:19 
AnswerRe: TAPI hold/Resume Transfer Pin
voorugonda prashanth2-May-06 19:10
voorugonda prashanth2-May-06 19:10 
Questionright click on any File / Folder Pin
rajeevktripathi2-May-06 18:09
rajeevktripathi2-May-06 18:09 
AnswerRe: right click on any File / Folder Pin
Nibu babu thomas2-May-06 18:41
Nibu babu thomas2-May-06 18:41 
Questionhow to get all possible randomized number.. Pin
makaveli_072-May-06 16:57
makaveli_072-May-06 16:57 
i need a help where the program must give a with a randomizing number...a number must repeat 4 times da same 13 digits then bring it to straight line by lefting space in between...

for example:
digit entered 0123456789123

randomized as:
1234567890123
1234567890123
1234567890123
1234567890123

bring to straight line:
1234567890123 1234567890123 1234567890123 1234567890123

and then continue the same thing with other randomized number..
-----------------------------------------------------------------------------
This is the code i ve done..pls help me with this..

#include <iostream.h>

int i;
void createArithmeticSeq();
void matricize(int number[], const aa);
void reverseDiagonal(int number2d[][4], const aa);

void main()
{

createArithmeticSeq();//go to sequence function

}



void createArithmeticSeq()
{
const aa = 15;
int number[aa];
i=0;
int num,diff;
cout<<"Enter a digit:"<<endl;
="" cin="">>num;
cout<<"Enter the difference:"<<endl;
="" cin="">>diff;
number[i]=num;
cout<<"the sequence is:"<<endl;
creating="" the="" sequence="" for="" numbers="" and="" diffrence
="" while(i<aa)
="" {
="" i++;
="" number[i]="number[i-1]+diff;
" cout<<number[i]<<"="" ";
="" }
="" cout<<endl;
="" matricize(number,="" aa);="" this="" goes="" to="" matrice="" function
=""

}



void="" matricize(int="" number[],="" const="" aa)
{
="" int="" j="0;
" k="0;
" c1="4;
" c2="4;
" number2d[c1][c2];
="" i="0;
" cout<<"the="" number="" of="" is="" 2="" dimensional="" array="" is:="" "<<endl;
="" converting="" from="" 1="" 2dimensional
="" number2d[0][0]="number[0];
"
="" if(j="">2)
{
i++;
k++;
j=0;
number2d[j][k]=number[i];
cout<<endl;
}
="" else
="" {
="" i++;
="" j++;
="" number2d[j][k]="number[i];
" cout<<number2d[j][k]<<"="" ";
=""
="" }



cout<<endl;

="" reversediagonal(number2d,aa);="" this="" is="" reversediagonal="" function
}


void="" reversediagonal(int="" number2d[][4],="" const="" aa)
{
="" int="" temp;
="" j="0;
" k="0;
//reversing" the="" numbers="" from="" left="" to="" right="" diagonal
="" temp="number2d[0][0];
" number2d[0][0]="number2d[3][3];
" number2d[3][3]="temp;
" number2d[1][1]="number2d[2][2];
" number2d[2][2]="temp;
//reversing" number="" number2d[3][0]="number2d[0][3];
" number2d[0][3]="temp;
" number2d[2][1]="number2d[1][2];
" number2d[1][2]="temp;


" cout<<"the="" sequence="" in="" 2-dimensional="" array="" after="" reverse="" diagonal="" :"<<endl;

="" while(i<aa)

="" if(j="">2)

{
k++;
j=0;

cout<
AnswerRe: how to get all possible randomized number.. Pin
Stephen Hewitt2-May-06 18:05
Stephen Hewitt2-May-06 18:05 
GeneralRe: how to get all possible randomized number.. Pin
makaveli_072-May-06 18:20
makaveli_072-May-06 18:20 
GeneralRe: how to get all possible randomized number.. Pin
Stephen Hewitt2-May-06 18:25
Stephen Hewitt2-May-06 18:25 
GeneralRe: how to get all possible randomized number.. Pin
makaveli_072-May-06 18:34
makaveli_072-May-06 18:34 
GeneralRe: how to get all possible randomized number.. Pin
Stephen Hewitt2-May-06 18:37
Stephen Hewitt2-May-06 18:37 
GeneralRe: how to get all possible randomized number.. Pin
makaveli_072-May-06 18:55
makaveli_072-May-06 18:55 
GeneralRe: how to get all possible randomized number.. Pin
Stephen Hewitt2-May-06 18:58
Stephen Hewitt2-May-06 18:58 
QuestionMultiple Writers with IStorage Pin
dchuber20002-May-06 12:40
dchuber20002-May-06 12:40 
Questionsockets in mfc Pin
proach2-May-06 11:31
proach2-May-06 11:31 
QuestionInflate EXE on startup Pin
Andre xxxxxxx2-May-06 10:44
Andre xxxxxxx2-May-06 10:44 
AnswerRe: Inflate EXE on startup Pin
Justin Tay2-May-06 23:33
Justin Tay2-May-06 23:33 
QuestionReceiving a RPC_S_SERVER_UNAVAILABLE (1722) Error After Calling GetEffectiveRightsFromAcl Pin
Edward Abrahim2-May-06 9:57
Edward Abrahim2-May-06 9:57 
AnswerRe: Receiving a RPC_S_SERVER_UNAVAILABLE (1722) Error After Calling GetEffectiveRightsFromAcl Pin
Hamid_RT2-May-06 19:55
Hamid_RT2-May-06 19:55 
QuestionRight Click on a Button Message Pin
eurosic2-May-06 9:55
eurosic2-May-06 9:55 
AnswerRe: Right Click on a Button Message Pin
PJ Arends2-May-06 15:01
professionalPJ Arends2-May-06 15:01 
AnswerRe: Right Click on a Button Message Pin
Michael Dunn2-May-06 15:24
sitebuilderMichael Dunn2-May-06 15:24 
AnswerRe: Right Click on a Button Message Pin
Hamid_RT2-May-06 19:27
Hamid_RT2-May-06 19:27 

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.