Search:

Type: Posts; User: amdriod

Search: Search took 0.00 seconds.

  1. Oh, Thank you very much Alpo and laserlight. Now...

    Oh, Thank you very much Alpo and laserlight. Now I understand where the problem was :)
  2. oh wait, in the orignal question my condition was...

    oh wait, in the orignal question my condition was t>=5 and was incrementing by t++ because it was initialized at 0 (int t=0)

    for (int t=0;t>=5;t++)

    so isn't this the correct format and it...
  3. Hahahahaha I feel so stupid. Thank you...

    Hahahahaha I feel so stupid. Thank you laserlight. the solution was pretty easy but I over-thought on it :P

    Thank you for the help!
  4. Here is my while loop version which works...

    Here is my while loop version which works perfectly fine as expected:


    #include <iostream>
    #include <string>
    using namespace std;
    int main ()
    {
    string pass;
    int a=5;
  5. Write a password prompt that gives a user only a certain attemts

    I'm trying to write this c++ programe:



    Using FOR Loop. I know this can be easily done using while loop. But I want to know how to do it with for loop aswell. Here is what I have so far:


    ...
Results 1 to 5 of 5