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

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

//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 Tagi: ,
  1. mark075
    21 kwietnia 2011 o 8:55 pm

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

  2. 9 czerwca 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 lipca 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 sierpnia 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 sierpnia 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 września 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 września 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ździernika 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 lipca 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 marca 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.

  12. Patrycja Misch
    30 listopada 2017 o 6:15 pm

    Potrzebowałabym kontakt z autorem tego bloga 🙂 Czy istnieje taka możliwość?
    😀

  13. 12 lutego 2018 o 2:52 pm

    I would like to thank you for the efforts you’ve put in
    writing this site. I am hoping to see the same high-grade
    content by you in the future as well. In fact, your creative writing abilities has encouraged me to get my own website now 😉

  14. 4 Maj 2018 o 5:18 am

    Right here is the perfect blog for anyone who wishes to find
    out about this topic. You know a whole lot its almost tough to argue with
    you (not that I actually will need to…HaHa).
    You certainly put a new spin on a subject that has been written about
    for years. Excellent stuff, just great!

  1. 25 Maj 2017 o 1:24 am

Skomentuj

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

Logo WordPress.com

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

Zdjęcie na Google+

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

Zdjęcie z Twittera

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

Zdjęcie na Facebooku

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

w

Connecting to %s

%d blogerów lubi to: