Tutorials

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

Submitted by pavel7_7_7 on
In this article you will read about the rules of the Sudoku game and the algorithm, used to solve the Sudoku puzzle. In the next two articles I'll describe the complete step by step guide about how to implement a Sudoku puzzle game using MFC. The goal of the Sudoku game is to fill the 9x9 grid with numbers from 1 to 9 in the next way:
  • Each row contains all numbers from 1 to 9
  • Each column contains all numbers from 1 to 9
  • Each block of 3x3 cells contains all numbers from 1 to 9
Here is an example of the solved Sudoku:

Create Folder using VB.NET

Submitted by donbermoy on
In VB.Net, sometimes we have require to Create New Folder. This Tutorial Shows How to Create a Folder using VB.NET. To achieve that, first of all we need to include the following statement in the program code: Imports System.IO - This line has to precede the whole program code as it is higher in hierarchy for DirectoryInfo.

Reverse a String in VB.NET

Submitted by donbermoy on
In this tutorial, we will create an application on how to Reverse a String in VB.NET. First, Go to Microsoft Visual Studio, go to File Menu, click New Project, and choose Windows Form Application. Now, create two textboxes with the default name of TextBox1 and Textbox2. Textbox1 will be used as our string input and Textbox2 for displaying the reversed string result.

Work with Files in Java: Searching and Replacing Elements of Array

Submitted by pavel7_7_7 on
This article is an example of a typical college assignment. This article describes the opening file processes, and resolves some problems relevant to array usage. Often, students are asked to implement some assignments that are connected with different array algorithms. Another popular task is the reading of data from file. In this article I'll describe an example of assignment, that is connected with files and arrays in Java.

Creating a Simple Java Applet

Submitted by pavel7_7_7 on
In this article you will find information about the creating of simple applet using java.awt. Java applet is a small application created using Java language. The user starts applet from the web-browser and it's executed by the Java Virtual machine. The parameters of the applet are received from the web page and they can be used during the applet execution. We will create an Applet, that takes some information from the menu of choice lists and inputs the result of our choice. The first step to create an applet is to derive our class from Applet class.

How to Read and Write Text Files in VB.NET

Submitted by donbermoy on
Hi! this is my other tutorial in VB.Net in how to read and write a file. In this tutorial, we will learn how to manage data that is stored as a text file. Using text file is an easy way to manage data, although it is not as sophisticated as full fledged database management software such as SQL, Microsoft Access, and Oracle. VB.NET allows the user to create a text file, save the text file as well as read the text file. Reading and writing to a text file in VB.Net required the use of the StreamReader class and the StreamWriter class respectively.

Work with Files in C++

Submitted by pavel7_7_7 on
In this article you'll read about how to work with files in c++. Files allow users to read a huge amount of data directly from the disc without entering the data from keyboard. There are two main types of files : text files and binary files. Text files are files that consist of the sequences of any symbols. This sequence is organized in rows that are separated by the newline character "\n".