<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: C++ STL in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/c-stl/m-p/3864251#M98459</link>
    <description>Hi,&lt;BR /&gt;something along the lines of the attached code. Test comiled with gcc&lt;BR /&gt;Parameters:&lt;BR /&gt;1. Input filename&lt;BR /&gt;2. Key to look for&lt;BR /&gt;&lt;BR /&gt;e.g. ./a data.lis Hello4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you happy with this solution please award points.</description>
    <pubDate>Mon, 18 Sep 2006 08:40:43 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2006-09-18T08:40:43Z</dc:date>
    <item>
      <title>C++ STL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-stl/m-p/3864250#M98458</link>
      <description>I want to implement this in C++.I will have one file in which i will define Key and value.&lt;BR /&gt;&lt;BR /&gt;What i want to do is that i wll read file once store all the value in &lt;BR /&gt;data structure. And wll do search for that particular key and it should &lt;BR /&gt;return me value of that  particular Key. Key and Value are string and Key &lt;BR /&gt;will always be unique.&lt;BR /&gt;&lt;BR /&gt;Can anyone suggest me better way of doing it Using C++,STL&lt;BR /&gt;&lt;BR /&gt;For Example&lt;BR /&gt;&lt;BR /&gt;file contents are&lt;BR /&gt;&lt;BR /&gt;hello1:def&lt;BR /&gt;hello2:cef&lt;BR /&gt;Hello3:gef&lt;BR /&gt;Hello4:cef&lt;BR /&gt;Hello5:cef.&lt;BR /&gt;&lt;BR /&gt;Suppose i search for hello2 it should return me cef.Hope i am clear.</description>
      <pubDate>Mon, 18 Sep 2006 04:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-stl/m-p/3864250#M98458</guid>
      <dc:creator>Tnameh</dc:creator>
      <dc:date>2006-09-18T04:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: C++ STL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-stl/m-p/3864251#M98459</link>
      <description>Hi,&lt;BR /&gt;something along the lines of the attached code. Test comiled with gcc&lt;BR /&gt;Parameters:&lt;BR /&gt;1. Input filename&lt;BR /&gt;2. Key to look for&lt;BR /&gt;&lt;BR /&gt;e.g. ./a data.lis Hello4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you happy with this solution please award points.</description>
      <pubDate>Mon, 18 Sep 2006 08:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-stl/m-p/3864251#M98459</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-09-18T08:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: C++ STL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-stl/m-p/3864252#M98460</link>
      <description>Well, i could not find the attached file.&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Sep 2006 00:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-stl/m-p/3864252#M98460</guid>
      <dc:creator>Tnameh</dc:creator>
      <dc:date>2006-09-19T00:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: C++ STL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-stl/m-p/3864253#M98461</link>
      <description>I don't see Peter's example so I wrote my own.  Most of the source is fluff to get the file and read it.  The only important thing is the STL "insert": m_string[key] = value;&lt;BR /&gt;And the find: mss_iter itr = m_string.find(argv[2]);</description>
      <pubDate>Tue, 19 Sep 2006 01:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-stl/m-p/3864253#M98461</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-09-19T01:00:29Z</dc:date>
    </item>
  </channel>
</rss>

