Results 1 to 13 of 13

Thread: Copying vector of pointers to another vector

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Copying vector of pointers to another vector

    Hello!

    I'm having a problem in trying to copy the content of a vector to another vector.

    Essentially what I want is to create a vector of pointer
    Qt Code:
    1. Alarm *vector[];
    To copy to clipboard, switch view to plain text mode 
    and add them pointers that point to objects
    Qt Code:
    1. for (...;...;...)
    2. {
    3. vector[] = new Alarm;
    4. etc.
    5. }
    To copy to clipboard, switch view to plain text mode 
    than I want to pass that vector to a different class through a function that will makes a different vector
    Qt Code:
    1. Alarm *alarms[];
    To copy to clipboard, switch view to plain text mode 
    that will "copy" the content of the first, i.e. will point to the same objects of the first one in the same sequence. I though that I should do the following:
    Qt Code:
    1. for (...;...;...)
    2. {
    3. alarms[] = vector[];
    4. etc.
    5. }
    To copy to clipboard, switch view to plain text mode 
    but despite the compiler runs OK, when I try to use the software it crashes, displaying the message that the software stop working and I must close.

    Notice, though, that this only happens when the copy is done in this second class. If the same copy is done in the original class, everything runs fine! So, what is the problem?

    Details:

    I'm calling the following method to do the copy:

    Qt Code:
    1. v_alarmmanagment->readExistingAlarms(v_vector, numberofalarms);
    2.  
    3. /***************/
    4.  
    5. void AlarmManagment::readExistingAlarms(Alarm *alarms[], int numb)
    6. {
    7. vector2[numb] = alarms[numb];
    8. }
    To copy to clipboard, switch view to plain text mode 


    Thanks!


    Momergil

    -----
    Edit: only now I saw that I should have posted this thread in the "General Programming" section. Sorry!
    Last edited by Momergil; 18th September 2011 at 02:34. Reason: found necessary

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Copying vector of pointers to another vector

    This code:
    Qt Code:
    1. void AlarmManagment::readExistingAlarms(Alarm *alarms[], int numb)
    2. {
    3. vector2[numb] = alarms[numb];
    4. }
    To copy to clipboard, switch view to plain text mode 
    will not do what you want, this will copy the last value (pointer), leaving the rest uninitialized and most likely you get "seg-fault" or "access violation" errors.

    See this example with c-arrays (i use int data as example) and i will later give you one that uses c++ (and Qt's nice classes and depending on what you do with the "copy" of the pointers it might no even copy them)
    So, the C with classes code:
    Qt Code:
    1. void copy_and_modify_array(int* v[], int size) {
    2. /*
    3. because this declaration:
    4. int* v_copy[size] ...
    5. will fail on most compilers
    6. ...
    7. this is how you should declare it...
    8. */
    9. int** v_copy = new int*[size];
    10.  
    11. //loop and copy the pointers
    12. for(int i = 0; i != size; ++i) {
    13. v_copy[i] = v[i];
    14. }
    15.  
    16. //modifying the "vector copy" pointed values will affect the original
    17. for(int i = 0; i != size; ++i) {
    18. *(v_copy[i]) = *(v_copy[i])+1000; //add 1000 to the old value
    19. }
    20. }
    21.  
    22. int main()
    23. {
    24. const int size = 3;
    25. int* vector[size];
    26. //init vector
    27. for(int i = 0; i != size; ++i) {
    28. vector[i] = new int(i);
    29. }
    30. //print before
    31. for(int i = 0; i != size; ++i) {
    32. std::cout << *vector[i] << " ";
    33. }
    34. std::cout << '\n';
    35. //call modify
    36. copy_and_modify_array(vector, size);
    37.  
    38. //print again after modifications
    39. for(int i = 0; i != size; ++i) {
    40. std::cout << *vector[i] << " ";
    41. }
    42. return 0;
    43. }
    To copy to clipboard, switch view to plain text mode 
    And now the real solution to your problem will be to use QVector or QList and QSharedPointer - this solution might not copy the pointers*** because the QVector is sharing data.
    ***depends on what you do with the copy.
    Here is the code:
    Qt Code:
    1. #include <iostream>
    2. #include <QVector>
    3. #include <QSharedPointer>
    4.  
    5. using namespace std;
    6.  
    7. void copy_and_modifie_QVector(QVector<QSharedPointer<int> > v) //you don't need to pass the size (QVector knows it's size)
    8. {
    9. QVector<QSharedPointer<int> > vector_copy = v;
    10.  
    11. //the QShaderPointer "copy" will modifie the original data (because that data is shared with the original copy of the pointers)
    12. foreach(QSharedPointer<int> sharedPointer, vector_copy) //easy way to go thru all QVector elements //you can still use for loop, but this looks nice ;)
    13. {
    14. *sharedPointer = *sharedPointer + 1000;
    15. }
    16. }
    17.  
    18. int main()
    19. {
    20.  
    21. QVector<QSharedPointer<int> > vector;
    22. vector.resize(3);
    23. //init vector
    24. for(int i = 0; i != 3; ++i)
    25. {
    26. vector[i] = QSharedPointer<int>(new int(i));
    27. }
    28.  
    29. //print before
    30. for(int i = 0; i != 3; ++i)
    31. {
    32. std::cout << *vector[i] << " ";
    33. }
    34.  
    35. std::cout << '\n';
    36. //call function that modifie the vector
    37. copy_and_modifie_QVector(vector);
    38.  
    39. //print again after modifications
    40. for(int i = 0; i != 3; ++i)
    41. {
    42. std::cout << *vector[i] << " ";
    43. }
    44.  
    45. std::cin.get();
    46. return 0;
    47. }
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Copying vector of pointers to another vector

    Hello, Zlatomir!

    First, thanks for the help. just some comments:

    Quote Originally Posted by Zlatomir View Post
    This code:
    Qt Code:
    1. void AlarmManagment::readExistingAlarms(Alarm *alarms[], int numb)
    2. {
    3. vector2[numb] = alarms[numb];
    4. }
    To copy to clipboard, switch view to plain text mode 
    will not do what you want, this will copy the last value (pointer), leaving the rest uninitialized and most likely you get "seg-fault" or "access violation" errors.
    Well, that was actually a simplified version of the code. Actually I use for(; to copy all the vectors, but the problem appears even if a copy just one of them as in the code I posted.

    Anyway, thanks for the codes. I will see the second one soon.


    God bless,

    Momergil.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,592
    Thanks
    13
    Thanked 1,587 Times in 1,516 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Copying vector of pointers to another vector

    If there are "numb" elements in the array you have space allocated for "numb" values then the last valid index is "numb-1". Trying to access array[numb] is a recipe for out-of-bounds memory violations.
    Where is space to hold the array of pointers, called vector2, allocated? I suspect you are never doing that.

    Don't try to fix this using C-style memory management techniques... save yourself the anguish and use either the STL containers or the Qt containers as Zlatomir suggests.

  5. #5
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Copying vector of pointers to another vector

    And another "little" difference between my two examples is that the first example leaks memory (i intentionally "forgot" about cleanup and while writing the post i forgot to mention this advantage) and the second example automatically delete the allocated memory so there is no leak in the second example.

  6. #6
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Copying vector of pointers to another vector

    Quote Originally Posted by ChrisW67 View Post
    If there are "numb" elements in the array you have space allocated for "numb" values then the last valid index is "numb-1". Trying to access array[numb] is a recipe for out-of-bounds memory violations.
    Hello Chris,

    well this is not actually in my test code, i think I copied wrong. Here is the code that is not working:
    Qt Code:
    1. void AlarmManagment::readExistingAlarms(Alarm *alarms[], int numb)
    2. {
    3. /**** Copy current data ****/
    4. numberofalarms2 = numb;
    5.  
    6. for (int aaa = 0; aaa < numberofalarms2; aaa++)
    7. {
    8. v_Alarm2[aaa] = alarms[aaa];
    9. qDebug() << "Copied: " << v_Alarm2[aaa]->getDia();
    10. qDebug() << "From: " << alarms[aaa]->getDia();
    11. }
    12.  
    13. /**** Add to the list all alarms ****/
    14. for (int zzz = 0; zzz < numberofalarms2; zzz++)
    15. {
    16. if (!vector_String1.contains(v_Alarm2[zzz]->getDia()))
    17. {
    18. vector_String1.push_back(v_Alarm2[zzz]->getDia());
    19. qDebug() << "Antes do addRoot 2";
    20. addRoot(v_Alarm2[zzz]->getDia(), v_Alarm2[zzz]->getDiadaSemana(), v_Alarm2[zzz]->getHora(),
    21. v_Alarm2[zzz]->getSmallDescription());
    22.  
    23. addToYearandMonthCB(v_Alarm2[zzz]->getDiaOnlyYear(),v_Alarm2[zzz]->getDiaOnlyMonth());
    24. }
    25. else
    26. {
    27. listaDeQTreeWidgetItems = ui->Listofalarms->findItems(v_Alarm2[zzz]->getDia(),Qt::MatchExactly,0);
    28. addChild(listaDeQTreeWidgetItems.front(), v_Alarm2[zzz]->getDiadaSemana() ,v_Alarm2[zzz]->getHora(),
    29. v_Alarm2[zzz]->getSmallDescription());
    30. }
    31. }
    32. }
    To copy to clipboard, switch view to plain text mode 

    When I run the Debugger, it points error not in the process of copy (which my test show that runs fine), but in the addRoot() function. The addRoot() function is:
    Qt Code:
    1. void AlarmManagment::addRoot(QString data, QString semana, QString hora, QString smadesc)
    2. {
    3. QTreeWidgetItem *itm = new QTreeWidgetItem(ui->Listofalarms);
    4. itm->setText(0,data);
    5.  
    6. itm2->setText(0,semana);
    7. itm2->setText(1,hora);
    8. itm2->setText(2,smadesc);
    9.  
    10. itm->addChild(itm2);
    11. }
    To copy to clipboard, switch view to plain text mode 

    and the error is pointed to the first line of this function. Very interestingly, if I commet all the second for(; where the addRoot() function is, no problems occurs, so it is like the way I copy the pointers is not problematic, but makes another part of the code to be so.

    Where is space to hold the array of pointers, called vector2, allocated? I suspect you are never doing that.
    Hmm what exactly do you mean by that?


    Thanks,

    Momergil

  7. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,592
    Thanks
    13
    Thanked 1,587 Times in 1,516 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Copying vector of pointers to another vector

    At line 20 of the first listing you are calling addRoot(). I would suspect the pointer, v_Alarm2[zzz], is either 0, uninitialised, or pointing at a deleted item.

    The array v_Alarm2 that you are copying into has to have had space allocated for it somewhere. It might be declared with a fixed size, or dynamically allocated, but we cannot see that.

    Have you considered QVector<> or QList<> in place of the bare C++ array?

  8. #8
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Copying vector of pointers to another vector

    Quote Originally Posted by ChrisW67 View Post
    At line 20 of the first listing you are calling addRoot(). I would suspect the pointer, v_Alarm2[zzz], is either 0, uninitialised, or pointing at a deleted item.

    The array v_Alarm2 that you are copying into has to have had space allocated for it somewhere. It might be declared with a fixed size, or dynamically allocated, but we cannot see that.

    Have you considered QVector<> or QList<> in place of the bare C++ array?
    Hello Chris,

    Now I think it's strange that v_Alarm2[zzz] would be "either 0, uninitialised, or pointing at a deleted item." because the test done in lines 9 and 10 of the first code showed that the copy was done correctly; the v_Alarm2 is trully pointing to the objects Alarms received by Alarm *alarms[]:

    Qt Code:
    1. Starting D:\- Meus Documentos\Minhas obras\Softwares\mClock\mClock 1.05\debug\mClock.exe...
    2. "D:/- Meus Documentos/Minhas obras/Softwares/mClock/mClock 1.05"
    3. Alarme invalido; ja passou da data: QDate("sex set 23 2011")
    4. Copied: "29/10/2011"
    5. From: "29/10/2011"
    6. Copied: "29/11/2012"
    7. From: "29/11/2012"
    8. Copied: "29/08/2013"
    9. From: "29/08/2013"
    10. Copied: "30/08/2013"
    11. From: "30/08/2013"
    12. Copied: "30/08/2013"
    13. From: "30/08/2013"
    14. Antes do addRoot 2
    15. The program has unexpectedly finished.
    16. D:\- Meus Documentos\Minhas obras\Softwares\mClock\mClock 1.05\debug\mClock.exe exited with code -1073741819
    To copy to clipboard, switch view to plain text mode 

    More than that, the debugger don't point the problem to line 20, what would indicate a problem in the calling addRoot() with the vector, but to line 3 of the second box, a line that has nothing to do with v_Alarm2[], rather being a simple declaration of a new QTreeWidgetItem pointer.

    About the space allocated for v_Alarm2, well I didn't declare it with a fixed size, rather as:

    Qt Code:
    1. Alarm *v_Alarm2[];
    To copy to clipboard, switch view to plain text mode 

    in the header file. And in terms of using QVector<> or else QList<>, in fact I pretended to use QVector<> in the beginning, but a part of my code used some unusual coding that I already used 2 years ago in my classes about C++ in the university and I decided to use exactly the same code for this software for the time being. In any case, how would I declare "Alarm *v_Alarm2[]" using QVector<>?


    Thanks!


    Momergil

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Copying vector of pointers to another vector

    "Alarm *v_Alarm2[]" is equivalent to "Alarm **v_Alarm2". It doesn't allocate any space for the data. If you start writing data to such array you risk overwriting critical areas of the memory (the stack frame) which can cause a crash when data that used to occupy the overwritten area of memory is tried to be accessed. I don't know if this is the case here but it might be.

    As for using C-style arrays vs C++ vectors... "Alarm *v_Alarm2[]" is a C construction, not a C++ one. However all things you can do with a C array, you can do with a vector as well (apart from overwriting data that shouldn't be overwritten).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  10. #10
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Copying vector of pointers to another vector

    Quote Originally Posted by wysota View Post
    "Alarm *v_Alarm2[]" is equivalent to "Alarm **v_Alarm2". It doesn't allocate any space for the data. If you start writing data to such array you risk overwriting critical areas of the memory (the stack frame) which can cause a crash when data that used to occupy the overwritten area of memory is tried to be accessed. I don't know if this is the case here but it might be.

    As for using C-style arrays vs C++ vectors... "Alarm *v_Alarm2[]" is a C construction, not a C++ one. However all things you can do with a C array, you can do with a vector as well (apart from overwriting data that shouldn't be overwritten).
    Hello wysota,

    in fact the compiler, some times (depending on how I arranged things), did called the v_Alarm2[] as being **v_Alarm2 as you noticed. But in any case, how should I, than, create a vector of pointers and than create pointers to an object and store those pointers in the vector? That is what I pretend to do.

    Thanks,


    Momergil

  11. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Copying vector of pointers to another vector

    Quote Originally Posted by Momergil View Post
    But in any case, how should I, than, create a vector of pointers and than create pointers to an object and store those pointers in the vector?
    The bare C++ way:

    Qt Code:
    1. Alarm **v_Alarm2 = new Alarm*[10];
    2. for(int i=0;i<10;++i)
    3. v_Alarm2[i] = new Alarm[10];
    To copy to clipboard, switch view to plain text mode 
    The STD/Qt C++ way:
    Qt Code:
    1. QVector< QVector<Alarm> > v_Alarm2;
    2. v_Alarm2.resize(10);
    To copy to clipboard, switch view to plain text mode 

    The best approach: since there are no two dimensional arrays in C++, it is better to create a one dimensional array and provide a way to access the data using two-dimensional coordinates.
    Qt Code:
    1. QVector<Alarm> v_Alarm2(100);
    2.  
    3. Alarm& getAlarm(QVector<Alarm> &arr, int x, int y) {
    4. return arr[y*10+x];
    5. }
    To copy to clipboard, switch view to plain text mode 
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  12. #12
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Copying vector of pointers to another vector

    Hello wysota,

    It seems to me that nether of the possible solutions you presented work. In all cases ether the compiler return 25 errors or else made the software chrases. When I try the first code, it gives a error in the QString that I simply don't comprehend. If I try the second code, I'm unable to do what I want: the first vector only allows me to acces functions of the second vector, not the functions of the object I want to work with. And the third I didn't understand exactly how should I use it :P So, if that will make it clearer (maybe the fault is mine, that means maybe I'm not describing exaclty what I want), here is the code I have now and that works: (part of it)

    Qt Code:
    1. //Header
    2. Alarm *v_Alarm[];
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. //.cpp
    2. while (...)
    3. {
    4. //Create a new alarm with its atributes
    5. v_Alarm[numberofalarms] = new Alarm;
    6. v_Alarm[numberofalarms]->setDia(temp_date);
    7. v_Alarm[numberofalarms]->setDiadaSemana(temp_diasemana);
    8. v_Alarm[numberofalarms]->setHora(temp_time);
    9. v_Alarm[numberofalarms]->setDescription(description_str); //Talvez nao seja isso.
    10. v_Alarm[numberofalarms]->setSmallDescritpion(smalldescription_str);
    11. v_Alarm[numberofalarms]->setName(nome_str);
    12.  
    13. if (!soundfile.isEmpty())
    14. v_Alarm[numberofalarms]->setSound(soundfile);
    15. else
    16. v_Alarm[numberofalarms]->setSound("normal");
    17.  
    18. numberofalarms++;
    19. }
    To copy to clipboard, switch view to plain text mode 

    A new question that appeared now is: couldn't I do a similar thing, but without pointers (rather with the objects themselfs) in the following way:

    Qt Code:
    1. // Header
    2. QVector<Alarm> vec_Alarm;
    3.  
    4. //CPP
    5. while (...)
    6. {
    7. Alarm aha;
    8. vec_Alarm.push_back(aha);
    9. vec_Alarm[numberofalarms].setDia(temp_date);
    10. vec_Alarm[numberofalarms].setDiadaSemana(temp_diasemana);
    11. //etc
    12.  
    13. numberofalarms++;
    14. }
    To copy to clipboard, switch view to plain text mode 
    ?? Because if I can, that it seems to me that this is fine (the compiler pointed no errors). The unique question that appears is how should I solve my initial problem using this new code.


    Thanks,


    Momergil


    Added after 22 minutes:


    Ok, forgot the last line in the last thread: the compiler does return problem. It says:

    c:\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore\qob ject.h:309: error: 'QObject::QObject(const QObject&)' is private
    D:\- Meus Documentos\Minhas obras\Softwares\mClock\mClock 1.06\alarm.h:9: error: within this context
    c:\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore\qob ject.h:309: error: 'QObject& QObject:perator=(const QObject&)' is private
    D:\- Meus Documentos\Minhas obras\Softwares\mClock\mClock 1.06\alarm.h:9: error: within this context

    Does somebody knows what is the problem exactly? The "within this context" points to the header of the class Alarms, which is essentially:

    Qt Code:
    1. #ifndef ALARM_H
    2. #define ALARM_H
    3.  
    4. #include <QObject>
    5. #include <QDate>
    6. #include <QTime>
    7.  
    8. class Alarm : public QObject
    9. {
    10. Q_OBJECT
    11. public:
    12. explicit Alarm(QObject *parent = 0);
    13. void setHora(QTime a);
    14. void setDia(QDate b);
    15. ...
    16.  
    17. signals:
    18.  
    19. public slots:
    20.  
    21. private:
    22. QDate data, diadasemana;
    23. QTime hora;
    24. ...
    25. };
    26.  
    27. #endif // ALARM_H
    To copy to clipboard, switch view to plain text mode 

    Thanks,

    Momergil.
    Last edited by Momergil; 24th September 2011 at 22:09.

  13. #13
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Copying vector of pointers to another vector

    Quote Originally Posted by Momergil View Post
    It seems to me that nether of the possible solutions you presented work.
    Tough luck, they all work fine for me.
    When I try the first code, it gives a error in the QString that I simply don't comprehend.
    I don't use QString anywhere so obviously the errors you get are unrelated to my code.

    If I try the second code, I'm unable to do what I want: the first vector only allows me to acces functions of the second vector, not the functions of the object I want to work with.
    I have no idea what you mean by that. Since the outside array is an array of arrays, it seems obvious that operating on the outside array will cause access to the inside array and not to the contents of the inside array.

    And the third I didn't understand exactly how should I use it
    What exactly you don't understand?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Copying Vector Images to the Windows Clipboard
    By pherthyl in forum Qt Programming
    Replies: 4
    Last Post: 22nd May 2008, 17:49
  2. vector of vector and computes
    By mickey in forum General Programming
    Replies: 1
    Last Post: 15th May 2008, 12:47
  3. insert in a vector of vector
    By mickey in forum General Programming
    Replies: 3
    Last Post: 6th March 2007, 08:45
  4. vector of vector size
    By mickey in forum General Programming
    Replies: 5
    Last Post: 13th February 2007, 15:59
  5. <vector> and new
    By mickey in forum General Programming
    Replies: 11
    Last Post: 18th May 2006, 15:27

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.