Search:

Type: Posts; User: jmajeremy

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. YAY:)!!! Thanks so much dwks, and everyone else...

    YAY:)!!! Thanks so much dwks, and everyone else who helped me! My program is finally funtioning!!!:):):):):):):):):)
  2. Do you tink it might have something to do with...

    Do you tink it might have something to do with the for statement in randomize? I meed to get a new random number each time. I feel like I'm getting really close!
  3. i feel like i'm getting so close. here's my...

    i feel like i'm getting so close.
    here's my source code:


    #include <iostream>
    #include <cstdlib>
    #include <time.h>
    #include <cctype>
    #include <windows.h>
    #include <string.h>
  4. ok, wen i do that, it returns the email as it was...

    ok, wen i do that, it returns the email as it was originally. this tells me that the problem lies in randomizing the characters. I will play around with it a bit.



    #include <iostream>
    #include...
  5. ok, i've traced the problem to the value that...

    ok, i've traced the problem to the value that randomize(string) returns. Just before it returns the value I added a cout, and it's not randomized, but thats another problem that I can deal with...
  6. I think the problem might have something to do...

    I think the problem might have something to do with passing the arguments to randomize(string), or what it returns. It could also be my use of fstream, any suggestions?
  7. I changed around by code again to try and avoid...

    I changed around by code again to try and avoid what I think was happening (I was calling the function getAddy() in certain places unintentionally causing it to appear to just loop over and over...
  8. ok, here's the updated code... #include...

    ok, here's the updated code...


    #include <iostream>
    #include <cstdlib>
    #include <time.h>
    #include <cctype>
    #include <windows.h>
    #include <string.h>
    #include <fstream>
  9. Here's the updated code... #include...

    Here's the updated code...


    #include <iostream>
    #include <cstdlib>
    #include <time.h>
    #include <cctype>
    #include <windows.h>
    #include <string.h>
    #include <fstream>
  10. Should it be wriiten as... cin >> var;...

    Should it be wriiten as...


    cin >> var;
    cin.ignore();

    // or

    cin.irgnore() >> var;
    ?
  11. its still doing the same thing

    its still doing the same thing
  12. if i put getline(), cin.ignore(), or if i jst...

    if i put getline(), cin.ignore(), or if i jst change it to:


    for (int i=0; i <= 10; i++) {
    randomize();
    saveAddy(); }
    , I get the same result.
  13. Replies
    6
    Views
    822

    u could try int op; switch ( op ) { ...

    u could try


    int op;
    switch ( op ) {
    case 0:
    break;
    case 1:
    continue; }
  14. Replies
    6
    Views
    1,127

    PS: I haven't tried that, so it's just a vague...

    PS: I haven't tried that, so it's just a vague idea of what I might attempt to do if I was in your situation.
  15. Replies
    6
    Views
    1,127

    what i would do to get the first number is the...

    what i would do to get the first number is the following:


    char fstNum[28];
    for (int i = 0; i < 20; i++) {
    cin >> fstNum[i];
    if (fstNum[i] == '') { break; }
    }

    ...or something...
  16. Replies
    6
    Views
    1,127

    no to be sarcastic, but what exactly are you...

    no to be sarcastic, but what exactly are you hoping to achieve with this program? Looks like a bunch of over-complicated code for no apparent reason...
  17. ok, string class seems to help, but I have now...

    ok, string class seems to help, but I have now lead myself to another problem, of which I just can't seem to figure out. I know it's a little unorthodox, but, if you don't mind, I'm going to post my...
  18. can i still refer to an individual character if i...

    can i still refer to an individual character if i use the string class?
  19. ok, i seem to have solved most of the problems by...

    ok, i seem to have solved most of the problems by using some of your suggestions, and completely rearranging my function, but there seems to be a new problem. I decided to instead of returning a char...
  20. here's part of my code that capitalizes the...

    here's part of my code that capitalizes the letters:


    int xy = 1;
    while (xy <= nl)
    {
    randNumGen();
    if (randNumGen() == 1 || randNumGen() == 3 || randNumGen() == 5) {...
  21. ok, thx, the toupper() thing speeds things up...

    ok, thx, the toupper() thing speeds things up quite a bit, but now my problem is that my program doesn't seem to redo the getRandNum() function when I tell it to. This results in all the letter...
  22. how can toupper() be an int if it returns a char?

    how can toupper() be an int if it returns a char?
  23. just an afterthought: or do u mean if (randNum...

    just an afterthought: or do u mean
    if (randNum == 1 || randNum == 2 || randNum == 3)?
  24. so, Daved, does that meen I'd put if (randNum...

    so, Daved, does that meen I'd put
    if (randNum == 1 == 2 == 3) or something?
    and i hav no idea what u mean by
    also, if i use the method marek said, how will i seperate retVal back into a char and...
  25. Carrying ints a chars over to other functions.

    I'm making a program where you input a word or phrase, and my program will automatically capatilize some of the letters in it. For example, if your entered
    I am testing this program., my program...
Results 1 to 25 of 31
Page 1 of 2 1 2