Back
Kiem_Tra_Doc_File.cpp
Save
// Kiem_Tra_Doc_File.cpp #include
using namespace std; void inMang(int a[], int n) { for (int i = 0; i < n; i++) { cout<<"\t"<
a[j]) { int tmp = a[i]; a[i] = a[j]; a[j] = tmp; } } } } int main() { int n, a[100]; ifstream inputfile("FILE.txt"); inputfile>>n; for (int i = 0; i < n; i++) { inputfile>>a[i]; } inputfile.close(); cout<<"Mang vua nhap:"<