Thanks to both of you each method clued me in on what to think about and I appreciate your efforts.
Type: Posts; User: ajb268
Thanks to both of you each method clued me in on what to think about and I appreciate your efforts.
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",...
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());...
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...
>>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...
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...
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)...
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...
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...
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...
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!
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...
Everything worked great time cut into pieces. PsuedoCode rocks.
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...
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 ...
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...
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...
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...
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...
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...
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...
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...
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 =...
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...
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...