Search:

Type: Posts; User: hello_moto

Search: Search took 0.01 seconds.

  1. Replies
    29
    Views
    3,745

    Hi Vart, Many thanks for your reply. Well,...

    Hi Vart,

    Many thanks for your reply.

    Well, it prompts for the data to be entered ok and I can enter it but it's after that part that I'm having trouble trying to calculate it. Does it need to...
  2. Replies
    29
    Views
    3,745

    Still can't get it to work - anyone any ideas on...

    Still can't get it to work - anyone any ideas on the above ?

    Thinking of stopping this one and starting another one as I can't get this working, would hate to do that though ! :)

    Thanks

    H_M
  3. Replies
    29
    Views
    3,745

    Hi vart, Thanks very much for your input on...

    Hi vart,

    Thanks very much for your input on this subject. Yes, I do wish to do all the above, converting, calculating and then format it back into a string. I am not using seconds though, don't...
  4. Replies
    29
    Views
    3,745

    Hi vart, Thank you for your reply. That...

    Hi vart,

    Thank you for your reply.

    That sounds pretty good - how would I go about doing that ? I'm not sure how I could do that.

    Any help will be greatly appreciated.

    Thanks
  5. Replies
    29
    Views
    3,745

    Hey guys, Yeah - I am trying to get the time...

    Hey guys,

    Yeah - I am trying to get the time taken between destination and arrival but think I may have been going about it the total wrong way ?

    I was trying to get the user to enter the times...
  6. Replies
    29
    Views
    3,745

    Thanks Zuk - it can't be done with the way I'm...

    Thanks Zuk - it can't be done with the way I'm doing it, that clears it up a bit more for me.

    I'm just having a look now for 'atoi()' and I'm going to try that, see how I get on.

    Many thanks !...
  7. Replies
    29
    Views
    3,745

    Vart, I tried your code example but still...

    Vart,

    I tried your code example but still cannot get the 'strcpy' to work. :o(

    Using your code I can get it to work, but as soon as I start changing it to take either of my inputs, it fails...
  8. Replies
    29
    Views
    3,745

    Thanks. I think my code might actually be a...

    Thanks. I think my code might actually be a mixture of C and C++ although it started off as C!

    It'll need to be tomorrow I look at it now, have to go out now with my mum. Will let you know how I...
  9. Replies
    29
    Views
    3,745

    Thanks mate - that looks quite good! I'm going to...

    Thanks mate - that looks quite good! I'm going to try and work that into my code as mines differs slightly as I'm using 'cout' rather than 'printf' and I want to get the total into another string so...
  10. Replies
    29
    Views
    3,745

    I know this will sound really stupid, but how...

    I know this will sound really stupid, but how would I do that ?? I thought I was passing the two of them as 'char' ?

    I am trying to work my way around it by using an old book that a friend passed...
  11. Replies
    29
    Views
    3,745

    Ah, I see, that makes sense to me now. The...

    Ah, I see, that makes sense to me now.

    The code of my struct is:
    struct travel_record_type
    {
    char member_name[MEMBER_NAME_SIZE+1];
    char member_phone[MEMBER_PHONE_SIZE+1];
    char...
  12. Replies
    29
    Views
    3,745

    I thought it was compiling as 'C' !? You'll have...

    I thought it was compiling as 'C' !? You'll have to forgive me on a couple of things, I am a beginner at this and just working my way through it.

    The struct 'travels' contains all the data that is...
  13. Replies
    29
    Views
    3,745

    strcpy - cannot convert

    Hi all,

    I'm trying to compile my program and I keep getting the error message
    error C2664: 'strcpy' : cannot convert parameter 2 from 'char' to 'const char *'
    Conversion from integral...
  14. Replies
    8
    Views
    1,182

    Cheers guys for the info on 'getline' - I'm...

    Cheers guys for the info on 'getline' - I'm trying to look into it but it's quite hard for me ! How would i go about using that in the code I pasted in my earlier post instead of 'gets' ??

    If I...
  15. Replies
    8
    Views
    1,182

    Thanks guys. Yeah, I had forgotten to include the...

    Thanks guys. Yeah, I had forgotten to include the 'stdio.h' header ! Always the simplest things. :p

    Sorry for using 'gets'. I've not been learning C++ long and the book I was/am using has 'gets'...
  16. Replies
    8
    Views
    1,182

    Undeclared Identifer

    Hi guys,

    I keep trying to compile the code of a small program that I have been creating just as a learning exerciser again but keep coming up against an error - "error C2065: 'gets' : undeclared...
  17. Hi, Thanks for your reply, it's much...

    Hi,

    Thanks for your reply, it's much appreciated. :)

    I am just really learning C++ so thought that gets would be the best to use - what's wrong with it can I ask ??

    I have changed the size...
  18. Problem getting the input from a temp variable into the Array

    Hi guys,

    I'm having another wee problem with a wee program that I'm trying to create. I managed to get the 'Validation' working so that it would reject an input that wasn't equal to five chars,...
  19. Replies
    10
    Views
    1,570

    Hi guys, Just want to say thanks for all your...

    Hi guys,

    Just want to say thanks for all your help with this. I started again using the examples on here, done a couple of tweaks to make it suit my own program and it is working fine ! Even have...
  20. Replies
    10
    Views
    1,570

    Hi 7stud, Again, thanks for all your help with...

    Hi 7stud,

    Again, thanks for all your help with this ! I'm still having the same problem trying to get the strlen() function to work with my program, but think I will get there in the end,...
  21. Replies
    10
    Views
    1,570

    Hi 7stud, Once again, thank you very much for...

    Hi 7stud,

    Once again, thank you very much for your reply and help on this. :)

    I've changed it a bit now and have been using strlen and, I can get the error message to appear, but, it doesn't...
  22. Replies
    10
    Views
    1,570

    7stud, thank you for such a speedy reply - much...

    7stud, thank you for such a speedy reply - much appreciated ! ;)

    I decided on using your second post as a guide, as that looked like the easiest for me to use, and I amended it slightly to fit...
  23. Replies
    10
    Views
    1,570

    Validate data on input

    Hi folks,

    Nice to be on this forum. :)

    I'm kinda new to C++ and have been working my way through a few on-line tutorials and have bought myself an idiots guide book but have come to a halt...
Results 1 to 23 of 23