Help me arrays output in C++

Status
Not open for further replies.

fatma1000

Banned
Joined
Apr 30, 2006
Messages
147
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
eygpt
Activity points
0
i have this code

for (ii=0;ii<NX;ii++)
{
for(jj=0;jj<NY;jj++)
{
//sum statments to compute sigma[ii][jj]
fprintf(qqq,"%e\t",sigma[ii][jj])
}
}
but by this code the array qqq will be 1*200 (if NX=10 ,NY=20)
i want this array to be 10*20
so please what can i do?

regards
 

Re: help in c++

hi

if u want to print in a matrix like thing then just add

cout<<"\n";

after 2nd loop

it will convert output into 10*20

as u need

if some thing alse ur requirement plz do tell
 

Re: help in c++

thanks for your help
i tried to writ a brogram in c++ and i will need your help
but how can i contact you ?
by edaboard in this section or by mail
tell me
with my best regards
 

Re: help in c++

Asalam-o-Alekum

i visit EDA regularly
so it would b best

otherwise my yahoo ID is aem_au@yahoo.com

i would prefer EDA
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…