Question: convert this fortran code to C++ program veri oku1 implicit real*8 (a-h, o-z) implicit integer*4 (i-n) parameter (Nm-1000) dimension x (Nm), y (Nm) Disk dosyasindan
program veri oku1 implicit real*8 (a-h, o-z) implicit integer*4 (i-n) parameter (Nm-1000) dimension x (Nm), y (Nm) Disk dosyasindan veriler okunuyor open (1, file- 'D:/veri/say1.txt',statu s= ' unknown ' ) 1 read (1,*, end-2) x (i),y(i) i-i+1 goto 1 2 close (1) N=1-1 ! satr says belirleniyor Disk dosyasindan okutulan veriler ekrana yazdiriliyor do j-1,N write ( * , ) x ( j ) , y (j) end do format (1x, 2 (f9.3,2x) ) end 3 Okutulan veriler (sayi.txt) 0.000 1.000 2.000 3.000 4.000 5.000 6.000 7.000 8.000 Formatli akt1 0.000 1.000 11.000 9.000 21.000 33.000 2,000 14.000 19.000 21 14 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
