30/09/2018, 23:12

Previous declaration of 'int htmlEnd'

Hien tai em dang code tren c-free 5 cai trinh bien dich nay chi dung duoc cho C thoi ( co 1 so lenh ben c++ no khong chay duoc) theo ly thuyet thi em thay code cua em dung T_T. Cac pro cho em hoi em dang bi loi gi a.

#include “html.h”
#include “SinhVien.h”
#include <stdio.h>

void htmlBegin(FILE* fpText, char* strtitle, char* strstyle) {
fprintf(fpText, “ %s %s

Danh sach diem cua cac hoc sinh

”,“utf-8”, strtitle, strstyle, “text-align: center;”);
}void htmlTable(FILE* fpText, SV a[100], int n)
{
fprintf(fpText, “ ”,“width:100%”);
fprintf(fpText, “ ”);
fprintf(fpText, “”);
SapXep(a,n);
for(int i = 0; i < n; i++)
{
fprintf(fpText, “ ”);
fprintf(fpText, “”);
}
fprintf(fpText, “
STT ”);
fprintf(fpText, “
MSSV ”);
fprintf(fpText, “
Ten ”);
fprintf(fpText, “
Diem Toan ”);
fprintf(fpText, “
Diem Hoa ”);
fprintf(fpText, “
Diem Ly ”);
fprintf(fpText, “
Diem Tb ”);
fprintf(fpText, “
%d ”, i +1);
fprintf(fpText, “
%s ”, a[i].MSSV.c_str());
fprintf(fpText, “
%s ”, a[i].HoTen.c_str());
fprintf(fpText, “
%f ”, a[i].diemToan);
fprintf(fpText, “
%f ”, a[i].diemHoa);
fprintf(fpText, “
%f ”, a[i].diemLy);
fprintf(fpText, “
%f ”, a[i].DTB);
fprintf(fpText, “
”);
}

void htmlEnd(FILE* fpText) {
fprintf(fpText, “ ”);
}

Mai Anh Dũng viết 01:29 ngày 01/10/2018

Tiếng Việt không dấu + code không cho vào markdown

Ẩn bài viết cho tới khi sửa được 2 lỗi trên

Bài liên quan
0