Loading

Tutorials

  • Submitted by: 
    Introduction: This tutorial is on how to delete data through HTML/PHP from a MySQLi table. Listing: This tutorial is carrying on from my previous two tutorials in which I taught you how to insert and list data to/from a MySQL(i) database and table. You can check those tutorials out here; Inserting Data: http://www.sourcecodester.com/tutorials/php/7751/how-insert-data-mysqli-database-through-php...
  • Submitted by: 
    While the last Quick Prime Number Test was done at a basic level, today we are going to advance and used much more from what can be done in C++. The declarations will now be the following: #include <iostream> #define N 1<<20 #define M 1<<17 typedef unsigned char uchar ; using namespace std ; uchar isPrime [ M ] ; uchar masks [ 8 ] = { 1 , 1 << 1 , 1 << 2 , 1 <...
  • Submitted by: 
    Introduction: This tutorial is on how to list data from a MySQL table. HTML: Before we begin, we are going to create some basic HTML code to correctly format our information we will be listing later. For this, we are going to first create the basic HTML layout... < html > < head > < / head > < body > < / body > < / html > Next we are going to create a div tag...
  • Submitted by: 
    With prime numbers, we always get a headache. We will see 2 tutorials about quick prime number testing, this one at a basic level, the next one at an advanced level. The idea of our test is the following: We create an array of bool values, to represent numbers like this: 0 - FALSE 1 - FALSE 2 - TRUE 3 - TRUE 4 - FALSE 5 - TRUE 6 - FALSE 7 - TRUE 8 - FALSE 9 - FALSE 10 - FALSE 11 - TRUE And so...
  • Submitted by: 
    Introduction: This tutorial will be on allowing users to input data in to an HTML form, and then upload that data to a MySQL database through PHP. HTML: First we need our HTML form. This example will just be for a user to enter their username and email address, we will not do any validation or username checking (to assure no duplicate usernames within our website) as this is not the purpose of...
  • Submitted by: 
    We'll see how you can factorize a natural number, using vector and pair from the C++ STL! First, you need the following declarations: #include <iostream> #include <vector> #include <utility> using namespace std ; vector < pair < int , int > > factors ; int n ; The pairs will contain: - first element is the DIVISOR - second element is the EXPONENT Having these settled...
  • Submitted by: 
    The next project will demonstrate advantages of C++, such as: - using typedef - using the #define directive - using simple, short source code to handle apparently large tasks - easy to read code, if you develop your simple programming style The task we are going to accomplish is a simple and efficient student database. Although we have put some amounts (limitations), these can be changed very...
  • Submitted by: 
    Today, we will see a real and simple C++ class for complex numbers. We will implement: 1) Addition (+) 2) Subtraction (-) 3) Multiplication (*) 4) Division (/) The class header, called MyComplexNumber.h will be declared like this: #ifndef MYCOMPLEXNUMBER_H #define MYCOMPLEXNUMBER_H #include <string> using namespace std ; class MyComplexNumber { double real ; double imaginary ;...
  • Submitted by: 
    Introduction: This tutorial is on how to create and use methods in Java. What's a Method: A method is similar to what you may call a function in other languages. Well, actually, it's exactly the same. A function, or a method, is a script which can be called from other scripts in order to run some code, and return a value. The only difference between a function and a method, is that methods are...
  • Submitted by: 
    Introduction: This tutorial is on how to create a stub in Visual Basic .NET. Builder: This is a follow on tutorial from my previous tutorial on how to create a builder in Visual Basic .NET which allows a user to input custom settings to their liking in to an application (the builder) which will then put those settings via the controls (textbox and checkbox in that example) in to the generated...

Pages