C Programming Tutorial

 
 
 

Advanced Programming

Array

One dimensional array Two dimensional Array Two dimensional array pointers Array of pointers Print array Print Array - for loop Print array in reverse Print address array - for loop Multidimentional array - function Print address array - pointers Print reverse string of array Print array ascii value-without atoi Character array - upper case Multiplication table - 2D array Passing array to function Max or greatest value in array Merge sorted array Array of structure Array of pointers to string Array within a structure

String Programs

Copy string Substring of string String concatination Vowel in string Swap char in string Palindrome string Rotate string Bubble sort of strings Sorting of words Encode decode string Compress string

File Programs

Read write in 2 files Add,edit,delete,search in file Add,search using structure Append in file Merge file Count word,line,char in file Count record - struct fread() example fwrite() example fopen() example fclose() example fscanf() and fprintf() fseek() example Error handling in file op Find odd,even num Odd even numbers in file Max, min age in class Random numbers file Preprocessor in 2 files Encode decode in file

Bios Programming

biosequip( ) - sys confi biosdisk( ) - partition tbl info Pc type-bios data area File allocation table Telephone directory

TSR Programming

Interchange letters Interchange letters on screen Unload TSR on key press-keyboard Unload TSR - timer interrupt Activate, deactivate TSR Print alphabet from printer Repeat key press Keep caps on Make ctrl, alt key pressed

Interrupt Programming

Restart computer Conventional memory of sys Save IVT in file Print string-interrupt 21h Read char-interrupt 21h Read char with echo-interrupt 21h Delete file-interrupt 21h Delete directory-interrupt 21h Get set system date Show system configuration Search, delete file in dir Display multiple file in dir

Mouse Programming

Text mode mouse handling Graphics mode mouse handling Double click of mouse
 
 
#include<iostream.h>
#include<fstream.h>
#include<conio.h>
#include<process.h>
#include<string.h>

void main()
{
    fstream fin,fout;
    char ch;
    int flag = 1;
    clrscr();
    fin.open(\"data.txt\",ios :: out | ios :: in);
    fout.open(\"data1.txt\",ios :: out | ios :: in);
    fin.seekg(0);
    if(fin==NULL)
       cout<<\"Unable to open file\";
    while(fin)
    {
        fin.get(ch);
        if(ch == \' \')
        {
             flag = 0;
        }
        else
        {
            if(flag == 0)
            {
                fout.put(\' \');
                cout<< \' \';
                flag = 1;
            }
            fout.put(ch);
            cout<<ch;
        }
    }
}

    Related Post:
  1. PROGRAM TO CONVERT OCTAL TO DECIMAL USING FLOAT VALUES

  2. Program to print pyramid of small letter and capital letter abcd

  3. Program to do sum of numbers from 1 to 10, by dividing the job into two processes using Shared Memory

  4. Compute sum of those integers that are evenly divisible by 5. Use the conditional operator ( ? : ).

  5. Program to repeat every Key Press event three times

  6. Program that takes a string from user and prints the total number of characters, words and lines present in the string.

  7. WRITE A PROGRAM ENTERED THROUGH THE KEYBOARD FOR KILO METERS AND METERS

  8. Doubly circular link list or Circular doubly link list

  9. Example to display multi dimentional array values using functions

  10. Program to multiply two polynomials maintained as linked lists

  11. Program to add numbers using function

  12. Write a function to print following : e.g. space paces acesp cespa espac

  13. PROGRAM THAT WILL PRINT YOUR MAILING ADDRESS IN THE FOLLOWING FORM: FIRSTLINE:- NAME, SECOND LINE:-DOOR NO. STREET, THIRD LINE:-PIN CODE

  14. Program to find the roots of an equation ax2 + bx + c = 0

  15. Program to find total vowels in the string

  16. Program to do Sum of numbers from 1 to 10, by dividing the job into two processes(parent and one child)

  17. Program to evaluate fibonacci series and checking whether or not it is fibonacci number

  18. Selection sort

  19. Program to overcome the forward dependency using block scheduling using the most equitable distribution of work

  20. PROGRAM FOR ADD 2 ARRAY ELEMENTS AND STORE IN 3rd ARRAY USING LOOP SPLITING

 
 
Didn't find what you were looking for? Find more on Program of reading data from one text file and writing in new text file