![]() |
| ||
| C++ File Generator Hey all, I'm new to this forum, first post.. so please excuse me (also excuse the perhaps not so eloquent style, it is still in preliminary!) =). I'm writing a short piece of code in compliance with a webserver I've been programming with a group. This code is to auto generate an assorted sizes of files (which will later be used to test latency timings and average GET request timings) starting from size Class 0 which are files less than 1KB, class 1 files are less than 10K, class 2 files are less than 100K and class 3 files are less than 1MB. It should auto-populates the specified directory with the four classes of files. There will be 9 files per class. Files in class 0 are in increments of 0.1KB (starting at 102 bytes) while class 1, class 2 and class 3 are in increments of 1KB. Syntax to use the code is HTMLGenerator -d <directory>. Output files should have the form of class<classsize#>_<increment>. My greatest problem is that our school's compiler is old and does not contain <sstream> hence making my INT to String conversion difficult. Currently the code seg faults, likely due to improper usage of the *buffer. Any questions regarding the code I will promptly reply as I'm still working away. Any suggestions on how I can get this done? Thank you all greatly for your time and help ! =) #include <string> |
| ||
| Re: C++ File Generator Hi all, I have managed to find a IntToString algorithm and I THINK its working, however the files are not generating. Sigh. If you could look over my code that would be great! #include <string> |
| ||
| Re: C++ File Generator lol never mind. I figured it all out, now to implement different flags, sorry for the spam guys. =) #include <string> |
| All times are GMT -4. The time now is 12:11 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC