Results 1 to 13 of 13

Thread: Mapping structures with logical Address

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2013
    Posts
    33
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Mapping structures with logical Address

    Hi
    I need to map few structures with the integer.I could not know how to do it?Can anyone help me
    Here is the example like:
    i have few structures like this
    Qt Code:
    1. struct {
    2. int a;
    3. float b;
    4. char *a;
    5. }a1;
    6. struct {
    7. int a;
    8. float b;
    9. char *a;
    10. }b1;
    To copy to clipboard, switch view to plain text mode 

    i want to map these structures with some logical address say 1001,1002 etc;;

    i feel we can do with QMap or QHash..

    QMap<int, struct> map;
    the above one could not be carried out.

    i want to insert all that structures with logical address.
    can anyone suggest some solution?


    Thanks
    Bala Beemaneni
    Last edited by anda_skoa; 15th July 2015 at 09:14. Reason: missing [code] tags

Similar Threads

  1. little q: illogical logical more c++
    By T1001 in forum Qt Programming
    Replies: 16
    Last Post: 13th July 2015, 17:29
  2. Suggestions for logical expression syntax?
    By rakkar in forum Qt Programming
    Replies: 1
    Last Post: 19th September 2009, 20:24
  3. Non logical Errors - qmake
    By ahmhdy in forum Qt Programming
    Replies: 7
    Last Post: 19th June 2009, 21:11
  4. little logical question........
    By sudheer in forum Qt Tools
    Replies: 3
    Last Post: 8th May 2008, 14:15
  5. Logical fonts?
    By sdfisher in forum Qt Programming
    Replies: 1
    Last Post: 1st March 2007, 13:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.