™—:.·¤°-:¦:-» †Diễn đàn Tin DBT† «-:¦:-°¤·.:—™
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
™—:.·¤°-:¦:-» †Diễn đàn Tin DBT† «-:¦:-°¤·.:—™

™—:.·¤°-:¦:-» †Diễn đàn Tin DBT† «-:¦:-°¤·.:—™
 
Trang ChínhTrang Chính  Tìm kiếmTìm kiếm  Latest imagesLatest images  Đăng kýĐăng ký  Đăng Nhập  
Game nhỏ mới ra lò!
Trắc nghiệm CSDL
Logo lớp mình cho những ai cần
ve tam giac
Nhac vui:Vọng cổ Geisha
Ong xa number one
Tình huống sư phạm
bài thực hành đồ hoạ máy tính
Hỏi vấn đề diver card màn hình trong Win 7
GUN
Half Life 2 - Episode 2
coa ai choi game trên trinh duyet web game xay duong danh nhau vui lem
Kiểm tra khả năng nghe tiếng Anh (listening quiz)
Học tiếng Anh qua nghe cho mọi trình độ
TÀI LIỆU CƠ SỞ DỮ LIỆU
Dragonball Mugen Edition 2008
Hitman 4: Blood Money - Đồng tiền xương máu
Tom Clancy's Splinter Cell - Conviction
Một số phim HD dùng cho đt hay máy mp4 (640x380)
Phần mềm học nghe tiếng Anh cực nhiều luôn




















 Ngoc Toan (106)
 osmnt (95)
 vietmono (68)
 duytung (47)
 langtu_ (46)
 superman (32)
 lethibichthao (28)
 kawai08 (26)
 tuyen155 (24)
 natalia (21)

input 4 integers and output values of them by 8 waysXem chủ đề cũ hơn Xem chủ đề mới hơn Go down
Fri 09 Oct 2009, 10:15 pm
input 4 integers and output values of them by 8 ways Bgavatar_06
input 4 integers and output values of them by 8 ways Bgavatar_01input 4 integers and output values of them by 8 ways Bgavatar_02_newsinput 4 integers and output values of them by 8 ways Bgavatar_03
input 4 integers and output values of them by 8 ways Bgavatar_04_newavatarinput 4 integers and output values of them by 8 ways Bgavatar_06_news
input 4 integers and output values of them by 8 ways Bgavatar_07input 4 integers and output values of them by 8 ways Bgavatar_08_newsinput 4 integers and output values of them by 8 ways Bgavatar_09
vanquaninformatics
BINH NHI
BINH NHI
-Sinh nhật : 06/07/1989

-Đến từ : binh thuan province
-Sở thích : nothings special
-Điểm tích cực : 18
-Cảm ơn : 1
input 4 integers and output values of them by 8 ways Vide

Bài gửiTiêu đề: input 4 integers and output values of them by 8 ways

Nguồn : http://sptinbt.forum-viet.net/t30-topic
Tiêu Đề : input 4 integers and output values of them by 8 ways

Nếu thấy bài viết này hay thì xin click vào nút [Cảm ơn] bên dưới để thay cho lời cảm ơn nhé

--------------------------------------------------
các bạn cho ý kiến đóng góp cho bài hay thêm nha,có gì không hiểu cứ để lại reply mình sẽ có response cho các bạn:

way one :

//CACH1 - LAM BANG CLASS:

#include
using namespace std;
class input_output
{
private:
int a[4];
public:
void input()
{
cout<<"input 4 integers you want:"< for(int i=0 ; i<4 ; i++)
{
cout<<"input a["< cin>>a[i];
}
}
void output()
{
cout<<"4 integers you have inputted : "< for(int i=0 ; i<4 ; i++)
{
cout<<"a["< }
}
};
void main()
{
input_output a;
a.input();
a.output();
}


way two:

//CACH 2- LAM BANG DO...WHILE

#include
#include
using namespace std;
void main()
{
int i=0,a[4];
cout<<"input value:"< do
{
cout<<"a["< cin>>a[i];
i++;
}while(i<4);
cout<<"4 integers you have inputted : "< for(int j=0 ; j<4 ; j++)
{
cout<< }
system("pause");
}


way three:

//CACH 3 - LAM BANG WHILE

