Important alert: (current site time 7/15/2013 4:43:50 PM EDT)
 

article

Award winning C++ Tutorial SEQUEL

Email
Submitted on: 2/24/2004 12:00:02 AM
By: Michael Skelton 
Level: Beginner
User Rating: By 14 Users
Compatibility: C, C++ (general), Microsoft Visual C++, Borland C++, UNIX C++
Views: 16209
 
     The sequel to my award winning C++ tutorial, this tutorial is clearer and a lot more indepth. It contains numourous code examples and links to further resources. Please vote for me to help encourage my efforts :) skelm (skelm AT hush DAWT com) AIM: skelm32 MSN: skelmirc@hotmail.com

This article has accompanying files
 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
				The sequel to my award winning C++ tutorial, this tutorial is clearer and a lot more indepth. It contains numourous code examples and links to further resources. Not to mention that it is continuously growing, what more could you want?
The tutorial currently covers the following topics indepth:
* The history of C++
* Functions - from the basics upwards
* Loops - Basic to advanced use
* Using command line arguments in your programs
* File manipulation
* Explanation of Object Orientated Programming
* Basic String manipulation
* Advanced String manipulation
As I mentioned above, this tutorial is continuously growing and will be updated on a bi-monthly schedule, so please vote for me to help encourage my efforts :)
skelm (skelm AT hush DAWT com)
AIM: skelm32 MSN: skelmirc@hotmail.com

winzip iconDownload article

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

2/24/2004 6:31:59 AMMichael Skelton

Feel free to comment.. Also if you would like me to cover a particular topic then make sure that you mention it.

Support is much apreachiated. ty.
(If this comment was disrespectful, please report it.)

 
2/24/2004 11:35:40 AMSeth McDowell

This "tutorial" suffers from the same thing as your original. It isn't standards-compliant in the fact that:

You use deprecated #include syntax, the standard say that for instance, should be and thus places items like 'cout' in the STANDARD NAMESPACE, std::

Also, you use non-standard functions, such as 'kbhit()'

One more point to notice, there is a typographical error in one of your for() loops, the closing bracket is accidentally a _ instead.

Another thing, you count on overflow to terminate one of your loops.
...
ch=32;
while(ch)
{
...
ch++;
}

Not a good idea, as overflow isn't defined to be handled in a certain manner. ;-)
(If this comment was disrespectful, please report it.)

 
2/24/2004 5:06:58 PMOpcodeVoid

ok seth it is true about the include syntax, but most compilers(the one he is using) supports include plus iostream.h is very different from iostream, also kbhit(), whats wrong with that function, someone has to use it, its a standard function for console applications w-t-f
(If this comment was disrespectful, please report it.)

 
2/24/2004 8:40:49 PMMichael Skelton

hmm, main reason that I havn't used in both my tutorials is simple, i'm trying to teach people the basics without throwing them more information then they need. If it really upsets people that much then i'll change it.
(If this comment was disrespectful, please report it.)

 
2/24/2004 9:34:08 PMSeth McDowell

kbhit() is NOT STANDARD, it is typically found to be prototyped in 'conio.h' if the compiler has it...
(If this comment was disrespectful, please report it.)

 
2/24/2004 10:47:07 PMSeth McDowell

About "teach people the basics without throwing them more information than they need," teaching them incorrect information might be more a hindrance than "throwing too much at them." You could simply do something like this:
#include
using namespace std; // open up global namespace, this will be covered in another installment to the tutorial series ?
(If this comment was disrespectful, please report it.)

 
2/24/2004 10:48:32 PMSeth McDowell

Sorry for the lack of formatting in the posts, PSC seems to be getting picky about whitespace and such in the postings. There should be a few newlines in there, such as after the #include before the 'using namespace std;'
(If this comment was disrespectful, please report it.)

 
2/24/2004 10:57:04 PMMichael Skelton

Seth, Due to public opinion all of the tutorials will be updated before the next update :) Thanks for the input.
(If this comment was disrespectful, please report it.)

 
2/25/2004 8:51:05 AMOpcodeVoid

using namespace std; is not needed for iostream , and g++ compilers don't even need it included before you can use cout, and Seth, i guess he can't tell us about MessageBox , or Wins Api since there not standard functions
(If this comment was disrespectful, please report it.)

 
2/25/2004 10:32:03 AM

I just read your source code, and I like them all!If you has been kind enough to share more with me, please sent email to me. Thanks
(If this comment was disrespectful, please report it.)

 
2/25/2004 1:45:07 PMSeth McDowell

OpcodeVoid this isn't a flame war, don't make it into one. You're correct, there is a big difference between and --- the C++ standard recognizes the latter form, not the prior. Another point to be made, his tutorial focuses on C++, never did he mention about discussing the Windows API or any other. Regarding g++, it is perhaps THE most standards-compliant compiler in existence for both C(gcc) and C++(g++).
(If this comment was disrespectful, please report it.)

 
2/25/2004 3:51:16 PMDan Anderson

When I saw the title of this article, I said, "ugh, another c++ tutorial." But this one is put together pretty well. I was surprised to see , but that should not take away from the quality and time put into this article. I got 5 on it.
(If this comment was disrespectful, please report it.)

 
2/26/2004 10:32:21 AMOpcodeVoid

seth , no one is flamming, i just corrected you, no need to point fingers,
(If this comment was disrespectful, please report it.)

 
2/26/2004 2:55:15 PMSeth McDowell

OpcodeVoid how can you correct someone if they are not incorrect? =) Michael Skelton, I do commend your efforts.
(If this comment was disrespectful, please report it.)

 
2/29/2004 8:26:59 AMSeth McDowell

Michael if you'd like more tips or someone to proof-read future tutorials, I'd be happy to help!
(If this comment was disrespectful, please report it.)

 
8/19/2006 9:30:38 PMabel belhu

hey i wanna say that what great tutorials i like it but we need to move on asssembly coz the world will control the av so join our virus world thank u....linubel
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.