• (5 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »

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

#16 nanthu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 30-March 07

Post icon  Posted 30 March 2007 - 07:19 AM

hi!
please help me with this assignment how to do it.
i have just started learning the c++, still i dont know how to do this. it you could kindly help me with this it will be very greatfull
thanks.
Plaese find attched the assignment word document.

if anyone could help please let me know.Attached File  Programming_concepts_assignment.doc (29.5K)
Number of downloads: 1232
Thanks
Was This Post Helpful? 0
  • +
  • -

#17 kramed  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 03-October 06

Posted 04 May 2007 - 08:57 PM

Great tutorial. I am finding it very useful and find myself referring to it often. Thanks!
Was This Post Helpful? 0
  • +
  • -

#18 srivarma  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 03-July 07

Posted 03 July 2007 - 08:45 PM

endl is an operater works as new line
; is terminator
where every statement must end with ;
Was This Post Helpful? 0
  • +
  • -

#19 vital  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 28-August 07

Posted 28 August 2007 - 10:59 PM

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 :)


hello everyone. i am new in this forum and a little new in c++.
you have said about endl, but i think that it is only for ending line. i think.......
Was This Post Helpful? 0
  • +
  • -

#20 Bench  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 855
  • View blog
  • Posts: 2,338
  • Joined: 20-August 07

Posted 29 August 2007 - 04:06 AM

View Postvital, on 29 Aug, 2007 - 06:59 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 :)


hello everyone. i am new in this forum and a little new in c++.
you have said about endl, but i think that it is only for ending line. i think.......


endl outputs a newline character and then flushes the output stream. Here's a quote from the dinkumware reference manual

Dinkumware Reference Manual said:

The manipulator calls ostr.put(ostr. widen('\n')), then calls ostr.flush(). It returns ostr.

This post has been edited by Bench: 29 August 2007 - 04:08 AM

Was This Post Helpful? 0
  • +
  • -

#21 theU  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 22-September 07

Posted 23 September 2007 - 09:49 AM

Just out of curiousity ( because I'm new to all this) is "endl" the same as '\n'; ????

Please clarify. Thanx
Was This Post Helpful? 0
  • +
  • -

#22 Bench  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 855
  • View blog
  • Posts: 2,338
  • Joined: 20-August 07

Posted 23 September 2007 - 10:04 AM

View PosttheU, on 23 Sep, 2007 - 05:49 PM, said:

Just out of curiousity ( because I'm new to all this) is "endl" the same as '\n'; ????

Please clarify. Thanx


in C++, cout << endl; is the equivalent of..

  cout << '\n';
  cout.flush();



For your purposes, you probably don't really care about the call to .flush() ... so feel free to use '\n' if you prefer.
Was This Post Helpful? 0
  • +
  • -

#23 hir_sus_jp  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 07-October 07

Posted 10 October 2007 - 05:44 AM

I'm learning many things from this tutorial. Thanks, born2c0de.
Was This Post Helpful? 0
  • +
  • -

#24 hir_sus_jp  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 07-October 07

Posted 26 October 2007 - 02:30 AM

I prefer endl to \n. When a program is working properly, it doesn’t matter which one you use. But when a program crashes, \n might mislead you. If there are any un-flushed data in the buffer when a program crashes, the un-flushed data can’t make it to the screen, or whatever destination. So what you see on the screen is not the actual output the program has written. You don't want to debug the code with the partial output.

This post has been edited by hir_sus_jp: 27 October 2007 - 12:39 AM

Was This Post Helpful? 0
  • +
  • -

#25 tody4me  Icon User is offline

  • Banned
  • member icon

Reputation: 12
  • View blog
  • Posts: 1,398
  • Joined: 12-April 06

Posted 18 January 2008 - 11:12 AM

Very well documented tutorial. Once upon a time I wrote code in C++ and have been wanting to get back to it, but needed an understanding of how to store data properly before I picked it up again. I especially loved the in depth instructions for the Binary Search Tree, as I had only gotten to Linked Lists previously and always wondered exactly how they worked.

This post has been edited by tody4me: 18 January 2008 - 11:12 AM

Was This Post Helpful? 0
  • +
  • -

#26 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Posted 20 January 2008 - 08:53 AM

I'm glad you liked it :)

I'll be writing a sequel soon in which I plan to include more complex data structures (and their operations) as well so be sure to check the Tutorials section for updates.
Was This Post Helpful? 0
  • +
  • -

#27 kamalharbi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 20-February 08

Posted 21 February 2008 - 06:16 AM

Real it's great to find like this site in the world
Really amazing
Thanks for helpfulness
Kamal Harbi
Was This Post Helpful? 0
  • +
  • -

#28 cold-blood  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 10-July 08

Posted 18 July 2008 - 05:09 AM

hi! thank you for your tutorial,.. it's a big help.. but can you help me on my project? It's about banking transaction system.. that keypad 1=open new account, 2=deposits, 3=withdraw, and 4 = close account.. I can make only one account.. but my prof. need 5 accounts.. can you help me.. plzzz! :)

This post has been edited by cold-blood: 18 July 2008 - 05:12 AM

Was This Post Helpful? 0
  • +
  • -

#29 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3101
  • View blog
  • Posts: 19,141
  • Joined: 14-September 07

Posted 18 July 2008 - 08:47 PM

cold-blood please post in the appropriate forum for questions; it will help you get answers faster--also, show code you have done so far :)
Was This Post Helpful? 0
  • +
  • -

#30 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Posted 25 July 2008 - 02:13 AM

I've *finally* removed the entire tutorial from the code tags and formatted it to give it a much cleaner look.
tutorial.readability+=50;

Enjoy!
Was This Post Helpful? 0
  • +
  • -

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »