• (5 Pages)
  • +
  • « First
  • 2
  • 3
  • 4
  • 5

Data Structures In C++ Tutorial Writing Data Structures using OOP in C++ Rate Topic: ****- 20 Votes

#46 itengineer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 23-April 09

Posted 11 May 2009 - 08:23 AM

hi everyone out there.........
i am new to pointers and dont know exactly how to removw and avoid MEMORY LEAKS in a program........
please let me know if anybody has a link to any such tutorial.......
Was This Post Helpful? 0
  • +
  • -

#47 bob3333  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 25-April 09

Posted 31 May 2009 - 11:00 AM

It's
 iter++
not
i++

Was This Post Helpful? 0
  • +
  • -

#48 yudhistre  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 03-August 09

Posted 03 August 2009 - 07:31 AM

Thanks for the time taken to do this, Highly Appreciated

Keep up the good work
Was This Post Helpful? 0
  • +
  • -

#49 TonyTheBest  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 20-September 09

Posted 24 September 2009 - 01:36 PM

Im Sorry... Im newb to coding... don't know what ur doing :( Im SOrry
Was This Post Helpful? 0
  • +
  • -

#50 ceaser  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 25-September 09

Posted 25 September 2009 - 06:57 AM

else
	 {
				for(int j=0;j<=al;j++)
				{
						if((j+1)<=al)
						{
								tmp=t[j+1];
								t[j]=tmp;
						}
						else
						{
								al--;

						if(al==-1)
								dl=-1;
						else
								dl=0;
						}
				}
	 }
  }

i didnt understand this piece of code j+1<=al what does this represent ....
can u plz explain the whole thing?
Was This Post Helpful? 0
  • +
  • -

#51 wowelf  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 24-October 09

Posted 25 October 2009 - 04:19 AM

:) cooler than cool
Was This Post Helpful? 0
  • +
  • -

#52 wowelf  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 24-October 09

Posted 29 October 2009 - 04:27 AM

hard to change my mind from FIFO TO FILO. :^: :) :D
Was This Post Helpful? 0
  • +
  • -

#53 wowelf  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 24-October 09

Posted 29 October 2009 - 04:39 AM

View PostByteWyse, on 6 Jan, 2007 - 10:38 AM, said:

View Postborn2c0de, on 6 Jan, 2007 - 05:32 AM, said:

I had no idea that endl also flushes buffers.
Are you sure?
Thanks for the info :)


Yep.
See: http://www.cplusplus...ators/endl.html

Thx .
Was This Post Helpful? 0
  • +
  • -

#54 Delta_Echo  Icon User is offline

  • D.I.C Addict

Reputation: 5
  • View blog
  • Posts: 722
  • Joined: 24-October 07

Posted 23 December 2009 - 01:50 PM

One of the best tutorials I have read. Better done even than some on cplusplus.com.
Someone give this guy a medal.... I would have thanked you but i don't see a "This post was helpful!" link?
Was This Post Helpful? 0
  • +
  • -

#55 tehreem  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 15-January 10

Posted 18 August 2010 - 07:57 PM

Gr8 tutorial!thnx!
Was This Post Helpful? 0
  • +
  • -

#56 Guest_Deepak*


Reputation:

Posted 19 August 2010 - 12:19 AM

hi this was a greal help to me as i washad a big tree phobia b4 reading ur post..thanx a lot. Will you please write a post on BST GRAPHS.
Was This Post Helpful? 0

#57 owkowk  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 23-September 10

Posted 25 September 2010 - 12:01 AM

thx! it's helpful to me! :bananaman:
Was This Post Helpful? 0
  • +
  • -

#58 sam lolo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 24-September 10

Posted 27 September 2010 - 03:51 AM

the tutorial was extremely good . Now i'm taking data structure course
in my college and it really helped me understanding the course.
Thanks :bananaman:
Was This Post Helpful? 0
  • +
  • -

#59 vividexstance  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 630
  • View blog
  • Posts: 2,107
  • Joined: 31-December 10

Posted 06 January 2011 - 02:18 PM

In the class tree, the functions:
void findparent(int n,int &found,leaf* &parent);
void findfordel(int n,int &found,leaf *&parent,leaf* &x);



Are the arguments:
leaf *&parent,leaf* &x
even legal? Can someone tell me what type they actually are? They look like they are pointers-to-references to me, and I didn't think it was correct so I just deleted the '&'.
Was This Post Helpful? 0
  • +
  • -

#60 legadema  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 25
  • Joined: 15-December 10

Posted 17 January 2011 - 12:27 PM

Hi i liked the nested structs it's the right thing to do, i never used it.
just a question in the first linked list source code u didn't write the copy constructor and operator=, why?? For the sake of simplicity?? i think it wont work well without it.
for example this produces an error:

linklist ll, chain;

ll.append(1);
ll.append(2);
ll.append(3);

chain= ll;
chain.del(2);
ll.display();


Was This Post Helpful? 0
  • +
  • -

  • (5 Pages)
  • +
  • « First
  • 2
  • 3
  • 4
  • 5