Click here to Skip to main content
15,918,624 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Template and operator Pin
Vics3-Jan-08 2:49
Vics3-Jan-08 2:49 
Questionhow to modify these matrix? Pin
gentleguy3-Jan-08 0:39
gentleguy3-Jan-08 0:39 
AnswerRe: how to modify these matrix? [modified] Pin
CPallini3-Jan-08 0:57
mveCPallini3-Jan-08 0:57 
QuestionRe: how to modify these matrix? Pin
David Crow3-Jan-08 2:58
David Crow3-Jan-08 2:58 
GeneralRe: how to modify these matrix? Pin
CPallini3-Jan-08 3:18
mveCPallini3-Jan-08 3:18 
GeneralRe: how to modify these matrix?[modifed 4/01/08] Pin
gentleguy3-Jan-08 14:43
gentleguy3-Jan-08 14:43 
GeneralRe: how to modify these matrix?[modifed 4/01/08] Pin
David Crow3-Jan-08 15:50
David Crow3-Jan-08 15:50 
GeneralRe: how to modify these matrix?[modifed 4/01/08] Pin
CPallini3-Jan-08 20:59
mveCPallini3-Jan-08 20:59 
Perhaps maybe nicer with an array of matrices:
int main()
{
  double [10][3][4];
  int i, j, k;
  //random init values
  for (i=0; i<10; i++)
    for (j=0; j<3; j++)
      for (k=0; k<4; k++)
        a[i][j][k] = (double)rand()/RAND_MAX;

  for (i=0; i<10; i++)
  {
    cout  << "\na[" << i << "]:" << endl;
    printArray(a[i]);
  }
  return 0;
}

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

[my articles]


AnswerRe: how to modify these matrix? Pin
David Crow3-Jan-08 2:47
David Crow3-Jan-08 2:47 
AnswerRe: how to modify these matrix? Pin
Randor 3-Jan-08 6:51
professional Randor 3-Jan-08 6:51 
GeneralRe: how to modify these matrix? Pin
CPallini3-Jan-08 7:23
mveCPallini3-Jan-08 7:23 
GeneralRe: how to modify these matrix? Pin
Randor 3-Jan-08 7:33
professional Randor 3-Jan-08 7:33 
GeneralRe: how to modify these matrix? Pin
CPallini3-Jan-08 7:52
mveCPallini3-Jan-08 7:52 
GeneralRe: how to modify these matrix? Pin
gentleguy3-Jan-08 14:36
gentleguy3-Jan-08 14:36 
GeneralA project made from XPCOM components and VC++ - I posted this messaje before several hours ago Pin
cuesdean florin3-Jan-08 0:38
cuesdean florin3-Jan-08 0:38 
QuestionRe: A project made from XPCOM components and VC++ - I posted this messaje before several hours ago Pin
Matthew Faithfull3-Jan-08 1:02
Matthew Faithfull3-Jan-08 1:02 
GeneralRe: A project made from XPCOM components and VC++ - I posted this messaje before several hours ago Pin
cuesdean florin3-Jan-08 1:34
cuesdean florin3-Jan-08 1:34 
GeneralRe: A project made from XPCOM components and VC++ - I posted this messaje before several hours ago Pin
Matthew Faithfull3-Jan-08 1:56
Matthew Faithfull3-Jan-08 1:56 
GeneralRe: A project made from XPCOM components and VC++ - I posted this messaje before several hours ago Pin
cuesdean florin3-Jan-08 4:10
cuesdean florin3-Jan-08 4:10 
GeneralRe: A project made from XPCOM components and VC++ - I posted this messaje before several hours ago Pin
Matthew Faithfull3-Jan-08 4:19
Matthew Faithfull3-Jan-08 4:19 
GeneralRe: A project made from XPCOM components and VC++ - I posted this messaje before several hours ago Pin
Jeremy Falcon3-Jan-08 6:17
professionalJeremy Falcon3-Jan-08 6:17 
GeneralRe: A project made from XPCOM components and VC++ - I posted this messaje before several hours ago Pin
Maxwell Chen3-Jan-08 16:15
Maxwell Chen3-Jan-08 16:15 
Generalchar* and unsigned int Pin
CodingLover3-Jan-08 0:26
CodingLover3-Jan-08 0:26 
QuestionRe: char* and unsigned int Pin
CPallini3-Jan-08 0:35
mveCPallini3-Jan-08 0:35 
GeneralRe: char* and unsigned int Pin
CodingLover3-Jan-08 0:39
CodingLover3-Jan-08 0:39 

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.