Προς το περιεχόμενο

Dive computer software..


kgian

Προτεινόμενες αναρτήσεις

Δημοσ.

Tora pou einai giortes tha ithela enas kalos anthropos na me boithisei..

 

Tha ithela kapoios na mou ftiaksei ena programmataki poli aplo alla pou tha me boithisei afantasta..

 

Exo ena dive computer pou xrisimopoio gia tin eleutheri katadisi.To mixanaki auto sindeetai me pc kai mou bgazei ena arxei ascii me onoma p.x. filename.log pou exei mesa to bathos me tin morfi:

 

003

004

003

005

004

005

006

005

004

006

006

007

007

051

086

108

124

137

149

162

180

199

207

191

176

143

106

064

020

012

005

004

005

003

006

005

004

004

007

004

004

003

003

003

003

004

003

005

005

004

002

007

006

006

006

005

003

003

020

054

078

093

106

120

137

146

155

159

159

157

164

157

127

085

041

003

004

005

005

004

004

005

006

004

006

005

 

Ta noumera auta einai to bathos , metrimeno kathe 5 deuetrolepta..

Diladi apo tin arxi:

0,3 metra

0,4 metra

0,3 metra

 

klp..

Otan boutao parakato apo 1m pianetai gia boutia..

 

Thelo ena prog to opoio na mou bgazei ena output pou na leei:

 

xronos epifaneias 1=2:30

xronos bithou 1=1:20

xronos epifaneias 2=2:10

xronos bithou 2=1:35

 

klp..

Opos katalabate kano eleutheri katadisi pou simainei ksekourazomai gia 3 lepta px, meta boutao gia 1 lepto, ksananebaino gia 3 lepta klp..

 

Theoro oti eimai se boutia otan to bathos einai megalitero apo 1m kai stin epifaneia otan to bathos einai ligotero apo 1m.

 

Exo ftiaksei enan pseudokodika pou pisteuo oti einai sostos se genikes grammes alla den exo idea apo programmatismo gia na ton metatrepso se kanoniko kodika..Idou..

 

Megethos pinaka=arithmos grammon arxeiou "filename.log"

Φτιάξε έναν πίνακα (megethos pinaka)

Διάβασε απο το filename.log και βάλε τα στον πίνακα.

 

a=1

bathos=to stoixeio a tou pinaka

 

While a<=megethos pinaka

 

:υπορουτίνα βυθού

xronomeridiabithou=0

while bathos>009

xronomeridiabithou=xronomeridiabithou+1

a=a+1

bathos=to stoixeio a tou pinaka

end while

xronosbithou=xronomeridiabithou*5

if xronosbithou>0 then print "xronos bithou=";xronosbithou

 

 

:υπορουτίνα επιφανείας

xronomeridiaepifaneias=0

while bathos<=009

xronomeridiaepifaneias=xronomeridiaepifaneias+1

a=a+1

bathos=to stoixeio a tou pinaka

end while

xronosepifaneias=xronomeridiaepifaneias*5

if xronosepifaneias>0 then print "xronos epifaneias=";xronosepifaneias

 

end while

 

print "telos!!"

 

O pseudokodikas pou exo tiponei tous xronous se sec kai oxi se min:sec

 

Auto einai se genikes grammes to programma pou thelo se proti fasi, an kai tha ithela stin sinexeia na mou bgazei kai 1-2 alla stoixeia..

 

Sas parakalo , as endiaferthei kapoios giati toso kairo ipoleitourgei to dive computer mou...

 

Primeno apantiseis kai email me ektelesima progs!

 

Euxaristo, kalo pasxa..

Δημοσ.

Ola kala file mou, ena den katalaba.

Les oti sto output theleis na sou bgazei

xronos epifanias 1=...

xronos bithou 1=...

xronos epifanias 2=...

xronos bithou 2=...

ti diafora exei to 1 me to 2? Tha einai apotelesmata apo diaforetika log files? Diefkrinise to ligaki.

Δημοσ.

Xmm, na gino pio safis..

Eleutheri katadisi=me anasa, xoris mpoukales..

 

Diladi, ksekinao kai boutao gia 1min kai 20 sec..

Meta bgaino stin epifaneia kai ksekourazonmai gia 2 lepta

 

Meta ksanaboutao gia 1 lepto kai 10 sec..

meta ksekourazomai ksana gia 3 lepta kai 10 sec..

 

Opote exoume:

Xronos bithou 1=1:20

Xronos epifaneias 1=2:00

Xronos bithou 2=1:10

xronos epifaneias 2=3:10

 

klp

klp

 

Elpizo na katalabes..An oxi tha prospathiso na to ksanaeksigiso..

 

PErimeno tous megistous programmers na drasoun!!

Δημοσ.

Perimeneis e-mail alla to email soy den yparxei poythena !

 

<small>[ 13-05-2002, 09:19: Το μήνυμα επεξεργάστηκε από: krot ]</small>

Αρχειοθετημένο

Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.

  • Δημιουργία νέου...