Search:

Type: Posts; User: Jeff21

Search: Search took 0.00 seconds.

  1. Well I have managed to get strftime working and...

    Well I have managed to get strftime working and it names the file perfectly. Thanks for eveyones help and here is the code that got it working :





    char fileName[20];

    struct tm *ptr;...
  2. Thanks alot for your post, it fixed the problem....

    Thanks alot for your post, it fixed the problem. I was preety sure my asctime was giving me a std::string due to my compile errors so I used .c_str() and it fixed it. It now gets the date and time,...
  3. Thanks for the post, I never thought of the...

    Thanks for the post, I never thought of the problem with the date format using colons. Although I had yet to get to a point where that was going to be my problem.

    I have a question regarding...
  4. I am sorry but I am finding your example rather...

    I am sorry but I am finding your example rather complex to understand ( I am not a good programmer ). I had another look around and have been trying to use this example :






    time_t...
  5. Thanks ill have a look through it.

    Thanks ill have a look through it.
  6. Automatically dating an output file created by ofstream

    I am trying to create a program that stores some data in a file then closes it. I need the file to be named with the date and time of when it was closed by the program. I am using ofstream to write...
Results 1 to 6 of 6