Search:

Type: Posts; User: spudval

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,597

    returning pointers

    Hi

    I've spent a long time on the web & reading books trying to find out how to do this for myself.
    No luck, there's a lot of stuff refering to using pointer to a function but very little on...
  2. Replies
    4
    Views
    2,213

    thanks again I originally had the first...

    thanks again

    I originally had the first sugesttion in the code, which also produced an error.
    But good news the second did work

    On to the next error.
  3. Thread: struct problem

    by spudval
    Replies
    6
    Views
    1,198

    Thanks I did include the std namespace in the...

    Thanks

    I did include the std namespace in the main file, but overlooked that the header file would get prcessed before encountering that bit

    as Homer would say DOHHH
  4. Replies
    4
    Views
    2,213

    Opps - this info will probably help

    Opps - this info will probably help
    <cpp(47) : error C2679> refers to <if ( line.substr(index+6,1) == '1')>
  5. Replies
    4
    Views
    2,213

    string & eof handling problems

    My problem here is trying to test a substr of a string. when compiling I get the following errors

    c:\work\programming\nettest\nt.h(40) : error C2146: syntax error : missing ';' before identifier...
  6. Thread: struct problem

    by spudval
    Replies
    6
    Views
    1,198

    struct problem

    I'm having some problems defining a structure, can anyone help

    this bit is in the header file



    #include <string>


    struct netData{
  7. Replies
    4
    Views
    1,965

    thanks - i got it sorted now the prog failed due...

    thanks - i got it sorted now
    the prog failed due to reading past the end of a file, but why rem'ing that line allowed it work i don't know.

    i'll try leaving things for an hour before posting...
  8. Replies
    4
    Views
    1,965

    line contains what it should, 10,0.00,0,0,,,,

    line contains what it should, 10,0.00,0,0,,,,
  9. Replies
    4
    Views
    1,965

    substr problems

    I am having problems splitting 1 string into sub strings.
    the section of code is as follows


    getline ( file_1, line );
    index = line.find(",",1);
    time = line.substr(0,index);
    prob...
  10. Replies
    4
    Views
    1,486

    thanks i'll give it a go

    thanks i'll give it a go
  11. Replies
    4
    Views
    1,486

    I now have the code working, I didn't realise I...

    I now have the code working, I didn't realise I had to load the char[] with a null before appending to it.

    I'd like to use string, but the file handling commands (ifstream/ofstream) don't except...
  12. Replies
    4
    Views
    1,486

    char[] manipulation

    I'm writting a multiple file handling program and need to build filename and path strings.

    I want the user to be able to enter a path and then append the filename to the end of this. However when...
Results 1 to 12 of 12