What is This???!!!Please Help!!!!

This is a discussion on What is This???!!!Please Help!!!! within the C++ Programming forums, part of the General Programming Boards category; Can someone please explain what is this script about!!!i have began to learn C++ from the tutorials and suddenly faced ...

  1. #1
    Whats gonna happen now! himanch's Avatar
    Join Date
    Feb 2005
    Location
    Armenia
    Posts
    26

    What is This???!!!Please Help!!!!

    Can someone please explain what is this script about!!!i have began to learn C++ from the tutorials and suddenly faced with the fuction called rand();
    Why do we use rand() and what does this script mean as it is shown below!!!??And also what does <cstdlib> refers to???

    Code:
    include <cstdlib>
    
    using namespace std;
    
    int a = rand();
    Hayda!!!Whats gonna happen tomorrow

  2. #2
    Unregistered User
    Join Date
    Nov 2004
    Posts
    25
    Read this .

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,552
    Jeez, are you really going to post a new message for each new foo() function you come across?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Whats gonna happen now! himanch's Avatar
    Join Date
    Feb 2005
    Location
    Armenia
    Posts
    26
    mort bidi kunem
    Hayda!!!Whats gonna happen tomorrow

  5. #5
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    Quote Originally Posted by Salem
    Jeez, are you really going to post a new message for each new foo() function you come across?
    you mean the File Operator Overload function?
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21