One thing is missing that, I know the number of elements in one line. They are just one record, with words and numbers, but seperated by unknown number of spaces.
Maybe better idea instead of using split?
One thing is missing that, I know the number of elements in one line. They are just one record, with words and numbers, but seperated by unknown number of spaces.
Maybe better idea instead of using split?
i) if you insist on storing pointers in that list, you need to fix line 18 to
(or just store on_screw by value)Qt Code:
one_screw *a_screw=new one_scree;To copy to clipboard, switch view to plain text mode
ii) I would add a check in line 20 to make sure that the list actually contains 7 elements.
HTH
Now my problem is solved!stupid mistake, but happy.
Bookmarks