Search:

Type: Posts; User: ketu1

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    11,861

    i got it... I forgot to put () after c_str...

    i got it...
    I forgot to put () after c_str
    thanks a lot :-)
  2. Replies
    6
    Views
    11,861

    Hi This is my codde...

    Hi
    This is my codde
    iResultCompare=ldap_compare_s(ld,strDN.c_str,vAttTypeFromFile_m[iCntAtt].c_str(),vAllAttValFromFile_m[iCntAtt][iCntVal].c_str());

    and error is

    error C2664:...
  3. Replies
    6
    Views
    11,861

    How to convert string into PCHAR?

    Hi All
    I want to convert string into PCHAR.
    How can I do that?
    Please help..

    Thanks
    Ketu
  4. Thanks a lot Todd burch. Is this means that...

    Thanks a lot Todd burch.
    Is this means that there is no such method in STL library?
    I mean predefined method in STL...
  5. How to get value at particular index from a vector?

    Hello evervbody

    How to get value at particular index from a vector?

    Thanks in advance
    Ketu
  6. Thanks a lot matsp. It is solved now. Final...

    Thanks a lot matsp.
    It is solved now.
    Final program is as below:


    #include<vector>
    #include<iostream>
    using namespace std;

    int main()
  7. Solved

    Thanks A Lot.
  8. Is there any such function available?

    Is there any such function available?
  9. Replies
    24
    Views
    10,975

    Thanks a lot CornedBee

    Thanks a lot CornedBee
  10. Yes. But In my program I have two vectors. One...

    Yes.
    But In my program I have two vectors.
    One for storing keys and other for storing values.
    So I need index as well.


    #include<vector>
    #include<iostream>
    using namespace std;
  11. How to find index of a particular record in a vector?

    typedef vector<string> vString;

    vector<vString> vBig;
    vString vSmall;
    vString vType;
    vString::iterator itr;
    bool bPresent =false;
    string type="phone";
    string val="857867";
  12. Replies
    24
    Views
    10,975

    Thanks a lot nvoigt. :-)

    Thanks a lot nvoigt. :-)
  13. Replies
    12
    Views
    15,489

    What I am implementing here is reading the data...

    What I am implementing here is reading the data from LDIF file and add entries into iPlanet directory server accordingly.
  14. Replies
    12
    Views
    15,489

    Yes... i want to implement that only. But not...

    Yes... i want to implement that only.
    But not getting which way should I follow.
    First I tried implementation using multimap.
    In that case storing data was OK.
    But i was not able to retrive the...
  15. Also how to get index number? i.e. I want to...

    Also how to get index number?
    i.e. I want to know at what location string "phone" is stored in vector<string> v1.
    How I will get that?
    Please help.
  16. Is there any simple method to search whether a particular element is present in a vec

    Is there any simple method to search whether a particular stringis present in a vector<string> v1?
  17. Replies
    24
    Views
    10,975

    Can we have vector of vector?

    Can we have vector of vector?
    e.g.
    vector <vector<string>>vBig;
  18. Replies
    12
    Views
    15,489

    Yes .. But I'll not be knowing how many keys are...

    Yes .. But I'll not be knowing how many keys are there in a file.
    Like I am reading keys fro file.
    The file data may be like below:
    telephoneNumber: 435
    telephoneNumber: 5345
    telephoneNumber:...
  19. Replies
    12
    Views
    15,489

    If I'll use std::map

    If I'll use std::map<std::string, std::vector<std::string> >
    How I'll come to know how many vectors are required?
    Please help.
    thanks in advance.
  20. Replies
    12
    Views
    15,489

    But every time it is returning single value and...

    But every time it is returning single value and not all the values for that key.
  21. Replies
    12
    Views
    15,489

    Out of this Following is the code where I am...

    Out of this Following is the code where I am tring to read values from multimap:


    mapAttributes.insert(pair<const char *,const char *>(pchAttType,pchAttValue));
    }
    } ...
  22. Replies
    12
    Views
    15,489

    Hi I tried it using multimap. But I am not...

    Hi


    I tried it using multimap.
    But I am not able to find all the values of a particular key using multimap.
  23. Replies
    12
    Views
    15,489

    Thanks a lot. But I'll not be knowing how many...

    Thanks a lot.
    But I'll not be knowing how many vectors will be required at run time.
    Because i'll be reading this data from text file. For example -

    # entry-id: 5
    dn:...
  24. Replies
    12
    Views
    15,489

    How to store key value pair?

    Hi ,
    I want to store data which is in key value pair.
    Here one key can have many values.

    example:
    email : [email protected]
    [email protected]

    phone : 9877766655
    ...
Results 1 to 24 of 24