Showing posts with label It Blogs. Show all posts
Showing posts with label It Blogs. Show all posts

Monday, March 4, 2019

Structure of C++ Program

First program is C++

// This is my first program is C++
/* this program will illustrate different components of
a simple program in C++ */

#include <iostream>
using namespace std;
int main()
   {
          cout << "Hello World!";
          return 0;
    }

When the above program is compiled, linked and executed, the following output is displayed on the VDU screen.

Hello World!

Various components of this program are discussed below:

Comments

First three lines of the above program are comments and are ignored by the compiler. Comments are included in a program to make it more readable. If a comment is short and can be accommodated in a single line, then it is started with double slash sequence in the first line of the program. However, if there are multiple lines in a comment, it is enclosed between the two symbols /* and */

#include <iostream>

The line in the above program that start with # symbol are called directives and are instructions to the compiler. The word include with '#' tells the compiler to include the file iostream into the file of the above program. File iostream is a header file needed for input/ output requirements of the program. Therefore, this file has been included at the top of the program. using namespace std; All the elements of the standard C++ library are declared within std. This line is very frequent in C++ programs that use the standard library. 

int main ( )

The word main is a function name. The brackets ( ) with main tells that main ( ) is a function. The word int before main ( ) indicates that integer value is being returned by the function main (). When program is loaded in the memory, the control is handed over to function main ( ) and it is the first function to be executed.

Curly bracket and body of the function main ( )

A C++ program starts with function called main(). The body of the function is enclosed between curly braces. The program statements are written within the brackets. Each statement must end by a semicolon, without which an error message in generated.

cout<<"Hello World!";

This statement prints our "Hello World!" message on the screen. cout understands that anything sent to it via the << operator should be printed on the screen.

return 0;

This is a new type of statement, called a return statement. When a program finishes running, it sends a value to the operating system. This particular return statement returns the value of 0 to the operating system, which means “everything went okay!”.

Printing Multiple Lines of Text with a Single Statement

/* This program illustrates how to print multiple lines of text
with a single statement */

#include <iostream>
using namespace std;
int main()
      {
           cout << "Welcome\nto\nC++";
           return 0;
       }
Output:

Welcome to C++

The characters print exactly as they appear between the double quotes. However, if we type \n, the characters \n are not printed on the screen. The backslash (\) is called an escape character. It indicates that a "special" character is to be output. When a backslash is encountered in a string of characters, the next character is combined with the backslash to form an escape sequence. The escape sequence \n means newline. It causes the cursor to move to the beginning of the next line on the screen.

The following table gives a listing of common escape sequences.

Escape Sequence 
Description

     \n
Newline
     \t
Horizontal tab
     \a
Bell (beep)
     \\
Backslash
     \'
Single quote
     \''
Double quote

Sunday, March 3, 2019

C++ Compiler


Getting Started

          A computer cannot understand our language that we use in our day to day conversations, and likewise, we cannot understand the binary language that the computer uses to do it’s tasks. It is therefore necessary for us to write instructions in some specially defined language like C++ which is like natural language and after converting with the help of compiler the computer can understand it.

C++ Compiler

         A C++ compiler is itself a computer program which’s only job is to convert the C++ program from our form to a form the computer can read and execute. The original C++ program is called the “source code”, and the resulting compiled code produced by the compiler is usually called an “object file”.

          Before compilation the preprocessor performs preliminary operations on C++ source files. Preprocessed form of the source code is sent to compiler.

          After compilation stage object files are combined with predefined libraries by a linker, sometimes called a binder, to produce the final complete file that can be executed by the computer. A library is a collection of pre-compiled “object code” that provides operations that are done repeatedly by many computer programs.

c++ program diagram

Integrated Development Environment


          Above Figure illustrates the process of translating a C++ source file into an executable file. You can perform entire process of invoking the preprocessor, compiler, and linker with a single action by using Integrated Development environment. These environments consist of a text editor, compiler, debugger, and other utilities integrated into a package with a single set of menus. Preprocessing, compiling, linking, and even executing a program is done by selecting a single item from a menu.

Following Figure shows a screen from the Microsoft Visual C++ IDE.


visual c++ express

Read Creating and running a program using Microsoft Visual C++ Express Edition

The best way to start learning a programming language is by writing a program. In next blog, we'll discuss a program that displays message on monitor.




Saturday, March 2, 2019

Index of C++ Tutorial

C++ Tutorial

This tutorial is for school students who want to learn to program and don't have any knowledge about the programming.
In this course you will learn: semantics of the cpp, what is compiler / IDE, variables, input / output streams, operators conditions like if / else / switch , arrays / multi-dimensional arrays loops - for / while / do-while, functions, pointers,object oriented programming

INDEX

Unit 01. Basics of C++
Unit 02. Flow of Control
  • Conditional Structure
  • Looping Structure
Unit 03. Functions
  • Library Functions
  • User Defined Functions

