c:
Time Duration: 30 Days
1) Programming by Example in C language
A brief history about C language.
C character set,C tokens(identifiers,keywords,Constants),Structure of C Program
(include files ,main function);Header Files-stdio.h,conio.h;; Use of I/O function
(printf and scanf ),Use of Editor,basic commands of editor,compilation, linking and execution
2)Data Types,variables and Constants:
Concept of Data types; Built in Data types:char,int float and Double;Constants:Integer Constants,
Character Constants,(backslash character constants-/n,/t),Floating point Constants,String Constants,Access Modifier :const;
Variables of Built in data -Type ,Declaration/Initialization of Variables,Assignment statement ;Type modifier:signed,unsigned long.
3)Operators and Expressions:-
Operators :Arithmetic operators(-,+,/,%),Unary operator(-),Increment and Decrement Operators(--,++),
Relational Operator(<,>,<=,>=,!=),Logical Operators(!,&&,||),Conditional Operator:?
true>:;Precedence of Operators;Expressions;Automatic type conversion in Expressions,Type Casting ;C++ shorthands(+=,-=,*=,/=,%=);
4) Flow of control:-
Conditional statement :if-else,Nested if,Switch..Case..default,Nested, switch case break statement(to bee used in switch case only);Loops:while,do while,for and Nested Loops.
5) Structured Data Type Array:-
Declaration/initialization of One dimensional Array ,inputting array elements,Accessing array elements
Manipulation of array elements(sum of elements,product of elements,average of elements,linear search,finding maximum minimum value).
Declaration/initialization of a String,string manipulations(counting vowels/consonants/digits/special characters/case conversion,reversing a string,reversing each word of a string;) String and character related Library Functions:isalnum(), isalpha(), isdigit(), islower(), isupper(), tolower(), toupper(), strcpy(), strcat(), strlen(), strcmp(), strcmpi().
Declaration/initialization of a two dimensional array,inputting array elements,Accessing array elements,manipulation of array elements,(sum of row element,column element,diagonal element,finding minimum maximum values)
6) User Defined functions:
Defining a function,function prototype,invoking/calling a function,passing argument to a function,specifying argument data type,default arguments, Constant argument,call by value,call by reference,returning values from a function,calling function with arrays,scope rule of function and variables,Local and global variables.
7)Structure:-
Need for user defined data type.
Defined a structure,declaring a structure variable,accessing structure elements,passing structure to function,as value and reference argument/parameter,function returning structure,array of structure,as an argument,.a parameter to a function.
8)Pointers:-
Declaration and initialization of pointers:
allocation/deallocation. Operators new,delete;Pointers and Arrays:Array of Pointers,pointer to an array,(1 dimensional),function returning a pointer,reference variable and use of alias;Function call by reference,Pointer to structure,:Dereference operator:-*,-> self referencial structure.
9)Data file handling:-
Need for a data file,types of data files-Text file and Binary file;
basic file operation on text file :Creating /Writing Text into a file,Reading and Manipulation of text,
from an already existing text file(accessing sequentially)
Binary file:Creation of file ,writing data into file Searching for a required data,from file,Appending data to a file,insertion of data in sorted file,deletion of data from a file,modification of data in a file.
Implementation of above mentioned data file handling in C++.
10)Components of C++to be used with file Handling.
Header file:fstream.h,;ifstrem,ofstream,fstream classes.;
Opening a text file in :in,out and app mode.
Using cascading operators for writing text to the file and reading text to a file.;
open(),get(),put(),getline(),and close() functions. Detecting end of file(with or without using eof() function)
opening a binary file in :in out and app modes;
open(),read(),write(),and close function.Detecting end of file(with or without using eof() function);
tellg(),tellp(),seekg(),seekp();
Top