How would you like to MASTER graphic design by next week?
Click here to find out how
Featured Photoshop templates - professional ready to use designs for your next project
View all templates
We hope that you will enjoy our C++ tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own C++ tutorial to our site. Thank you !
Getter and Setter Methods
A common question among newer Object-Oriented Programmers is "Why should I use and prefer to use getter and setter methods for my objects variables when I can simply set them as public?" For example, let's consider the trivial object below:
A function is a way of encapsulating code for reuse. The proper use of functions can make modifying your code much easier.
Functions With a Variable Number of Arguments
Ever notice that some functions, like printf and scanf, can take any number of arguments? Ever want to learn how you can do the same? Well, now's your chance.
Hello World Application(For Beginners)
Hello World Application(For Beginners). This step is important to do,
Guess The Number VS. Computer Opponent.
OK Iím going to show you how to make a little game where you and the computer take turns guessing at a random number between 1-100. Iíll do my best to explain everything. :)
Getting Started with Classes
For newer C++ programmers, classes can be a confusing topic, but they're actually quite simple to understand.
How to create an analog clock
This method is completely based in the SetPixel() function. First the circle is drawn then the clock hands.
Intro to datatypes
This is just a simple introductory tutorial I made to help someone out and I posted it on my website. Its not exactly professional, but some people should be able to learn from it.
here i have discussed virtual functions using easy to understand examples.
Input Text (for beginners)
First we gonna further with the finaly source code of my previous tutorial
Implementing a Fuzzy Boolean
As promise in Getting Fuzzy Part 1, here is an implementation of a Fuzzy Boolean.
Implementing a Fuzzy Set
Before reading this tutorial, be sure to read Getting Fuzzy: Part 1 and Implementing a Fuzzy Boolean.
In this tutorial we wil see the use of inline functions.
mysql connection example
Mysql is a database, and to gain access to the data within C++ you will need to be able to "talk" to the database via queries (just like on the mysql command line interface e.g. select * from tablename), the connection process is very similar to the command line interface you will need to supply connection details as in hostname (localhost normally), username, password, database to use and also there are other details that you can pass e.g port number more information can be gained from the MYSQL API pages
Tutorial: C++ Functions
"1. Brief overview of functions: Functions are segments of code. Their syntax is:"
Total Tutorials in Category: 651