Unit 04. Compound Data Types
  • Array - Single Dimension
  • Array - Multi Dimension
  • String - Character Array
  • Structures and other Data type
  • Pointers

Unit 05. Object Oriented Programming
  • OOP Concepts
  • Introducing Classes
  • Constructor and Destructor
  • Case Study : Time Class
  • Separate Header and Implementation Files
  • Static Members
  • Friend Functions and Friend Classes
  • Operator Overloading
  • Inheritance - I
  • Inheritance - II
  • Polymorphism and Virtual Function                

Unit 06. File Handling
  • File Handling Basics
  • Text File and Binary File

Wednesday, April 4, 2018

Microsoft Office Excel 2007 Step by Step Tutorial in PDF file with Direct Download link

Learn Microsoft Excel 2007 Step By Step 

Direct Download Tutorial PDF Files in One Single Click.


Microsoft Excel 2007
Short Notes About Microsof Excel 2007
 
Microsoft Excel is a spreadsheet application program offered in the Microsoft office software package. This program allows you to perform calculations and use graphics tools, pivot tables and a macro programming language called VBA. In addition, Excel can also be used to create charts and graphs.


COLUMN
 The vertical lines in a sheet are known as a column. There is a total column in a sheet is 16384. The default width of a column is 8.43 point.

ROW

The horizontal lines in a sheet are known as a row. There are total 148576 rows in a column. The height of a row by default is 15 point.


WORKSHEET
The sheet in a workbook from in combination with rows and columns to perform differently. Arithmetical and logical calculations are known as worksheet as it is electronic while opening excel 3 worksheet open by default.

Workbook.
While opening MS excel the application screen that appears with some tools and 3 sheets by default to perform different calculations. CELL
intersaction of row and column is called the cell. 

Cell = Column*Row

Grid Lines.
The line which separate rows and columns are called grid lines. It is a nonprintable area by default.

GOAL SEEK.
Goal seek is an option through which we can obtain any target value by changing other data.

Sub Total.
subtotal is an option through which we can sort out the value depending on the condition.

AUTO FILL 
Autofill is an option which helps the user to automatically fill the above data underneath.

FILTER 
Filter is an option through which we can sort out the value depending on criteria given by the user.

RIBBON 
he ribbon, a panel that houses the command buttons and icons, organizes commands as a set of tabs, each grouping relevant commands. Each application has a different set of tabs which expose the functionality that application offers.

AUTOSUM 
The autosum button allows you to quickly insert the sum function.It is located in two places on the ribbon. On the right end of the "HOME" tab in the editing section, and on the far left of the "FORMULA" tab. Select the cell where you want to put the total and then click on the autosum button. Excel will insert the sum function and take a guess as to what cell range you'd like to sum by listing the first and last cell in the sum, separated by a colon.Check to make sure the cell range is correct, then press enter to accept the function.

AUTO CALCULATE 
Excel will automatically perform the calculation on a set of cells that you select and display the results on the status bar in the bottom right of your window. The default calculation is the sum function, but you can change the calculation by right-clicking or control+clicking(MAC) on the auto calculate the result.

PIVOT TABLE 
A pivot table is a great reporting tool that sorts and sums independently of the original data layout in the spreadsheet. It is an interactive representation of a data table. One can rearrange the data and choose what to display and what to hide.The best way to find out what a pivot table can do is to create one.

CHARTS
A full discussion of excel"s many charting options is beyond the scope of this handout. However, it is fairly straightforward to create a simple chart using the chart wizard. Just highlight the data you wish to base your chart on and click on the Insert tab and you will see the available charts there. When you click on a type of chart, you will be prompted to select a subtype of the chart. Once you have done so, the chart will appear on your spreadsheet. Three additional tabs will also appear on your ribbon, through which you can alter your chart by adding titles, changing data points and many other options.

NAME MANAGER 
You can use name manager to name a group of cells, and therefore only type one name when you want to perform a calculation with that group. This can be useful when you are performing many different calculations on the same set of numbers, especially when you want to perform these calculations across multiple sheets. To do this, select the cells you would like to name and name them in the "name box" next to the formula bar. You can then perform any function on these cells by just typing the name you gave the cells instead of referencing the cell numbers. You can edit the names you gave the cells and change which cells they refer to by clicking on "name manager" on the "formula" tab.

FUNCTIONS 
excel has created hundreds of functions that
prevent you from having to write out complex or repetitive formula yourself. Functions can be inserted by clicking on the function symbol to the left of the formula bar. Functions can also be inserted by clicking on the "insert function" button on the "formula" tab or jumping to any of the subcategories of functions on that tab. Yet another way to insert a function is to type the equals sign into a cell and begin to type the name of formula. A drop-down menu will appear, from which you can select the formula.

FORMULAS 
Select the cell that the formula result is going to be displayed in. The formula can be constructed in the formula bar or typed directly into the cell in which you want the formula to begin. You must always put the = sign before a formula, as this is how excel recognizes what you are entering into a formula. Autofill helps you fill in formula quickly once you have constructed one in a cell. In order to autofill, select the cell with the formula.

