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

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Write a 3-4 page paper (350 words per page) in APA format detailing the development and use of C++ in academia and in industry. Explain the pros and cons of C++ as a programming la

A: 1.      By using const protects you against programming errors which inadvertently alter data. 2.      By using const allows function to procedure const and non-const actu

Define a function in c program: int f1() { static int x=10; return x; } int f2() { int y=5; return y; } extern int z; void f()     {

WAP TO PRINT THE LARGEST NUMBER FROM ANY 10 NUMBERS #include stdio.h> #include conio.h>   void main()   {                    int a[10],i,max;

The following is the formula that can be used to complete that calculation: Monthly Payment = Monthly Interest Rate / (1 - (1 + Monthly Interest Rate) -Payment Interval )) *

compose a C program to solve the equation z2=(p1/Pg)+(v1^2/2g)+z1 p1=100kpa,v1=2m/s z1=3m P=1000kg/m^3 define g=9.81

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Step 1 Define the start of the program    It should be noted that within C all commands should end in a semi-colon. For most of your programs the definition of a program header as