Java DataBase Connectivity API – (JDBC API)

JDBC is a Java Database Connectivity API that lets you access virtually any tabular data source from a Java application.

In addition to providing connectivity to a wide range of SQL databases, JDBC allows you to access other tabular data sources such as spreadsheets or flat files.

Although JDBC is often thought of as an acronym for Java Database Connectivity, the trademarked API name is actually JDBC.

JDBC defines a low-level API designed to support basic SQL functionality independently of any specific SQL implementation. This means the focus is on executing raw SQL statements and retrieving their results. Continue Reading…

Best C/C++ Compilers and IDEs for Programmers

Best C/Cplus Compilers and IDEs for Programmers

If you’re interested in learning to program in C/C++ you’ll find this list of C/C++ Compilers handy. You’ll need one for The C/C++ Programming tutorials we have on site. Most of these compilers do C++ and C. Just rename the files to have .C for C Programs and .cpp for C++ programs extensions. Here I have made a list of some best and free C/C++ compilers and IDEs for Computer Programmers.

Continue Reading…

Difference Between Class-Based and Prototype-Based Languages

Difference Between Class-Based and Prototype-Based Languages

Wikipedia defines Class-based Programming as:

Class-based programming, or more commonly class-orientation, is a style of object-oriented programming (OOP) in which inheritance is achieved by defining classes of objects, as opposed to the objects themselves (compare prototype-based programming). Continue Reading…

List of development tools for Linux platform – IDEs & Compilers

One of my most recent endeavors was to set up my old linux machine for development. I chose the Debian Squeeze(6.1.5) distro because of its reputation for stability and also its minimalist approach towards installing packages, and both these features were quite welcome. Having said that, the tools listed here can be downloaded and installed on any distro, in case they are not already included in the installation CD/DVD. Based on my development experience with these tools, this list is frequently updated with new information: Continue Reading…

C++ Program to find Age and Days With Date of Birth Given using Class

Concept:
In this C++ Program the problem is to find age and days of birth when Date of Birth and present date is given. So main concept behind it is to find the difference between two given dates, using class structure in C++ Programming Language.
To Find Age in format Year/Month/Day

Year(Final) = Date(PresentYear) – BirthYear.
Month(Final) = Date(PresentMonth) – BirthMonth.
Day(Final) = Date(PresentDay) – BirthDay.

Again another function is to find the total days after birth.
To Find total days after birth

totalDays = (finalYear*365 + finalMonth*30 + finalDay);
/*
* Program to calculate age and days
* Given 
* --- Current date
* --- Your Date of Birth
* Results
* --- Finds out your age in format of Year/Month/Day
* --- Finds out Total Days 
* Note: I have not calculated the days with refrence to Leap Year that occurs in 4 Years gap.
* Author: Luzan Baral
* Twitter: http://twitter.com/luzanb
*/
 
#include<iostream>
#include<cstdlib>
#include<conio.h>
using namespace std;
 
class Find_DOB{
	public:
		int finalYear; // The Year 
		int birthYear; // The Year (Maths) 
		int presentYear; // The Year (Current) 
		int finalMonth; // The Month 
		int birthMonth; // The Month (Maths) 
		int presentMonth; // The Month (Current) 
		int finalDay; // The Day 
		int birthDay; // The Day (Maths) 
		int presentDay; // The Day (Current) 
		long int totalDays; //Stores total days
		//default constructur
		Find_DOB(){
			finalYear=0;
			birthYear=0;
			presentYear=0;
			finalMonth=0;
			birthMonth=0;
			presentMonth=0;
			finalDay=0;
			birthDay=0;
			presentDay=0;
			totalDays=0;
		}
		//fuction to get today's date
		void get_todayDate(){
			cout < < "Please enter the current date. (In Numeral)" << endl; 
			cout << "" << endl; 
			cout << "" << endl; 
			cout << "Enter the current year: ";  			cin >> presentYear; // Enter current year of date and hold in YYY. 
			cout < < "Enter the current month: ";  			cin >> presentMonth; // Enter current month of date and hold in MMM. 
			cout < < "Enter the current day: ";  			cin >> presentDay; // Enter current day of date and hold in DDD. 
			cout < < "" << endl; 
			cout << "" << endl; 
		}
		void get_DOB(){
			// The DOB. 
			cout << "Please enter your DOB." << endl; 
			cout << "Year: "; 
                        cin >> birthYear; // Enter year of birth and hold in YY. 
			cout < < "Month: ";  			
                        cin >> birthMonth; // Enter month of birth and hold in MM. 
			cout < < "Day: ";
  			cin >> birthDay; // Enter day of birth and hold in DD. 			
		}
		void calc_days(){
			finalYear = abs(presentYear - birthYear); // Year(Final) = Date(PresentYear) - BirthYear. 
			finalMonth = abs(presentMonth - birthMonth); // Month(Final) = Date(PresentMonth) - Birth(Month). 
			finalDay = abs(presentDay - birthDay); // Day(Final) = Date(PresentDay) - BirthDay. 
			cout < < "" << endl; 
			cout << "You are " << finalYear << "/" << finalMonth << "/" << finalDay << " years old." << endl; // Result. 
			totalDays = (finalYear*365 + finalMonth*30 + finalDay);
			cout << "Total of "<< totalDays <<" Days."<<endl; 
		}		
};
 