#include
#include
using namespace std;
void main()
{
int i=0,j=0,a[4];
cout<<"input 4 integers you want:"< while(i<4)
{
cout<<"a["< cin>>a[i];
i++;
}
cout<<"4 values of integer you have inputted :"< while(j<4)
{
cout<< j++;
}
}


way four:


//CACH4 - CACH LAM BANG FOR
#include
#include
using namespace std;
void main()
{
int a[4];
cout<<"input 4 integers you want :"< for(int i=0 ; i<4 ; i++)
{
cout<<"a["< cin>>a[i];
}
cout<<"4 integers you have inputted :";
for(int j=0; j<4 ; j++)
{
cout<< }
}


way five:


//CACH 5 - CAU TRUC:

#include
#include
using namespace std;

struct input_output
{
int a[4];
};
//definition <<:
ostream& operator <<(ostream &os ,input_output &n)
{
for(int i=0 ; i<4 ;i++)
{
os<< }
return os;
}
//definition >>:
istream& operator >>(istream &is ,input_output &n)
{
for(int i=0 ; i<4 ; i++)
{
cout<<"a["< is>>n.a[i];
}
return is;
}
//main function:
void main()
{
input_output n;
cout<<"input 4 integers you want:"< cin>>n;
cout<<"4 values of integer you have inputted :"< cout<}

way six:

//BAI6 - HAM;
#include
#include
using namespace std;
void input(int a[],int size)
{
for(int i=0 ; i {
cout<<"a["< cin>>a[i];
}
cout<}
void output(int a[],int size)
{
for(int i=0 ; i cout<<}
void main()
{
int a[4],size = 4;
cout<<"input 4 integers you want:"< input(a,size);
cout<<"4 values of integer you have inputted:"< output(a,size);
}


way seven:


#include
#include
using namespace std;
void nput(int *f)
{
for(int i=0 ; i<4 ; i++)
{
cout<<"a["< cin>>*(f+i);
}
}
void utput(int *g)
{
for(int i=0 ; i<4 ; i++)
cout<<<*(g+i);
}
void main()
{
int a[4];
cout<<"input 4 integers you want:"< nput(&a[4]);
cout<<"4 values of integer you have inputted:"< utput(&a[4]);
}


way eight:

#include
using namespace std;
void input(char *f,int a[],int size1)
{
int i;
FILE *fp;
fp = fopen(f,"r");
for(i= 0 ; i fscanf(fp,"%d",&a[i]);
fclose(fp);
}
void output(char *f,int b[],int size2)
{
int i;
FILE *fp;
fp = fopen(f,"w");
for(i=0 ; i fprintf(fp,"%d",b[i]);
fclose(fp);
}
void main()
{
const int n=4;
int a[n];//THAY KIỂU CỦA A[N] THÀNH CHAR ĐỂ THẤY ĐƯỢC VẤN ĐỀ MỚI:
char f[9]="inpu.txt";
char g[10]="outpu.txt";
input(f,a,n);
output(g,a,n);
}

--------------------------------------------------


Copy đường link gửi cho bạn bè !

Sat 10 Oct 2009, 12:58 pm
input 4 integers and output values of them by 8 ways Bgavatar_06
input 4 integers and output values of them by 8 ways Bgavatar_01input 4 integers and output values of them by 8 ways Bgavatar_02_newsinput 4 integers and output values of them by 8 ways Bgavatar_03
input 4 integers and output values of them by 8 ways Bgavatar_04_newNgoc Toaninput 4 integers and output values of them by 8 ways Bgavatar_06_news
input 4 integers and output values of them by 8 ways Bgavatar_07input 4 integers and output values of them by 8 ways Bgavatar_08_newsinput 4 integers and output values of them by 8 ways Bgavatar_09
Ngoc Toan
Thống Sói
Thống Sói
-Sinh nhật : 24/05/1985

-Đến từ : Bình Thuận
-Sở thích : phá phách
-Điểm tích cực : 1231
-Cảm ơn : 3
input 4 integers and output values of them by 8 ways Vide

Bài gửiTiêu đề: Re: input 4 integers and output values of them by 8 ways
http://ngoctoan.tk

Nguồn : http://sptinbt.forum-viet.net/t30-topic
Tiêu Đề : input 4 integers and output values of them by 8 ways

Nếu thấy bài viết này hay thì xin click vào nút [Cảm ơn] bên dưới để thay cho lời cảm ơn nhé

--------------------------------------------------
Thanhks. Còn mấy bài còn lại cậu úp cho bọn tớ xem luôn nhé bởi vì tớ làm rồi mà không chạy nhất là bài khai báo lớp sinhvien, lớp HCN

--------------------------------------------------


Copy đường link gửi cho bạn bè !

Sat 10 Oct 2009, 4:35 pm
input 4 integers and output values of them by 8 ways Bgavatar_06
input 4 integers and output values of them by 8 ways Bgavatar_01input 4 integers and output values of them by 8 ways Bgavatar_02_newsinput 4 integers and output values of them by 8 ways Bgavatar_03
input 4 integers and output values of them by 8 ways Bgavatar_04_newavatarinput 4 integers and output values of them by 8 ways Bgavatar_06_news
input 4 integers and output values of them by 8 ways Bgavatar_07input 4 integers and output values of them by 8 ways Bgavatar_08_newsinput 4 integers and output values of them by 8 ways Bgavatar_09
vanquaninformatics
BINH NHI
BINH NHI
-Sinh nhật : 06/07/1989

-Đến từ : binh thuan province
-Sở thích : nothings special
-Điểm tích cực : 18
-Cảm ơn : 1
input 4 integers and output values of them by 8 ways Vide

Bài gửiTiêu đề: Re: input 4 integers and output values of them by 8 ways

Nguồn : http://sptinbt.forum-viet.net/t30-topic
Tiêu Đề : input 4 integers and output values of them by 8 ways

Nếu thấy bài viết này hay thì xin click vào nút [Cảm ơn] bên dưới để thay cho lời cảm ơn nhé

--------------------------------------------------
yêu cầu của bác admin,mình sẽ đáp ứng vào những ngày tới,vì mình cần phải làm số việc,nhưng sẽ là không trễ,còn way eight ở trên nếu các bạn copy nguyên như vậy vào visual c++ thì nó sẽ báo lỗi các bạn nên tạo hai files notepad trong thư mục của chương trình là inpu.txt và outpu.txt rồi trước khi chay chương trình các bạn nhập 4 integers vào inpu.txt sau đó save lại rồi cho chạy,sau đó mở outpu.txt ra sẽ thấy result .

--------------------------------------------------


Copy đường link gửi cho bạn bè !

input 4 integers and output values of them by 8 ways Bgavatar_06
input 4 integers and output values of them by 8 ways Bgavatar_01input 4 integers and output values of them by 8 ways Bgavatar_02_newsinput 4 integers and output values of them by 8 ways Bgavatar_03
input 4 integers and output values of them by 8 ways Bgavatar_04_newinput 4 integers and output values of them by 8 ways Bgavatar_06_news
input 4 integers and output values of them by 8 ways Bgavatar_07input 4 integers and output values of them by 8 ways Bgavatar_08_newsinput 4 integers and output values of them by 8 ways Bgavatar_09
Sponsored content

input 4 integers and output values of them by 8 ways Vide

Bài gửiTiêu đề: Re: input 4 integers and output values of them by 8 ways

Nguồn : http://sptinbt.forum-viet.net/t30-topic
Tiêu Đề : input 4 integers and output values of them by 8 ways

Nếu thấy bài viết này hay thì xin click vào nút [Cảm ơn] bên dưới để thay cho lời cảm ơn nhé

--------------------------------------------------

--------------------------------------------------


Copy đường link gửi cho bạn bè !

input 4 integers and output values of them by 8 ways

Xem chủ đề cũ hơn Xem chủ đề mới hơn Về Đầu Trang
Trang 1 trong tổng số 1 trang
* Viết tiếng Việt có dấu, là tôn trọng người đọc.
* Chia sẻ bài sưu tầm có ghi rõ nguồn, là tôn trọng người viết.
* Thực hiện những điều trên, là tôn trọng chính mình.
-Nếu chèn smilies có vấn đề thì bấm A/a trên phải khung viết bài
Permissions in this forum:Bạn không có quyền trả lời bài viết
™—:.·¤°-:¦:-» †Diễn đàn Tin DBT† «-:¦:-°¤·.:—™ :: CLB TIN HỌC :: -‘๑’-C++/Csharp-‘๑’--
input 4 integers and output values of them by 8 ways Footer11
Đang tải...

http://www.sptinbt.forum-viet.net