31 August 2014

C - IDE

Open source software for c and c++ compilation

Code::Blocks is a free C, C++ and Fortran IDE built to meet the most demanding needs of its users. It is designed to be very extensible and fully configurable.
Finally, an IDE with all the features you need, having a consistent look, feel and operation across platforms.
Built around a plugin framework, Code::Blocks can be extended with plugins. Any kind of functionality can be added by installing/coding a plugin. For instance, compiling and debugging functionality is already provided by plugins!
It can be downloaded from http://www.codeblocks.org/downloads
All you have to do is click on the link , it will redirect you to the downloads website where you can download it . just run the setup file and proceed the installation steps.
Start programming..
#EnjoyLearning 

28 August 2014

Installation for C and C++

How to Install Turbo C++ Version 3.0, Compile and Run C  and C++ Programs


In this article, you will get answers to the following questions:
  • How to Install Turbo C++ Version 3.0?
  • How to create a new C Program using Turbo C++ Version 3.0?
  • How to run a C Program using Turbo C++ Version 3.0?
How to Install Turbo C++ Version 3.0?
Installing Turbo C++ Version 3.0 is very easy and effortless. Follow below mentioned easy steps to install Turbo C:

  • Extract TC.rar folder in your C Drive (“C:\”) 
Congratulation… You are done with installation of Turbo C++ Version 3.0.
How to create a new C Program using Turbo C++ Version 3.0?
  • Open the bin folder (“C:\TC\BIN”)
  • Click on “TC” icon as shown below 
  • TC Icon
  • You will see the following screen:
  • Tourbo C Screen
  • Now, Click on File->New. Please find image below for your reference
  • Create new file
  • Write your C Program. Press F2 (or File->Save) to save your program. On pressing F2, pop window will open (as shown below). You need to specify the name of the program.
    Note:
    For C Program, use .C as extension.
    For C++ Program, use .CPP as extension.
  • Save C Program
How to run a C Program using Turbo C++ Version 3.0?
  • Installing Tourbo C is very simple and effortless. Similarly, compiling and running C Program is very simple and effortless.
    Please make a note that, we can compile and run C Programs without saving it.
  • To compile a C Program you can either press Alt+F9 or Compile->Compile. After you compile your C Program you will see the following screen.
  • Compile C Program
  • To run a C Program you can either press Ctrl+F9 or Run->Run. After you run your C Program you will see the output screen as shown below.
  • Run C Program
These are the steps you need to follow to install, create and a run a C Program successfully.

Installation of Java

These are the steps you need to follow to install java 

1. Where to Download Java

Latest version can be downloaded at JAVA


2. Java Installation 

Like any other software run the (.exe) file and the installation starts.


3. Setting up the Environment Variables

Steps to set JDK Path and Classpath in Windows 7 and Windows 8

Before setting JDK Path, let's first verify Type javac in command prompt in windows 8 and see output, if you get javac is not recognized as an internal or external command, means JDK Path is not set.

1. Confirm that PATH is not set for Java by typing javac in command prompt.
2. Open Control Panel and Select System and Security
3. Select System
4. Select Advanced System Settings
5. Select Environment Variables
6. Select and Edit Path Environment variable
7. Verify Java path by typing javac in command prompt


Step 1 : Open Control Panel in Windows 8
How to set PATH in Windows 8 operating System




















Step 2 : Select System
How to set Classpath in Windows 8

Step 3 : Select Advanced System Settings in Windows 8
How to set path in Windows 7

Step 4 : Select Environment Variables
How to set Classpath in Windows 7 operating system


Step 5 : Select and Edit Path Environment variable in Windows 8
set path environment variable in windows 8 operating system

Step 6 : Verify Java path by typing javac in command prompt
just type javac command, this time you will see different output which shows various details of java command rather than getting earlier error.You can follow similar process to set Classpath in windows 8 as well.

Getting Started

Hello World Programs in Various languages 

Java :

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello, World");
    }

}



*********************************************************************************************************

C : 

//C hello world example
#include <stdio.h>
 
int main() {

  printf("Hello world\n");
  return 0;
}

****************************************************************************

Python :

Print "Hello World"

***************************************************************************

Php :

<?php
  Print "Hello World! ";
?>

***************************************************************************

C++ :
#include<iostream.h>
int main() {
std::cout << "Hello World!" << std::end1;
return 0;
}

***************************************************************************

Now When you have the programs ready , whats the next step ? -- just Compile and run it . For this you need softwares of that particular programming
languages to be installed in your system. 

To make it convinient for you there is other way you can compile and run without installing any softwares . All you need is an Internet Connection .

If you do have , then goto http://www.compileonline.com/ 
Select the language you want to code on and write and execute your program . your task is done .

But If you want to install the softwares into your system , then go through the next post that is how to install and run programs .



@EnjoyLearning



26 August 2014

What Is Programming

What is Programming !!

             Programming is nothing but taking a problem and executing it into a program.

Now , Coming to Programming Languages there are hundreds of programming languages in use today . you can find them at List of Programming Languages . But  you get a doubt which ones are commonly used .



