Search:

Type: Posts; User: Bad_Scooter

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,479

    I'll do that in the future, sorry I was in a...

    I'll do that in the future, sorry I was in a hurry. Definitely makes code easier to read.


    Thanks for the help guys, it's appreciated. I didn't know that the string had to be terminated like...
  2. Replies
    5
    Views
    2,479

    This is what I've got, basically I'm reading in...

    This is what I've got, basically I'm reading in one letter at a time until I reach the end of a word or punctuation, converting to a string and then moving on to the next word.


    while (!...
  3. Replies
    5
    Views
    2,479

    char array to string

    Okay, I've kind of figured out how to take a char array and convert it to a string, but I'm having one problem. I'm using a char array of size 20, but when I convert an array with less than 20...
  4. Thanks, works great. :D

    Thanks, works great. :D
  5. How can I read until the end of an input line?

    I'm trying to read in a group of numbers one at a time until I reach the end of the line from the input file. Something like this:

    999323892...

    I thought that it was possible to do something...
  6. Replies
    2
    Views
    1,907

    Thanks, that's what I'll do, I just thought there...

    Thanks, that's what I'll do, I just thought there may have been an easier way.
  7. Replies
    2
    Views
    1,907

    How can I read one number at a time?

    How can I read in one number at a time from a string of numbers?
    Something like this:

    1429943983...

    I want to read in the one, then the four, and so on. My first thought was to use get. ...
  8. Replies
    3
    Views
    937

    Vectors would be a lot easier, I agree, but I'm...

    Vectors would be a lot easier, I agree, but I'm doing a project that doesn't allow them. I'm not familar with the other method you mentioned. I'm going to look around and see what I can find on it,...
  9. Replies
    3
    Views
    937

    Array question

    I want to have a 2 dimensional array thats size is determined by user input. I want to do something like this: (declaration)

    int array [x] [y];

    where x and y are input by the user. But how...
  10. Replies
    5
    Views
    1,800

    Thanks Prelude that works great. :)

    Thanks Prelude that works great. :)
  11. Replies
    5
    Views
    1,800

    Aligning text

    Okay so I should know this (and I know I did at one time) but:

    I want to print text to the screen like this: (the underlines are spaces, only way I could get the spacing right)

    5_____6 _____3...
  12. Replies
    3
    Views
    1,532

    Thanks for the help

    Appreciate the suggestions, my problem from earlier was that I should have been entering them like this:

    cin>>head->ball1;

    instead of calling a function to do this:

    cin>>ball1;

    Dumb...
  13. Replies
    3
    Views
    1,532

    Linked List Help

    I am building a program tell score for a game of bowling. I have created a doubly linked list of ten frames. Each frame includes three integers - ball1, ball2, and ball3 for the 10th frame only. ...
  14. Replies
    2
    Views
    819

    Thanks

    Thanks for the quick reply. That helps alot in my understanding, I really didn't have a good example to work through before.:)
  15. Replies
    2
    Views
    819

    Linked List help

    I as having some trouble with linked list. What I am basically trying to do is create a doubly linked list with 10 nodes. Each node represents a frame of bowling. Since I am not adding or removing...
Results 1 to 15 of 15