Cell References
there are two different types of cell references

relative cell references
Cell references that change when the formula is autofilled into different cells.

absolute cell references
 If you don't want a certain part of your cell reference to change when you copy the formula to a new cell, you need to put a $ in front of the row and /or column part of the reference.



Microsoft Office Access 2007 step by step Tutorial
For Downloading the files Please Click on "Direct Download Link."

Office Excel 2007 Step by Step  Direct Download.

End of Post

Microsoft Office Access 2007 Step by Step Tutorial in PDF Direct Donwload Link

What is Microsoft Access

office access 2007
This page hopes to explain to you, What is Microsoft Access in simple terms

Microsoft Access has been around for some time, yet people often still ask me what is Microsoft Access and what does it do? Microsoft Access is a part of the Microsoft Office Suite. It does not come with all versions of Microsoft Office, so if you specifically want Microsoft Access make sure the office suite you are purchasing has it. 

Microsoft Access has the look and feel of other Microsoft Office products, including its layout and navigational aspects. That is where the similarity ends. Microsoft® Access is a database and, more specifically, a relational database. This will be explained in more detail later.
Access has an .mdb extension by default, whereas Microsoft® Word has the .doc extension. Although this has changed in Access 2007 where the extension is now an accdb extension. Early versions of Access cannot read accdb extensions but Microsoft Access 2007 can read and change earlier versions of Access. The above is a bried overview of what is Microsoft Access. Now lets look at it in a bit more detail.


What is Microsoft Access made up of ?
The Microsoft® Access Database is made up of 7 major components:
  • Tables.
  • Relationship.
  • Queries.
  •  Forms.
  • Reports.
  • Macros.
  • Modules.
The following gives a quick overview of each component.

Tables.
The tables are the backbone and the storage container of the data entered into the database. If the tables are not set up correctly, with the correct relationships, then the database may be slow, give you the wrong results or not react the way you expect. So, take a bit of time when setting up your tables.

Queries, forms, etc. are usually based on a table.
The tables that contain data look a bit like a table in Microsoft® Word or a Microsoft® Excel Spreadsheet, when opened. They have columns and rows as does a table in Microsoft® Word and an Excel worksheet. Each of the columns will have a field name at the top and each of the rows will represent a record.

Relationships
Relationships are the bonds you build between the tables. They join tables that have associated elements. To do this there is a field in each table, which is linked to each other, and have the same values. 

Are the means of manipulating the data to display in a form or a report. Queries can sort, calculate, group, filter, join tables, update data, delete data, etc. Their power is immense. The Microsoft® Access database query language is SQL (Structured Query Language). The need to know SQL is not required in the early stages of learning Access. Microsoft® Access writes the SQL for you, after you tell it what you want, in the Design view of the queries window.

Forms
Forms are the primary interface through which the users of the database enter data. The person who enters the data will interact with forms regularly. The programmer can set the forms to show only the data required. By using queries, properties, macros and VBA (Visual Basic for Applications), the ability to add, edit and delete data can also be set. Forms can be set up and developed to reflect the use they will be required for.

Reports
Reports are the results of the manipulation of the data you have entered into the database. Unlike forms, they cannot be edited. Reports are intended to be used to output data to another device or application, i.e. printer, fax, Microsoft® Word or Microsoft® Excel.

Macros
Macros are an automatic way for Access to carry out a series of actions for the database. Access gives you a selection of actions that are carried out in the order you enter. Macros can open forms; run queries, change values of a field, run other Macros, etc. the list is almost endless.

Modules
Modules are the basis of the programming language that supports Microsoft® Access, The module window is where you can write and store Visual Basic for Applications (VBA). Advanced users of Microsoft® Access tend to use VBA instead of Macros. If you would like to learn VBA, I have a simple step by step lessons.

All of the above components are persistent; this means that changes are saved when you move from one component to another, not when the database is closed, as in a Microsoft® Word Document.
I hope the above give you a bit of an idea of what is Microsoft Access and what it includes.

Limitations.
The total size of a database file (.MDB) is limited only by the storage capacity of your PC (Microsoft® quote the maximum database size of 2 Gigabyte (2000 Megabytes)). These figures are for pre 2007 versions of Microsoft Access.

Very few realistic limitations exist, though here are some parameters

Maximun table size = 1 GB
No. if fields in a record or table = 255
No. of indexes in a table or a record = 32
No. of fields in an index = 10
Maximum size of a form or report = 22"
Characters in a memo field = 64,000
MDB size = 2 GB
Max Integer = 2,147,483,648
Concurrent Users = 255
No. of characters in object names = 64

Microsoft Office Access 2007 step by step Tutorial
For Downloading the files Please Click on "Direct Download Link."

Office Access 2007 Step by Step  Direct Download.

End of Post

Thursday, March 29, 2018

Free Download c++ tutorial in single click.