Jump to content
Fórum Script Brasil
  • 0

3D ARRAY / MATRIZ 3D C++


Question

Boa noite, pessoal. Bom, tenho um código que atualiza os valores de uma matriz 2D 151 x 383, 6000 vezes. E preciso salvar cada uma delas numa matriz separada. Então a dimensão dessa matriz será 121x383x6000. Seria algo como:

 

for (n=0;n<6000;n++){
	for(i=0;i<151;i++){
   		for (k=0;k<383;k++){
			P2 = 'calculos';
		
			P3[n] = P2;

}}}

 

A dúvida é como construir a matriz P3 e como fazer a indexação dela no lugar dos colchetes... Grato!

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Cloud Computing


  • Forum Statistics

    • Total Topics
      148674
    • Total Posts
      644490
×
×
  • Create New...