Strona główna > C++, Matrix > Kod źródłowy Matrix w C++

Kod źródłowy Matrix w C++

6 Grudzień 2009 Dodaj komentarz Go to comments
//Kod do Matrixa w C++
#include <cstdlib>
# include <iostream>
# include <windows.h>
using namespace std;
int main (int argc, char *argv[])
{
    int a;
    srand(time(NULL));
    cout<<"                  no25.wordpress.com           The Matrix"<<endl;
    string array [44] = {"A","0","B","C","3","D","E","7","F","G","H","&","I","J","5","K",
"%","L","M","N","O","P","Q","!","R","S","T","U","V","W","X","Y",
"Z","1","2","4","6","8","9"," ","?"," ","#"};
    system("color 0A");
    while (1)
    {
          Sleep(50);
          for(int i=0; i<26; i++)
          {
             a=rand()%44;
             cout<<" "<<array[a];
             cout<<" ";
          }
          cout<<endl;
    }
    system("pause");
    return 0;
}

Po skompilowaniu kodu pokaze nam sie bardzo dobrze znany kod z Matrix'a:

Kategorie:C++, Matrix Tags: ,
  1. mark075
    21 Kwiecień 2011 o 8:55 pm

    Musiał trochę zmodyfikować kod, aby wszystko działało. Np. dodać bibliotekę ctime. Ale pomysł dobry😛

  2. 9 Czerwiec 2013 o 1:58 am

    Hello, i feel that i noticed you visited
    my web site thus i got here to go back the desire?.I’m trying to find issues to enhance my website!I assume its ok to use a few of your concepts!!

  3. 23 Lipiec 2013 o 5:32 pm

    What’s up, I wish for to subscribe for this weblog to get most up-to-date updates, so where can i do it please help out.

  4. 8 Sierpień 2013 o 5:01 pm

    I’m really impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you customize it yourself? Anyway keep up the excellent quality writing, it is rare to see a nice blog like this one these days.

  5. 14 Sierpień 2013 o 9:30 am

    This is really interesting, You’re a very skilled blogger. I’ve
    joined your rss feed and look forward to seeking more of
    your wonderful post. Also, I’ve shared your web site in my social networks!

  6. 21 Maj 2014 o 12:19 am

    Thank you for sharing your info. I truly appreciate your efforts and I will be waiting for your
    next post thanks once again.

  7. 2 Wrzesień 2014 o 4:19 am

    Because the admin of this web site is working, no doubt very
    soon it will be well-known, due to its feature contents.

  8. 28 Wrzesień 2014 o 11:27 pm

    I loved as much as you’ll receive carried out right here.
    The sketch is attractive, your authored subject matter
    stylish. nonetheless, you command get got an edginess over that you wish be delivering the following.
    unwell unquestionably come further formerly again as exactly the same nearly very often inside case you shield this increase.

  9. 2 Październik 2014 o 9:57 am

    Hello Dear, are you actually visiting this web site daily, if so
    after that you will definitely get nice experience.

  10. 2 Lipiec 2015 o 5:09 am

    Hi Dear, are you genuinely visiting this site regularly, if so afterward you will without doubt
    get pleasant experience.

  11. 7 Marzec 2016 o 4:29 am

    Nice post. I learn something new and challenging on blogs I stumbleupon every day.
    It’s always interesting to read through content from other authors and use
    something from other sites.

  1. No trackbacks yet.

Skomentuj

Wprowadź swoje dane lub kliknij jedną z tych ikon, aby się zalogować:

Logo WordPress.com

Komentujesz korzystając z konta WordPress.com. Log Out / Zmień )

Zdjęcie z Twittera

Komentujesz korzystając z konta Twitter. Log Out / Zmień )

Facebook photo

Komentujesz korzystając z konta Facebook. Log Out / Zmień )

Google+ photo

Komentujesz korzystając z konta Google+. Log Out / Zmień )

Connecting to %s

%d bloggers like this: