• RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Heading 1 Here:Enter the heading 1 description here.Go to blogger edit html,find these words and replace it with your own description ...
  • Heading 2 Here:Enter the heading 2 description here.Go to blogger edit html,find these words and replace it with your own description ...
  • Heading 3 Here:Enter the heading 3 description here.Go to blogger edit html,find these words and replace it with your own description ...
  • Heading 4 Here:Enter the heading 4 description here.Go to blogger edit html,find these words and replace it with your own description ...
  • Heading 5 Here:Enter the heading 5 description here.Go to blogger edit html,find these words and replace it with your own description ...
  • SLIDE-1-TITLE-HERE

    Welcome to Blogger.Go to Blogger edit html and find these sentences.Now replace these text/sentences with your own descriptions.This theme is convert to Blogger by Premiumbloggertemplates.com.Download this template and more Premium Blogger Templates From PremiumBloggerTemplates.com...

  • SLIDE-2-TITLE-HERE

    Welcome to Blogger.Go to Blogger edit html and find these sentences.Now replace these text/sentences with your own descriptions.This theme is convert to Blogger by Premiumbloggertemplates.com.Download this template and more Premium Blogger Templates From PremiumBloggerTemplates.com...

  • SLIDE-3-TITLE-HERE

    Welcome to Blogger.Go to Blogger edit html and find these sentences.Now replace these text/sentences with your own descriptions.This theme is convert to Blogger by Premiumbloggertemplates.com.Download this template and more Premium Blogger Templates From PremiumBloggerTemplates.com...

  • SLIDE-4-TITLE-HERE

    Welcome to Blogger.Go to Blogger edit html and find these sentences.Now replace these text/sentences with your own descriptions.This theme is convert to Blogger by Premiumbloggertemplates.com.Download this template and more Premium Blogger Templates From PremiumBloggerTemplates.com...

Rabu, 20 April 2011

Menggabungkan Bilangan

Posted by Cipto Tri Raharjo On 23.44 No comments

#include <iostream.h>
#include <conio.h>
#include <string.h>
class gabung{
friend ostream& operator<<(ostream&,gabung&);
friend istream& operator>>(istream&,gabung&);
public:
void kata();
private:
char kata1[10];
char kata2[19];
};
istream&operator>>(istream&in,gabung&x){
cout<<”\nmasukian bilangan 1 :”;
in>>x.kata1;
cout<<”masukan bilangan 2 :”;
in>>x.kata2;
x.kata();
return in;}
ostream&operator<<(ostream& out,gabung&x){
out<<”hailnya :”<<x.kata1<<endl;
return out;}
void gabung::kata(){
strcat(kata1,kata2);
cout<<”kata gabungan : “<<kata1<<endl;}
void main(){
gabung a;
cin>>a;
cout<<a;
getch();}

0 komentar:

Posting Komentar