Search:

Type: Posts; User: ajb268

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,588

    Thanks to both of you each method clued me in on...

    Thanks to both of you each method clued me in on what to think about and I appreciate your efforts.
  2. Replies
    3
    Views
    1,588

    Truncating a char *

    Hey all,
    Probably this is a easy one but not sure how to do it. This is what I have



    int month=0;
    char *filename2[] = {
    "january.log", "february.log",
    "march.log", "april.log",...
  3. Replies
    13
    Views
    3,489

    Here's what i ended up with: ...

    Here's what i ended up with:



    TsrGrouper(string inSource2)
    /*Searches given file and tallys up each TSR's sales in a formatted report
    by month*/
    {
    ifstream source(inSource2.c_str());...
  4. Replies
    13
    Views
    3,489

    This is the error I get with using ...

    This is the error I get with using
    theMap.insert(line.substr(513,2));

    :\Documents and Settings\tbixler\Desktop\parser\TSR Reports\TSR Reports.cpp(48) : error C2664: 'struct std::pair<class...
  5. Replies
    13
    Views
    3,489

    >>making sure that the previous ID's don't equal...

    >>making sure that the previous ID's don't equal the present one.
    I don't get it, why does it matter what the previous ID was?

    What I mean is that the ID repeats and when that ID repeats wouldn't...
  6. Replies
    13
    Views
    3,489

    After I sent up my last post I saw your last...

    After I sent up my last post I saw your last reply but I'm still having problems with loading the map has to be a char*??

    Here's my code I'm trying


    std::map<std::string, int> theMap;
    while...
  7. Replies
    13
    Views
    3,489

    Here's what I got in terms of data to use The...

    Here's what I got in terms of data to use

    The sales person's id is at location (513,2) on a line. Each line is a sale.
    I need to bring in one person's ID and count how many lines(sales)...
  8. Replies
    13
    Views
    3,489

    I was reading up on containers when I came across...

    I was reading up on containers when I came across this example would this be able to be converted over to my problem?? I know that I have to change the multiset to something other than char but not...
  9. Replies
    13
    Views
    3,489

    Here's some code of what I had so far it doesn't...

    Here's some code of what I had so far it doesn't compile because of what data I sent through...



    int TsrGrouper(string inSource2)
    /*Searches given file and tallys up each TSR's sales in a...
  10. Replies
    13
    Views
    3,489

    Algorithm Questions

    Here's my task
    I have a file filled with sales info each line in the text file is a different sale done by a different Sales Person which is denoted by a 2 char code as in 'r1'. But sale people...
  11. Replies
    3
    Views
    837

    I knew something must have been going on with...

    I knew something must have been going on with scope... hk_mp5kpdw used your suggestions with Salem's way of doing it works great now.
    Thanks again!
  12. Replies
    3
    Views
    837

    File I/O Sorting Months

    Efficiency is my problem here.
    I have a text file(10mb) that at (535,2) (on each line) it has a two digit code for the month. I need to make a separate file to break each month into its own file...
  13. Replies
    10
    Views
    1,811

    Everything worked great time cut into pieces....

    Everything worked great time cut into pieces. PsuedoCode rocks.
  14. Replies
    10
    Views
    1,811

    You wrote: Well the group.c_str() file...

    You wrote:

    Well the group.c_str() file contains only 4, 2 character elements. I converted the Annotate over to the map you suggested. But Disposition the "excluded.all" has like 72 elements is...
  15. Replies
    10
    Views
    1,811

    int Disposition(string processed) //does the...

    int Disposition(string processed)
    //does the whole thing over again
    //with a new set of codes at a different location.
    {

    ifstream in("excluded.all");//has the keycodes to be kept in ...
  16. Replies
    10
    Views
    1,811

    You wrote: I don't understand your...

    You wrote:



    I don't understand your comment did you move me over to the C++ board??? If thats the case thanks but if you didn't then that is where I am and I still don't understand your...
  17. Replies
    10
    Views
    1,811

    You wrote: Well my only option is c++ 6.0 ....

    You wrote:


    Well my only option is c++ 6.0 . But thanks.

    I'm new to most of this but in past programs I used a struct but I'm unsure how to applie it to this case.

    Here are the...
  18. Replies
    10
    Views
    1,811

    Simple Array or Not?

    Here's what I'm having trouble with:

    Large text file: I must pull out certain rows if they are in one of the 4 groups put that into a file. Called results.all Location in the file is constant at...
  19. Thread: A better way?

    by ajb268
    Replies
    3
    Views
    1,063

    I have done some work with strings before but I...

    I have done some work with strings before but I don't understand the
    using std::ofstream;
    using std::cout;
    using std::cin;
    using std::endl;
    using std::fstream;
    using std::ios;
    using...
  20. Thread: A better way?

    by ajb268
    Replies
    3
    Views
    1,063

    A better way?

    This is an old file that I would like to update, I have tried to convert everything over to string but it ended up a failure wasn't sure what functions to use and classes. The buffer flushes fix...
  21. Replies
    6
    Views
    1,434

    I have a separate issue now... Before I reduce...

    I have a separate issue now... Before I reduce the main file of the duplicates and do not calls, I need to group the file by id key code. How would I remove the duplicate part of this program to...
  22. Replies
    6
    Views
    1,434

    Cool thanks for all of your help, your...

    Cool thanks for all of your help, your explanation really helped me to understand.
    It seems to make sense now thinking about all this makes me think it has to be the lengths and offsets because I...
  23. Replies
    6
    Views
    1,434

    Quick question why do I get a can not read error...

    Quick question why do I get a can not read error when I try to
    cout<<*tic<<endl; I put this in between the find if and the if statement


    tic =...
  24. Replies
    6
    Views
    1,434

    This is my adjusted Search code This is what I...

    This is my adjusted Search code
    This is what I think it should do
    Tested is the main file the phone number is out on the 259th char on the row and the search uses the row(called number from dnc...
  25. Replies
    6
    Views
    1,434

    Max Line Size and Structs

    Heres what I'm trying to do

    for each item in N file:
    for each item in M file:
    see if this N list item is the same as this M list item

    Now to do this I'm using this code and have...
Results 1 to 25 of 45
Page 1 of 2 1 2