473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Mapping the data

Hi I want to flag my data files:-
Here is how the input is:-
Expand|Select|Wrap|Line Numbers
  1. 100154331    100155428    *    54873    Andrew    
  2. 100159575    100159618    "    54873    Andrew    
  3. 100174454    100174676    #    391059    Andrew    
  4. 100174754    100174815    >    391059    Morgan
  5. 100172344    100174815    ?    391059    Morgan
  6. 100316599    100316680    =    178    Austin
  7.  
Here is how I want my output to be like:-
Expand|Select|Wrap|Line Numbers
  1. 100154331    100155428    *    54873    Andrew    start
  2. 100159575    100159618    "    54873    Andrew    m
  3. 100174454    100174676    #    391059    Andrew    end
  4. 100174754    100174815    >    391059    Morgan  start
  5. 100172344    100174815    ?    391059    Morgan  end
  6. 100316599    100316680    =    178    Austin  single
  7.  
I was using multimap like this but I donno howto make it work like this. Any help will be appreciated.

Expand|Select|Wrap|Line Numbers
  1.       multimap<string, int> m;
  2.       m.insert(pair<string, int>("a", 1));
  3.       m.insert(pair<string, int>("c", 20));
  4.       m.insert(pair<string, int>("b", 3));
  5.       m.insert(pair<string, int>("b", 4));
  6.       m.insert(pair<string, int>("a", 5));
  7.       m.insert(pair<string, int>("b", 6));
  8.  
How can I proceed.

Thanks
Oct 5 '09 #1
2 1443
Banfa
9,065 Expert Mod 8TB
@cowboyrocks2009
I'm sorry but your question makes little sense , that is it is not clear what your are asking and your example multimap appears to have no relationship to the example data you give.
Oct 5 '09 #2
weaknessforcats
9,208 Expert Mod 8TB
What part of your multimap is not working?
Oct 5 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Olivier Jullian | last post by:
Hi, I'm new to .NET and am trying to take advantage of the object structure while accessing relational databases. I started a small project for managing "projects". Here is a description of...
1
by: Guy Mahieu | last post by:
Hello all, I am currently laying the baseline for a relatively small, single tier application in which a small number of workstations will retrieve their data from a MySQL database on a central...
1
by: Tamas Hegedus | last post by:
Hi! I am looking for an xml-object mapping tool ('XML Data Binding-design time product') where I can define the mapping rules in 'binding files' and the parser is generated automatically. ...
1
by: CV | last post by:
Hello, Could anyone please throw your suggestions on the following scenario? (It would be really helpful if you could provide a solution using ..NET,XSLT,XSD,Web Service other than 'Biztalk...
0
by: Sebastian Ware | last post by:
O/R Mapping. After six months of hard work, we are proud to make available the Public Beta of Pragmatier Data Tier Builder 2.5. Initial feedback is amazing, download NOW and find out for yourself:...
3
by: Elder Hyde | last post by:
I was reading this interview with Hejlsberg, when suddenly the conversation turned to O/R mapping. Hejlsberg talked as if he had had to design an O/R mapping for .NET (he said ".NET had each one of...
5
by: Kevin C | last post by:
I was curious to know what some developers out in the industry are doing when it comes to exposing Data access logic, specifically persistence. This is assuming that your not using an O/R framework...
0
by: Joel | last post by:
Hello: I have some question about some data type mapping for some data type of my c++ dll Data Type Mapping ----------------------------------- type are time_t tm char *message
1
by: none | last post by:
Hi, I'm trying to establish table mappings, and I've hit a snag. At the point to where I try to fill the schema (DB_adapter.FillSchema), I get an exception, and the message is as follows:...
5
by: alan | last post by:
Hello world, I'm wondering if it's possible to implement some sort of class/object that can perform mapping from class types to strings? I will know the class type at compile time, like so:...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.