User Profile

Collapse

Profile Sidebar

Collapse
ziko
ziko
Last Activity: Jun 12 '10, 12:47 PM
Joined: Jun 12 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ziko
    started a topic Why does rand() give me the same number each time
    in C

    Why does rand() give me the same number each time

    I am using the function rand() in one of my programs but every time I run the program it gives me the same number!!
    Can anybody help me solve this problem?
    See more | Go to post

  • ziko
    started a topic cin in c++
    in C

    cin in c++

    I've started to explore c++ recently and I was using cin to get input from a user but it always misses the first character for example:
    string name;
    cin >> name;
    cout << name << endl;
    (if i wrote Tom for example on the console)
    the result will be only : om
    Can anybody help me with this kind of problem?
    See more | Go to post
No activity results to display
Show More
Working...