đây là code trong sách : http://codepad.org/isaMJJvq
#include <stdio.h>
#include <conio.h>
//khai bao prototype
void time(int &,int &);
//ham doi phut thanh gio:phut
void time(int &ig,int &ip)
{
ig = ip/60;
ip %= 60;
}
void main (void)
{
int igio, iphut;
printf("Nhap vao so phut: ");
time(igio,iphut);
printf("%02d:%02d\n",igio,iphut);
getchar();
}
và lỗi :
Line 18: error: conio.h: No such file or directory
Line 5: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
Line 8: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
In function ‘main’:
Line 15: warning: return type of ‘main’ is not ‘int’
e tự học nên những code trong sách k chạy được e k thể tự giải quyết được . ai đi ngang qua đọc được thì giúp hộ e . e cảm ơn nhiều