int main() 
{ 
	Find_DOB obj;
	// The Date. 
	cout << "This is a progran to tell how old you are..." << endl; 
 
	obj.get_todayDate();
	obj.get_DOB();
	obj.calc_days();
 
	getch();
	return 0; 
}

 

Visual Studio 2013 New Features in IDE #VS2013updates

Now that Visual Studio 2013 has been released with new features, I finally got a copy of Visual Studio 2013 and took it for a ride this week. Here’s a quick tour of what Visual Studio 2013 has to offer; I focus on basic IDE enhancements, web development, productivity gains, and Windows-specific development.and I have had a little play around with it, I thought I would write about some of my favorite new IDE features. Microsoft has added in some useful features that will really make using the IDE a richer experience. Continue Reading…

How to use HTML5 in Visual Studio 2010

Microsoft won’t let programmers code notepad++ to write codes. HTML 5 is very popular in this web era, but how can developer from Visual Studio 2010 use HTML 5 support in their package when Visual Studio 2010 solely does not support HTML 5. But does that stops programmers, surely not, you can update your Studio for that.

All you will be needing is Visual Studio 2010 and a web browser.

Why do I need Web Browser ?

If you want Visual Studio 2010 to support HTML 5. You need to update your Visual Studio 2010 to Visual Studio 2010 Service Pack 1.

How to update Microsoft Visual Studio 2010 to VS 2010 SP1?

Basically, there are two ways to update Microsoft Visual Studio 2010 to Visual Studio 2010 Service Pack 1:

  • From Micorsoft Website
    1. Go to download center
    2. Download Microsoft Visual Studio 2010 Service Pack 1
  • Open windows update, the system will automatically find vs2010 update file, size around 600MB

Now after you have finished updating your Visual Studio 2010, you can add HTML 5 support, by following below steps.

  1. Open Visual Studio 2010 SP 1.
  2. Go to Tools
  3. Click on Options
  4. Choose HTML
  5. Choose Validation
  6. On target Select HTML 5
  7. Click Ok
How to use HTML5 in Visual Studio 2010

How to use HTML5 in Visual Studio 2010


You can follow us on Twitter, add us to your circle on Google+ or like our Facebook page . We will be providing you with best online tutorial on Programming, Database, Data Structures, Engineering, Case Studies and Computer Fundamentals.

Use of Structures in C Programming ‘struct’

So far I think you have already read our tutorial on ‘Understanding Use of Arrays in C Programming.

Unlike array, a structure is a package of one or usually more variables which are grouped under a single name. Structures are not like arrays: a structure can hold any mixture of different types of data: it can even hold arrays of different types. A structure can be as simple or as complex as the programmer desires. Continue Reading…

Heap Sort – C Source Code and Algorithm

Heap sort is a relatively simple algorithm built upon the heap data structure. A naive implementation requires additional space, but it is possible to do a heap sort in place. Heap sort has guaranteed O(n*log(n))) performance, though the constant factor is typically a bit higher than for other algorithms such as Quick sort. Heap sort is not a stable sort, so the original ordering of equal elements may not be maintained. Continue Reading…