13,589,661 members

# C / C++ / MFC

 Re: Problem with string conversion Jochen Arndt22-Nov-12 2:52 Jochen Arndt 22-Nov-12 2:52
 How to set the alignment of items of CListCtrl rahul.kulshreshtha19-Nov-12 16:43 rahul.kulshreshtha 19-Nov-12 16:43
 Re: How to set the alignment of items of CListCtrl Richard MacCutchan19-Nov-12 22:50 Richard MacCutchan 19-Nov-12 22:50
 Re: How to set the alignment of items of CListCtrl rahul.kulshreshtha19-Nov-12 23:22 rahul.kulshreshtha 19-Nov-12 23:22
 Re: How to set the alignment of items of CListCtrl Richard MacCutchan20-Nov-12 0:02 Richard MacCutchan 20-Nov-12 0:02
 Re: How to set the alignment of items of CListCtrl rahul.kulshreshtha20-Nov-12 16:30 rahul.kulshreshtha 20-Nov-12 16:30
 Re: How to set the alignment of items of CListCtrl Richard MacCutchan20-Nov-12 21:17 Richard MacCutchan 20-Nov-12 21:17
 Linked Lists and unique_ptr's Tom Moore19-Nov-12 7:29 Tom Moore 19-Nov-12 7:29
 Hi, its been a while since I've used CodeProject. Quick Question. I'm training myself on standard algorithms and trying to create a linked list. In Java it's easy. ```class Node{ public int data; public Node next; public Node(int val){ data= val; next = null;} }``` In the C++ Pre Ox11 you could use raw pointers. ```struct Node{ int data; Node* next; Node(int val):data(val),next(0){} }``` but you had to new up your next node and delete it afterwards. With the new version of C++, you can use unique_ptr. But if I try to use that, I can't seem to get a good node to next. ```struct node{ int data; unique_ptr next; node(int al):data(val),next(nullptr){} } node a(3); node b(4); a.next = b; // Error a.next = move(b); // Error a.next.reset (b); // Error``` Please could you enlighten me, on how I can get this to work. Many Thanks Tom
 Re: Linked Lists and unique_ptr's Eugen Podsypalnikov19-Nov-12 10:50 Eugen Podsypalnikov 19-Nov-12 10:50
 Re: Linked Lists and unique_ptr's Chris Meech19-Nov-12 14:04 Chris Meech 19-Nov-12 14:04
 encrypt and decrypt thandy mitchell19-Nov-12 6:24 thandy mitchell 19-Nov-12 6:24
 Re: encrypt and decrypt Richard MacCutchan19-Nov-12 7:59 Richard MacCutchan 19-Nov-12 7:59
 Re: encrypt and decrypt CPallini19-Nov-12 11:36 CPallini 19-Nov-12 11:36
 access excel data using c++ lakshmamma19-Nov-12 2:05 lakshmamma 19-Nov-12 2:05
 Re: access excel data using c++ Flaviu219-Nov-12 2:14 Flaviu2 19-Nov-12 2:14
 Re: access excel data using c++ CPallini19-Nov-12 2:17 CPallini 19-Nov-12 2:17
 Re: access excel data using c++ Jochen Arndt19-Nov-12 2:26 Jochen Arndt 19-Nov-12 2:26
 Scroll window after zoom Flaviu218-Nov-12 22:11 Flaviu2 18-Nov-12 22:11
 Pre commit hooks for svn Mukul_P18-Nov-12 17:41 Mukul_P 18-Nov-12 17:41
 Re: Pre commit hooks for svn Richard MacCutchan18-Nov-12 21:42 Richard MacCutchan 18-Nov-12 21:42
 Re: Pre commit hooks for svn April Fans22-Dec-12 21:07 April Fans 22-Dec-12 21:07
 C++, RealTime Scheduler in Operating System Kevin Stlip17-Nov-12 16:10 Kevin Stlip 17-Nov-12 16:10
 Re: C++, RealTime Scheduler in Operating System Richard MacCutchan17-Nov-12 21:46 Richard MacCutchan 17-Nov-12 21:46
 porting my device driver 32 bit to windows 7 64 bit navn199116-Nov-12 22:03 navn1991 16-Nov-12 22:03
 Re: porting my device driver 32 bit to windows 7 64 bit jschell17-Nov-12 5:52 jschell 17-Nov-12 5:52
 Last Visit: 31-Dec-99 18:00     Last Update: 18-Jun-18 10:43 Refresh « Prev1...565566567568569570571572573574 Next »