Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File Deletion using SHFILEOPSTRUCT & SHFileOperation Pin
David Crow7-May-09 3:31
David Crow7-May-09 3:31 
QuestionNeed help on Dock Window Pin
nick2reg6-May-09 17:22
nick2reg6-May-09 17:22 
QuestionVery difficult problem about CExplorer1. Pin
cwj_6-May-09 15:38
cwj_6-May-09 15:38 
QuestionRe: Very difficult problem about CExplorer1. Pin
Madhu Nair6-May-09 17:36
Madhu Nair6-May-09 17:36 
AnswerRe: Very difficult problem about CExplorer1. Pin
Stuart Dootson6-May-09 20:06
professionalStuart Dootson6-May-09 20:06 
AnswerRe: Very difficult problem about CExplorer1. Pin
virusest31-Dec-10 18:13
virusest31-Dec-10 18:13 
Questionmatrix in window Pin
kiemxai6-May-09 14:45
kiemxai6-May-09 14:45 
AnswerRe: matrix in window Pin
Stuart Dootson6-May-09 19:41
professionalStuart Dootson6-May-09 19:41 
kiemxai wrote:

void inmatrix()
{
   cout << "enter row: ";
   cin >> m_row;
   cout << "enter col: ";
   cin >> m_Col;
   for (int i=1; i<=m_row; i++)
   {
      for (int j=1; j<=m_Col; j++)
      {
         cout << "enter a["<<i<<"]["<<j<<"]: ";
         cin >> a[i][j];
      }
   }
}



Out of interest - have you ever heard of input parameter validation (i.e. making sure m_row and m_Col are valid).
Also - you may be interested to learn that arrays in C/C++ have index ranges of 0-(size-1) (i.e. 0-99 in your case), not 1-size.

I've got no idea about the MFC stuff - I'm not wading through all that.

Also -
kiemxai wrote:
This is the code which i did but algorithm fails...


'algorithm fails', you say - OK, what were you expecting it to do, and what did it actually do?

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: matrix in window Pin
kiemxai6-May-09 23:19
kiemxai6-May-09 23:19 
GeneralRe: matrix in window Pin
Stuart Dootson6-May-09 23:22
professionalStuart Dootson6-May-09 23:22 
QuestionInclude order issues Pin
__DanC__6-May-09 9:53
__DanC__6-May-09 9:53 
AnswerRe: Include order issues Pin
Stuart Dootson6-May-09 10:40
professionalStuart Dootson6-May-09 10:40 
GeneralRe: Include order issues Pin
__DanC__6-May-09 11:00
__DanC__6-May-09 11:00 
GeneralRe: Include order issues Pin
Stuart Dootson6-May-09 11:14
professionalStuart Dootson6-May-09 11:14 
GeneralRe: Include order issues Pin
__DanC__6-May-09 21:06
__DanC__6-May-09 21:06 
Questionhelp extracting data Pin
dunlapjw6-May-09 7:42
dunlapjw6-May-09 7:42 
AnswerRe: help extracting data Pin
Madhu Nair6-May-09 8:41
Madhu Nair6-May-09 8:41 
QuestionRe: help extracting data Pin
David Crow6-May-09 8:42
David Crow6-May-09 8:42 
QuestionByte alignement - qt Pin
yaronillouz6-May-09 7:21
yaronillouz6-May-09 7:21 
AnswerRe: Byte alignement - qt Pin
Stuart Dootson6-May-09 8:31
professionalStuart Dootson6-May-09 8:31 
GeneralRe: Byte alignement - qt Pin
yaronillouz6-May-09 19:04
yaronillouz6-May-09 19:04 
GeneralRe: Byte alignement - qt Pin
Stuart Dootson6-May-09 19:35
professionalStuart Dootson6-May-09 19:35 
QuestionDocument/View Problem Pin
nick2reg6-May-09 6:30
nick2reg6-May-09 6:30 
AnswerRe: Document/View Problem Pin
Iain Clarke, Warrior Programmer6-May-09 7:00
Iain Clarke, Warrior Programmer6-May-09 7:00 
GeneralRe: Document/View Problem Pin
nick2reg6-May-09 8:08
nick2reg6-May-09 8: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.