C Algorithms Library

This article is about a collection of common Computer Science algorithms which may be used in C projects. The C Programming Language has a much smaller Standard Library as compared to other more modern programming languages such as Java or Python. The library provides...

Ternary Operator in C

In C Programming language, ternary operator allows executing different code depending on the value of a condition, and the result of the expression is the returned value of the executed code. The main advantage of using ternary operator is to reduce the number of line...

Why Learn C as first programming language?

There are hundreds of programming languages used in the professional industry and university/college academics. One needs to be familiar and able to program with at least few programming languages to be successful.

Add time using structures in C++

This is a C++ implementation of adding time using structures. Write a program having a structure named Time which has three integer data items i.e. hour, minute and second. The task is to add the variables of the Time data type though a function void AddTime(Time...

The C++ Standard Library: A Tutorial and Reference

The C++ Standard Library provides lots of built-in functionality in the form of the Standard Template Library (STL). The STL was created as the first library of generic algorithms and data structures for C++, with four ideas in mind.

Common Text Transformation Library

Common Text Transformation Library, CTTL for short, is a set of C++ classes and functions to understand and modify text data. The library implementation is based on STL classes and algorithms. The library provides components for creating lexical analyzers making...

50 C/C++ source code websites

It’s well known that C/C++ languages are the most dominant programming languages around. As I mentioned in the previous post "Top 10 best applications written in C/C++" that most of the big software, operating systems, games and other scientific tools...

Reading Files

This is a small C language program that can read a text file. The program is given file name as command parameter and it reads the file line by line. The program will prints out number of characters and words in each line. The program will also prints out the number...

Java Program to show Stack Implementation

This is a simple Java program to demonstrate Stack data structure implementation. An object of type IntStack is a stack of real numbers, with the standard stack operations push(int N), pop(), and isEmpty(). A makeEmpty() operation is also provided to remove all items...

ASP Program to validate email address

This is a simple ASP Program to validate email address. The IsValidEmail() function checks for a valid email and returns true if the email address is a valid email otherwise it returns false if the email address isn’t proper syntax. The code is well commented...

C Program to calculate Factorial of a Number

This C program calculates the the factorial of an integer number entered by the user. The function uses for loop to calculate the factorial and returns the number. Program terminates if a non integer number is entered. This C language program uses for loop in just a...

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

When static HTML pages no longer cut it, you need to step up to dynamic, database-driven sites that represent the future of the Web. In PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide, the author of best-selling guides to both the database program (MySQL)...

JavaScript Program to show Clock Type

This is a really neat little script that can display the current time in “Military Time” or “12 Hour Time” with the push of a button. Give it a try, it’s neat! JavaScript /******************************************************* * MYCPLUS...

JavaScript Program to show Date and Time Stamp

This is a simple JavaScript Program to show Date and Time Stamp. With this script, you can have the date and time the page was loaded ‘stamped’ to the page. This would make a wonderful header or footer for any web page. JavaScript...

Java program to show Browser Information

This script does a great job of displaying information about your web browser including version, your computer’s platform, if Java is enabled, how many pages you’ve visited, and screen resolution. Take a look, it’s pretty cool. JavaScript...