class part 1

#include<iostream> using namespace std; class FA {public:/// sử dụng chung void Nhap()// trong class chứa all hàm { cout<<"Anh Chuc Dep Trai:"; } int tong(int a,int b) { int c; c=a+b; return c; } }; void main() { FA x; int a,b; x.Nhap(); cout<<"\nnhap a:";cin>>a; cout<<"\nnhap b:";cin>>b; cout<<x.tong(a,b); cout<<endl; system("pause"); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.