Search:

Type: Posts; User: Kings

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,402

    Thanks Codeplug!! umm... how do you store the...

    Thanks Codeplug!!
    umm... how do you store the position that tellp() returns? in the reference that I looked up, it just says "pos_type", what type is that exactly?
    Also after I can get back to a...
  2. Replies
    3
    Views
    1,402

    Correcting a file?

    Hi, is there a way to go backwards while writting a file and correcting something on a previous line?

    e.g
    change:
    1,1,0,4,1,0.5,0.75
    2,1,0,4,1,5,10

    to:
    1,1,0,4,1,0.5,0.75
    2,1,0,4,1,5,9
  3. Replies
    2
    Views
    784

    reading from file

    hi,
    Does anyone know of a way to search a file for certain records and also the record right after the last record you were looking for? k...that probably makes no sense!!

    e.g
    I want to go...
  4. Replies
    3
    Views
    1,503

    oh....I feel soo stupid now!! hehe, thx =o)

    oh....I feel soo stupid now!! hehe, thx =o)
  5. Replies
    3
    Views
    1,503

    writing a file to a different directory

    Hi, I was wondering if it was possible to get C++ to write a file to another directory, since it normally writes to the same directory that the program is in?

    Thanks:confused:
  6. Thread: rounding

    by Kings
    Replies
    3
    Views
    1,275

    okay, thx =o)

    okay, thx =o)
  7. Thread: rounding

    by Kings
    Replies
    3
    Views
    1,275

    rounding

    Hi,
    I was wondering if anyone knew of a function that could do rounding to the nearest whole number?

    e.g 1.32 -> 1
    1.53->2

    Thanks
  8. Thread: getline question

    by Kings
    Replies
    9
    Views
    1,534

    hehe, k, thx for your input tho! =o) And Thx...

    hehe, k, thx for your input tho! =o) And Thx Cela!!=o)
  9. Thread: getline question

    by Kings
    Replies
    9
    Views
    1,534

    oh..sorry I'm expecting something like this; 1...

    oh..sorry
    I'm expecting something like this;
    1

    back
    4
    1
    a
    bang
    3
  10. Thread: getline question

    by Kings
    Replies
    9
    Views
    1,534

    hmm...well, if you wouldn't mind vasanth, could...

    hmm...well, if you wouldn't mind vasanth, could you take a look at this and see if you know whats wrong?

    I've included my code, input and output

    Thanks
  11. Thread: getline question

    by Kings
    Replies
    9
    Views
    1,534

    ...really, its not working for me. get line is...

    ...really, its not working for me. get line is reading to the end of the line and spitting out the whole line. does anyone know why its not working?

    Thanks
  12. Replies
    4
    Views
    1,809

    hi, you probably know this already. But to...

    hi,
    you probably know this already. But to divide functions, you would write it like any other math function in C++
    e.g a=4/3;
    except now your using variables.
    as for your test statement, I'm not...
  13. Thread: getline question

    by Kings
    Replies
    9
    Views
    1,534

    getline question

    Hi, does anyone know if you can get getline to read to ',' or the end of the line...

    so for example:
    Input:
    1,s,3a,find
    2,3b,g,go



    while(fin.peek!=EOF)
  14. Replies
    1
    Views
    1,418

    Thanks Salem!!

    Thanks Salem!!
  15. Replies
    1
    Views
    1,418

    passing 2d array in to function

    Anyone know how to pass a 2d array into a function?

    e.g blah(char a[][])

    Thanks!!
  16. Thread: output problem

    by Kings
    Replies
    4
    Views
    1,036

    THX!!

    Thanks for your help!! yeah, I know I should, kinda lazy thats all!!

    Thanks
  17. Thread: output problem

    by Kings
    Replies
    4
    Views
    1,036

    errr...

    I guess I can only post one attachment one at a time, so here is my code
  18. Thread: output problem

    by Kings
    Replies
    4
    Views
    1,036

    output problem

    Hi, I'm using a 2-D array to output some information. But for some reason my right index is like 3000 before it will output something that is 3 characters long and I also get alot of weird lines in...
  19. Thread: help!!

    by Kings
    Replies
    1
    Views
    1,156

    hehe, thx. I didn't know that C++ could read...

    hehe, thx. I didn't know that C++ could read anything besides text docs!! hehe, thx
  20. Thread: help!!

    by Kings
    Replies
    1
    Views
    1,156

    help!!

    Hi, I'm kinda new to C++ programming. Anyways my problem is that I want to read in a bunch of information from a text doc, but its converted from MS excel and some fields are left blank and I want to...
Results 1 to 20 of 20