PROGRAM NUMBERS AND DEKLARASIMYA INVERTING PROCEDURE

# include <iostream>
# include <conio.h>

class program {
friend ostream & operator <<(ostream &, & program);
friend istream & operator>> (istream &, & program);

    public:
        program ();
       void callback () {
            x = 0; / / inialisai or giving an initial value at x = 0.
             while (a> 0) {
           x = x * 10 + a% 10;
           if (x == 0) court <<"0";
           a = a/10;
           }
           ;}

   private:
       int a, x;
       };

    program:: program () {
    court <<"\ t \ tSlamet Islan Al Hidayah" <<endl;
    court <<"\ t \ t 10018075" <<endl;
    court <<endl;
    court <<"Program Procedures Turner number" <<endl;
    court <<endl;
    }

    istream & operator>> (istream & ins, programs & mlebu) {
       court <<"Input Data:";
       in>> mlebu.a;
       return in;
       }
    ostream & operator <<(ostream & out, programs & metu) {
       court <<endl;
       court <<"the result of the exchange:";
       out <<metu.x;
        return out;
       }

main () {
z program;
cin>> z;
z.balik ();
court <<z;

getch ();
return 0;}
 Output :

Well that's the program that I can make,,,,,!
If there are less jelass know any mistake, do not hesitate to leave a comment ataun advice. So that I can fix it later terimakasihh over his visit,,
Regards super ..

0 Response to " PROGRAM NUMBERS AND DEKLARASIMYA INVERTING PROCEDURE "