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
C Program to FIND VOWELS AND REMOVE VOWELS void main() {           char s[100],s1[100];           int i,j,k=0;           clrscr();           printf("ENTER ANY S

What if I cannot wrap the local in an artificial block? need help on Artificial Block in c++.

It is standard on functions to provide some indication that the function has succeeded in its operation. Consider the Scanf function:     scanf("%d",&number1);   If the functio

Implement, in rPeANUt, the a Fibonacci function by using the simple recursive approach. The Fibonacci function can be implemented in c as follow: int fib(int x) {   if (x

Step 1 Define the program headers and the variables      #include   #include   #include   #include void main()   {       char prompt;     float a,b,c,d,e;     floa

What are the benefits of using friend classes? - Friend classes are useful when a class wants to hide features from users which are required only by another, tightly coupled cl

I need help to understand and do this assignment ********************************************************* You are to insert the missing code in the C program given for combinatio

Does improper inheritance have a potential to wreck a project? Many projects meet a dead end due to bad inheritance. Hence it certainly has potential to wreck a project. Sma

how to use and what is implicit and explicit constructor

Writing and compiling a program from a given Use Case definition. Follow the Average Temperature in Paradise