Number Of Variables

  • Uploaded by: yetendra singh chauhan
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Number Of Variables as PDF for free.

More details

  • Words: 193
  • Pages: 4
#include<stdio.h> #include #include #include class student { private: char ch; int counter,counterf,counterc; public: student() { counter=0; counterf=0; counterc=0; } void copy_int() { fstream obj1; obj1.open("number.cpp",ios::in); obj1.get(ch); while(!obj1.eof()) { if(ch=='"') { obj1.get(ch); while(ch!='"') { obj1.get(ch); } } if(ch=='i') { obj1.get(ch); if(ch=='n') { obj1.get(ch); if(ch=='t') { obj1.get(ch); if(ch==' ') { obj1.get(ch); while(ch!=';') { obj1.get(ch); if(ch==',') counter++; else continue; } counter++; } } } } obj1.get(ch); }

cout<<"THE NUMBER OF INTEGER VARIABLES"<
}

}

}

} } obj1.get(ch); } cout<<"THE NUMBER OF FLOAT VARIABLES"<
fstream obj1; obj1.open("number.cpp",ios::in); obj1.get(ch); while(!obj1.eof()) { if(ch=='"') { obj1.get(ch); while(ch!='"') { obj1.get(ch); } } if(ch=='c') { obj1.get(ch); if(ch=='h') { obj1.get(ch); if(ch=='a') { obj1.get(ch); if(ch='r') { obj1.get(ch); if(ch==' ') { obj1.get(ch); while(ch!=';') { obj1.get(ch); if(ch==',') counterc++; else continue; } counterc++; } } } } } obj1.get(ch); } cout<<"number of char variables"<
}; void main() { student object; object.copy_int(); object.copy_float(); object.copy_char(); }

Related Documents

Number Of Variables
June 2020 4
Variables
May 2020 17
Variables
November 2019 45
Variables
June 2020 24
Variables
June 2020 24
Variables
April 2020 34

More Documents from ""