Program is to read the characters from keyboard, C/C++ Programming

Program is to read the characters from keyboard:

Program is to read the characters from keyboard one by one stored in different files as upper constants, lower constants, others.txt

void main()

                  {

   clrscr();

   fstream fin1,fin2,fin3;

   fin1.open("lower.txt",ios::out);

   fin2.open("upper.txt",ios::out);

   fin3.open("others.txt",ios::out);

   char ch;

   cout<<" press enter to quit ";

  while ((ch=getche()) !=(char)13)

                {

                if (islower(ch))

                 fin1<

                else if(isupper(ch))

                 fin2<

                else

                 fin3<

                 }

   }

 

 

Posted Date: 10/19/2012 5:33:59 AM | Location : United States







Related Discussions:- Program is to read the characters from keyboard, Assignment Help, Ask Question on Program is to read the characters from keyboard, Get Answer, Expert's Help, Program is to read the characters from keyboard Discussions

Write discussion on Program is to read the characters from keyboard
Your posts are moderated
Related Questions
Why are all header files not declared in every C program? - Declaring all header files in each program would result in increase in overall file size and load of the program. It

within 2 mins give me answer pllzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

Define External Storage Class - computer programming? When a variable is declared outside a function the storage is permanently assigned to it and its storage class is 'extern'

E x p r e s sion and their types: An expression will be in form of mathematical expression with C++ syntax embedded with it. Expressions are of following types which m

Define the Keywords of c language? C keeps a small set of keywords for its personal use. These keywords can't be used as identifiers in the program. Here is the list of keyword

Explain the Declaration of Multi Dimensional Arrays? In the figure, the range in the first dimension is 3 and in the second dimension is 4. The shaded portion corresponds to th

Example for Register Storage Class - computer programming? main() { register int i; for (i=0; i { ............... ............... } } /* block exit will free the register

Prepare a script for providing Instagram Followers/Likes I need to prepare a panel where my customer able to get Instagram followers or likes automatically. - A panel where I


A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concate program 1 : package test