Forum: Projeler pisti RSS
Oyunun çizilmesi
Page:  previous  1  2 
acehreli (Moderator) #16
User title: Ali Çehreli
Member since Jun 2009 · 1981 posts
Group memberships: Genel Moderatörler, Üyeler
Show profile · Link to this post
In reply to post ID 2215
Güzel, güzel! :)

Yol yakınken gözüme çarpan bir iki şey... Bunların hiçbirisi önemli değil, ama belirli bir standart oturtmuş olmak için:

- tür isimlerini büyük harfle başlatıyoruz: MasaYapısı

- işlevleri küçük harfle başlatıyoruz: masayıÇiz

- ls,rs gibi isimleri ancak tahmin edebiliyorum ama emin olamıyorum

Ayrıca daha sonradan ncurses'ün D'sini de bulmuştuk galiba; ama elle yazmak deneyim de kazandırıyordur. :D

Ufak bir şey de, MasayıÇiz aslında MasaYapısı'nın kurucusu, değil mi? O zaman belki de onun içinde olsa daha temiz olur:

struct MasaYapısı
{
    // ...
 
    this(int başlangıçx, int başlangıçy, int yükseklik, int genişlik)
    {
        this.başlangıçx = başlangıçx;
        this.başlangıçy = başlangıçy;
        // vs.
    }
}

Ali
This post was edited on 2010-06-17, 17:42 by acehreli.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page:  previous  1  2 
Forum: Projeler pisti RSS
Not logged in. · Lost password · Register
This board is powered by the Unclassified NewsBoard software, 20100516-dev, © 2003-10 by Yves Goergen
Current time: 2012-02-05, 11:47:42 (UTC -08:00)