C/C++ Tutorial

C++ Tutorial: Animate Your Controls

Submitted by Bright777 on
   Hi. It is Bright777 and today we are going to play a little with animation in Visual C++. Also we will learn new control, called Picture Box Control and will use the old one – Timer Control. The program will be very simple and interesting. So if you are ready let’s begin. Intro    Picture Box control is used to display pictures in your application. It can be added to your program like others – just drag it on your form and then select picture in the properties.

C++ Tutorial: Monitoring System Time C++/CLI

Submitted by Bright777 on
   Hi. It is Bright777 and today we are going to do a program to monitor system time. In my program I will use SYSTEMTIME structure and Timer Control from visual C++. All work I have done in Microsoft Visual Studio 2012. Preparation    First of all, you need to create a new project of Windows Forms Application Type. After that you should place controls like in the image below or something else. For showing system time I use standard Label component. Also you need to add two buttons to your form and a Timer Control.

C++ Tutorial : Exceptions in C++/CLI

Submitted by Bright777 on
   Hi :) It’s Bright777 and today I want to show you a mechanism of catching exceptions in C++. First of all you need to know that is the exception how it can be caused. Exception is the action that can’t be completed due to the errors. For example, if you divide some number and zero, you will have an exception.    C++ can help you to catch exceptions.

C++ Tutorial: Using of BackgroundWorker Component in C++/CLI

Submitted by Bright777 on
Intro     Hi. It is Brigh777 and today I will show you how to use such component as backgroundworker in your C++ application. First of all, I tell you why we need, such component, as backgroundworker. Backgroundworker is a really good thing then you want to run some background processes in your application. The standard application does all calculations, commands and other things in one thread. It causes a lot of problems, such as a long time of work, the main window of your program can hangs , while you program will do calculations.

C++ Tutorial № 2 : Variables. Types. Boolean type.

Submitted by Bright777 on
   Hi everyone. It is Bright77 and today we are going to talk about variables: what is variable, how we should declare it and how to operate with them.    First of all we need to give a definition of term “variable”. You can say that variable it is thing that should change. It is quite right, but… So, in C++ you can imagine variable like a special container to store the information we need in the current program in the current time. Variables can store different information: from integer values to sentences and texts.

C++ tutorial №1: First program on C++

Submitted by Bright777 on
   Hi guys. Today I am going to meet you with C++ and we will write a short and simple program. So let's start from basic information about C++.    C++ is one of the most popular programming languages and is implemented on a wide variety of hardware and OS platforms. C++ is an object-oriented language. It was created by Bjarne Stroustrup in 1983 as a next step after C.

Genetic Algorithm: Solving the Function Optimization Problem using Java

Submitted by pavel7_7_7 on
In this article you will find a description of basic steps of the genetic Algorithm and an example of function's optimization in Java. There is a variety of problems that can not be solved with a simple algorithms. This problems needs a lot of time and resources to find a solution. Often we don't have a to find an exact solution : we can find a solution that is enough good for the goal. An example of such a kind of algorithm is Genetic Algorithm. Genetic algorithm is inspired by the process of the evolution in nature.

Microsoft Foundation Classes: creating a Sudoku game. Part 2.

Submitted by pavel7_7_7 on
It's the second part of the article about creating a Sudoku game using MFC. In this part you will read about how to create GUI for this game. The MFC applications are closely connected to the document-view architecture. When you create a project two classes are created: document class and view class. The document class contains the data used in your application.