Pages

Showing posts with label Learn Programming. Show all posts
Showing posts with label Learn Programming. Show all posts

Fundamentals of Java Swing

JAVA SWING - Tutorial 1


     This tutorial will help you to understand basics of Java Swing. Mainly we use java swing to create GUI(Graphically User Interface) Applications. You can easily create your application using popular IDE's like Net Beans, Eclipse.etc. But in this tutorial i am going to use Text Editor to coding and cmd to compile my program. So, lets start...

      In this tutorial we are going to develop small login box using java swing.

    so, before start coding our application we need to import "javax.swing" library to our program. 

        import javax.swing.*

     Here is definitions of some keywords we frequently use in Java Swing,

  JFrame : Use this to create instance of JFrame. Simply this represent window of our application.
  JPanel  : This is same as <div> tag in HTML. Inside this, we can create Buttons, Text Fields, Forms.etc

How to create class in C++

Class In C++


     Today i am going to explain you how to create class using c++ programming language. First of all, what is the meaning of Class? why we need classes? Class is a user defined type or data structure declare with keyword class that has DATA and FUNCTIONS(Methods). Class is a kind of structure. We can develop new data types using classes.

Files In C++

 Files

     Hello reader, today my tutorial is about Files in C++. We use Files in C++ to add values to progamme to outer source.

     Imagine we have outer file called "data.txt" and it has two value 10 and 20. We need add this value to our c++ programme.

A Valuable Hobby

     I think the best way to find out about something is to try to do it to the max. A lot of people take up a hobby or sport and then find an excuse not to carry on with it. Once I start something, I won't stop until I'm as good at it as I'll ever be.

     Actually i am very fond of about computer stuffs. If there aren't any lectures in my university, Most of the time i spend with my computer. I like learning new things in every single day...

Batch Programming Lesson 4

 Redirect the output of one command to other file


     To redirect the output of one command to other file, the ‘>’ and ‘<’ command is used. For example the below command is used to print the text “hello redirection” to a notepad file named “first.txt”.

Pointer with Array in C++

Pointer with Array


     It is most likely that you would not understand this chapter until you go through the chapter related C++ Pointers. 

     So assuming you have bit understanding on pointers in C++, let us start: An array name is a constant pointer to the first element of the array. Therefore, in the declaration: 

 double balance[50];

Math Operations in C++

Math Operations

     Those who know about c++, today i am going to explain simple tutorial about Math Operations in c++.

     C++ has a rich set of mathematical operations, which can be performed on various numbers. Following table lists down some useful built-in mathematical functions available in C++. 

Batch Programming Lesson 3

Batch Operators


     Similar to other programming languages, batch program do support various operators for performing operations like arithmetic and logical operations, bitwise AND, OR, NOT, shifting and redirection operation and separators and grouping operators. Before all these going on if you not yet see my 1st and 2nd tutorial go and see them first to understand what is batch progamming.

How to create Batch Programme - LESSON 2


     Hello Everyone today I am going to teach you Modes in Batch Programme. If you not yet read my 1st tutorial, visit and read it first.

     There are two different modes that are supported by DOS (Disk Operating System), they were, 

  • Interactive Mode
  • Batch (silence) Mode

C++ Ncurses Tutorials - Lesson 1

        Basics of Ncurses in C++ Progmming (Lesson 1)


Those who dosen't know about Ncurses, I want to said  you first, Ncurses is not that kind of hard thing to learn and also, learning Ncurses Is pretty fun!

First we need to include HEADER FILE of Ncurses.

#include "ncurses.h"

How to create a Batch Program (lesson 1)


Batch programs can be written using any of the text editors such as notepad, wordpad and so on, but notepad is the most often used text editor in such cases. Like any other programing languages, lets start our first program with the ‘Hello World’ program.

1. Open up a notepad and type the following.

               @echo off 
         Echo Hello World 
        pause