Programlama | Programlama Dilleri | C Programlama Dili |C++

Hata
  • XML Parsing Error at 1:82. Error 9: Invalid character
Anasayfa Programlama C++ Builder Rastgele Say?lar
´╗┐

Rastgele Say?lar

AăIKLAMA

Bu proje C++ Builder 2009 ile Řretilmi?tir. Projede 500'e kadar olan say?lardan rastgele 3 say?n?n sešilmesi g÷sterilmi?tir. Rastgeleli?in tam olarak yap?labilmesi išin randomize() fonksiyonu kullan?lm??t?r. Bu fonksiyon sayesinde program kapat?l?p aš?ld???nda ayn? say?lar?n tekrar gelmesi engellenmektedir.

Program?n Tamam?n? A?a??daki Linkten ?ndirebilirsiniz

Linki G÷rebilmeniz ?šin ▄ye Olman?z Gerekmektedir...

▄ye Kay?t

Program Kodu:

  1. //---------------------------------------------------------------------------
  2.  
  3. #include <vcl.h>
  4. #pragma hdrstop
  5.  
  6. #include "Unit1.h"
  7. //---------------------------------------------------------------------------
  8. #pragma package(smart_init)
  9. #pragma resource "*.dfm"
  10. TForm1 *Form1;
  11. //---------------------------------------------------------------------------
  12. __fastcall TForm1::TForm1(TComponent* Owner)
  13. ááá : TForm(Owner)
  14. {
  15. }
  16. //---------------------------------------------------------------------------
  17. void __fastcall TForm1::Button1Click(TObject *Sender)
  18. {
  19. randomize();
  20. int x1=random(500);
  21. int x2=random(500);
  22. int x3=random(500);
  23. String sayi=String(x1);
  24. Application->MessageBox(sayi.c_str(),L"1.Rastgele Say?",MB_ICONINFORMATION);
  25. sayi=String(x2);
  26. Application->MessageBox(sayi.c_str(),L"2.Rastgele Say?",MB_ICONINFORMATION);
  27. sayi=String(x3);
  28. Application->MessageBox(sayi.c_str(),L"3.Rastgele Say?",MB_ICONINFORMATION);
  29. }
  30. //---------------------------------------------------------------------------
  31.  

 

Yorumlar (0)
Sadece kay─▒tl─▒ kullan─▒c─▒lar yorum yazabilir!
Son G├╝ncelleme ( Sal─▒, 04 Eyl├╝l 2012 03:16 )  
404 Not Found

404

Not Found

The resource requested could not be found on this server!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.