The top 10 Programming languages that are used are :

1. Java 
Java uses a compiler, and is an object-oriented language released in 1995 by Sun Microsystems. Java is the number one programming language today for many reasons. First, it is a well-organized language with a strong library of reusable software components. Second, programs written in Java can run on many different computer architectures and operating systems because of the use of the JVM ( Java virtual machine ). Sometimes this is referred to as code portability or even WORA ( write once, run anywhere ). Third, Java is the language most likely to be taught in university computer science classes. A lot of computer science theory books written in the past decade use Java in the code examples. So learning Java syntax is a good idea even if you never actually code in it. 
Java Strengths: WORA, popularity
Java Weaknesses: Slower than natively compiled languages

2. C
C is a compiled, procedural language developed in 1972 by Dennis Ritchie for use in the UNIX operating system. Although designed to be portable in nature, C programs must be specifically compiled for computers with different architectures and operating systems. This helps make them lightning fast. Although C is a relatively old language, it is still widely used for system programming, writing other programming languages, and in embedded systems. 
Strengths: Speed
Weaknesses: Memory management can be difficult to master


3. C++
C++ is a compiled, multi-paradigm language written as an update to C in 1979 by Bjarne Stroustrup. It attempts to be backwards-compatible with C and brings object-orientation, which helps in larger projects. Despite it's age, C++ is used to create a wide array of applications from games to office suites.
Strengths: Speed
Weaknesses: C++ is older and considered more clumsy than newer object-oriented languages such as Java or C#.
4. PHP
PHP uses a run-time interpreter, and is a multi-paradigm language originally developed in 1996 by Rasmus Lerdorfto create dynamic web pages. At first it was not even a real programming language, but over time it eventually grew into a fully featured object-oriented programming language. Although PHP has been much criticized in the past for being a bit sloppy and insecure, it's been pretty good since version 5 came out in 2004. It's hard to argue with success. Today, PHP is the most popular language used to write web applications. Even English 4 IT, the program you are currently using, is written in PHP ;)
Strengths: Web programming, good documentation
Weaknesses: Inconsistent syntax, too many ways to do the same thing, a history of bizarre security decisions.
5. VB ( or Visual Basic ) Visual Basic is an interpreted, multi-paradigm language developed by Microsoft Corporation for the Windows platform. It has been evolving over the years and is seen as a direct descendant of Microsoft's old BASIC from the 1970's. Visual Basic is a good language for scripting Windows applications that do not need the power and speed of C#.
Strengths: None.
Weaknesses: Only runs in Windows 
6. Python
Python is an interpreted, multi-paradigm programming language written by Guido van Rossum in the late 1980's and intended for general programming purposes. Python was not named after the snake but actually after the Monty Python comedy group. Python is characterized by its use of indentation for readability, and its encouragement forelegant code by making developers do similar things in similar ways. Python is used as the main programming choice of both Google and Ubuntu.
Strengths: Excellent readability and overall philosophy
Weaknesses: None
7 C# 
C# is a compiled, object-oriented language written by Microsoft. It is an open specification, but rarely seen on any non-Windows platform. C# was conceived as Microsoft's premium language in its .NET Framework. It is very similar to Java in both syntax and nature.
Strengths: Powerful and pretty fast
Weaknesses: Only really suitable for Windows
8. JavaScript
JavaScript is an interpreted, multi-paradigm language. A very strange one too. Despite it's name, it has nothing whatsoever to do with Java. You will rarely, if ever, see this language outside of a web browser. It is basically a language meant to script behaviors in web browsers and used for things such as web form validation and AJAX style web applications. The trend in the future seems to be building more and more complex applications in JavaScript, even simple online games and office suites. The success of this trend will depend upon advancements in the speed of a browser's JavaScript interpreter. If you want to be correct, the real name of this programming language is ECMAscript, although almost nobody actually calls it this.
Strengths: it's the only reliable way to do client-side web programming
Weaknesses: it's only really useful in a web browser
9. Perl
Perl is an interpreted, multi-paradigm language written byLarry Wall in 1986. It is characterized by a somewhat disorganized and scary-looking syntax which only makes sense to other PERL programmers ;) However, a lot of veteran programmers love it and use if every day as their primary language. 10 years ago, Perl was more popular than it is today. What happened? A lot of newer programmers and even old Perl programmers (such as myself) have switched to other languages such as PHP, Python, and Ruby. Perl is perhaps still the best language for text processing and system administration scripting. I personally do not recommend it however as a primary programming language.
Strengths: text processing and system administration
Weaknesses: strange syntax, and perhaps too many ways to do the same thing
10. Ruby
Ruby is an interpreted, object-oriented language written byYukihiro Matsumoto around 1995. It is one of the most object-oriented languages in the world. Everything is an object in Ruby, even letters and numbers can have method calls. It's a great language to learn if you love objects. The only negative is that it's love of object-orientation makes it a bit slow, even for an interpreted language.
Strengths: Perhaps the world's most object-oriented language
Weaknesses: its superior object model comes at a price... namely speed