Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: memory problems in borlandc 3.1 Pin
CPallini30-Dec-06 3:16
mveCPallini30-Dec-06 3:16 
GeneralRe: memory problems in borlandc 3.1 Pin
Paul Conrad30-Dec-06 13:11
professionalPaul Conrad30-Dec-06 13:11 
QuestionDebug Assertion Failed!-Combo Box- vc++ 8. Pin
$uresh $hanmugam30-Dec-06 1:28
$uresh $hanmugam30-Dec-06 1:28 
AnswerRe: Debug Assertion Failed!-Combo Box- vc++ 8. Pin
Gary R. Wheeler30-Dec-06 3:20
Gary R. Wheeler30-Dec-06 3:20 
AnswerRe: Debug Assertion Failed!-Combo Box- vc++ 8. Pin
Hamid_RT30-Dec-06 5:44
Hamid_RT30-Dec-06 5:44 
GeneralRe: Debug Assertion Failed!-Combo Box- vc++ 8. Pin
$uresh $hanmugam7-Jan-07 21:16
$uresh $hanmugam7-Jan-07 21:16 
GeneralRe: Debug Assertion Failed!-Combo Box- vc++ 8. Pin
Hamid_RT7-Jan-07 21:35
Hamid_RT7-Jan-07 21:35 
Questionmoving up and down Pin
catty5029-Dec-06 22:58
catty5029-Dec-06 22:58 
hi,
I am new to programming ! I am just writing match game ! I am trying to move the letter to concerning place .. so I created two dimen-array for it .. but I have problem with moving those to concerning place .. here is my some code of that ... plese help me out to work.. thanks in advance..
code:

#include<iostream>
using namespace std;
void display(void);//Show the table that have card name in side
void moveCard();
//void playagian();


//===========================================================================================================
char way;
const int ORDER=3;//row number
const int COLUM=4;//colum number
char cardname[][ORDER][COLUM]={"D2","S4","H6","C5","D2","S4","AD","C5","H6","__","AD",}; // char name of card



//===========================================================================================================

int main()
{
cout << endl;
cout << endl;
cout <<" ----->>>>> Match Game <<<<<----- ";
cout << endl;
cout << endl;
cout <<"________________________________________________" << endl;
for(int head =0; head<4; head++)

cout << " | " << head << " |";
cout << endl;
cout <<"________________________________________________" << endl;
display();
cout <<"________________________________________________";
cout << endl;
cout << endl;
cout << " what you want to move?? ";
cout << endl;
cout << endl;
cin >> cardname[ORDER][COLUM];
cout << endl;
cout << endl;
cout << "What you want to go right,left, up,down" << endl ;
cin >> way;
cout << endl;
cout << endl;
moveCard();
cout << endl;
cout << endl;
//playagain();
cout << endl;
return 0;

}
//===========================================================================================================


void display(void)
{


for (int i=0;i<order;i++)
{
="" cout="" <<="" endl;
=""
="" for="" (int="" j="0;j<COLUM;j++)
" "="" |="" <<cardname[i][j]<<="" |";
="" endl;

="" if="" (i!="ORDER-1)
" <<"____________";
="" }
=""
}
="" =="========================================================================================================

void" movecard()
{="" char="" way;
="" switch="" (way)="" case="" 'r':="" right
="" cin="">> cardname[ORDER][COLUM];
cout << endl;
display();
cout << endl;
break;

case 'L':
case 'l': // left
cin >> cardname[ORDER][COLUM];
cout << endl;
display();
break;

case 'U':
case 'u':// up
cin >> cardname[ORDER][COLUM];
cout << endl;
display();
break;

case 'D':
case 'd'://down
cin >> cardname[ORDER][COLUM];
cout << endl;
display();
break;

default:// error
cout << "Inviable " << endl;
break;
}



}
QuestionReading a bitmap Pin
Waldermort29-Dec-06 21:46
Waldermort29-Dec-06 21:46 
AnswerRe: Reading a bitmap Pin
CPallini29-Dec-06 23:12
mveCPallini29-Dec-06 23:12 
QuestionHandling the close(X) button Pin
Taruni29-Dec-06 21:11
Taruni29-Dec-06 21:11 
AnswerRe: Handling the close(X) button Pin
Michael Dunn29-Dec-06 21:30
sitebuilderMichael Dunn29-Dec-06 21:30 
QuestionHow to resize client are? Pin
hanlei000000000929-Dec-06 18:22
hanlei000000000929-Dec-06 18:22 
AnswerRe: How to resize client are? Pin
Hadi Dayvary29-Dec-06 18:45
professionalHadi Dayvary29-Dec-06 18:45 
GeneralSetWindowPos(), that OK! Thank you Pin
hanlei000000000930-Dec-06 14:15
hanlei000000000930-Dec-06 14:15 
QuestionIs any body help in DRM(Digital Rights Mgt) ,pDRMWriter->GenerateKeyID(w_KeyID,&d_KeyID); return S_FAIL Pin
amitmistry_petlad 29-Dec-06 17:56
amitmistry_petlad 29-Dec-06 17:56 
QuestionGetDIBits() works incorrectly with printer's DC Pin
Yuriy200329-Dec-06 15:22
Yuriy200329-Dec-06 15:22 
AnswerRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery30-Dec-06 8:06
Mark Salsbery30-Dec-06 8:06 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy200330-Dec-06 11:44
Yuriy200330-Dec-06 11:44 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery30-Dec-06 11:59
Mark Salsbery30-Dec-06 11:59 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy200330-Dec-06 12:43
Yuriy200330-Dec-06 12:43 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20031-Jan-07 10:06
Yuriy20031-Jan-07 10:06 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery1-Jan-07 15:34
Mark Salsbery1-Jan-07 15:34 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 11:08
Yuriy20032-Jan-07 11:08 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery2-Jan-07 11:28
Mark Salsbery2-Jan-07 11:28 

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.