User profile: AbstractionAnon

User info
User name:AbstractionAnon
History
Joined:
Number of posts:6449
Latest posts:

Username and Password using String
[code]int i;[/code] i is uninitialized. i.e. garbage value. [code]if(strcmp(user1, userName[i])==...

sorting rand arr[]
Second, your have to actually store the random numbers in the array before you can sort it. Lines 6...

Why should we only use i in for loop?
There's no rule that says you have to. Using i for a loop variable is a throwback to the early FORT...

Capacity of queue
line 33: Do not loop on (! stream.eof()) or (stream.good()). This does not work the way you expect. ...

help me with the modification of the code
What modification do you need help with? The only problem I see is that the use of time() on line 2...