Search:

Type: Posts; User: TyPR124

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    2,345

    Think about if you just wanted the output to be...

    Think about if you just wanted the output to be A1A2A3. You would want something that would repeat three times, and each time add 1 to the number after A. Which kind of loop could do that?

    Then...
  2. Thread: Saving a file

    by TyPR124
    Replies
    10
    Views
    1,767

    Yeah, I was surprised to find it didn't accept...

    Yeah, I was surprised to find it didn't accept strings, but still an easy fix... Now if only my problem was as easy of a fix (well it probably is, I'm just probably doing something really stupid). I...
  3. Thread: Saving a file

    by TyPR124
    Replies
    10
    Views
    1,767

    Whats wrong with global variables? Besides, I...

    Whats wrong with global variables? Besides, I would have to use some of them global unless want to constantly pass variables back and forth through functions.

    And flush-ing it didn't work. Also,...
  4. Thread: Saving a file

    by TyPR124
    Replies
    10
    Views
    1,767

    Saving a file

    I'm making a program that can write RSS files. Now so far everything works right, except one thing, whenever I create a new RSS file (it can open or create a new one), it either doesn't save the file...
  5. Thread: VC++ & Bool

    by TyPR124
    Replies
    4
    Views
    1,492

    I don't know about visual C++, but couldn't you...

    I don't know about visual C++, but couldn't you just use an int, and set it to 1 or 0 for true or false respectively?
  6. Replies
    12
    Views
    1,607

    The error is because when you make an array, the...

    The error is because when you make an array, the first index is 0 (the number that goes in the [ ]). So an array of 10 would have indexes of 0 through 9.

    Also, you were on the right track the...
  7. Replies
    4
    Views
    1,046

    Might be that 'while (valid = 0)' should have 2...

    Might be that 'while (valid = 0)' should have 2 ='s ('while (valid == 0)'). Also just so you know, if the first time you input less than one, it will never break from the loop because 'valid' will...
  8. Replies
    18
    Views
    1,727

    I would guess they are for the type of sandwich,...

    I would guess they are for the type of sandwich, the shipping, and couting the type of sandwich... but if you say you need to used 'if' also, then I'm not sure where you'd put that.
  9. Replies
    5
    Views
    779

    Daved: I thought of that too, but in that case,...

    Daved: I thought of that too, but in that case, why does it output at all. Because he uses a function for getting the time in the first place and doesn't return anything, it should only store the...
  10. Replies
    8
    Views
    1,700

    Well thanks for all the answers... I think I...

    Well thanks for all the answers... I think I understand now.
  11. Replies
    8
    Views
    1,700

    Oh, I though the pointer had to be an integer....

    Oh, I though the pointer had to be an integer. That would be my problem (don't I feel dumb lol)...

    But why does it have to be the same type as the variable? Since all pointers are the same since...
  12. Replies
    8
    Views
    1,700

    Question about pointers

    I understand the basics of how pointers work. I can get it to store the address of anything except a string. So my question is, how can I get it to store a string's address? If I try, it tells me...
Results 1 to 12 of 12