这是我的代码...我想在结果上停止它,但是在按下一个键后会显示结果...在按下键后它正在闪烁结果...我正在使用 Microsoft Visual C++6.0 和Windows 7的。
#include <iostream.h>
#include <conio.h>
#include <stdlib.h>
void main() {
int a, b, n;
int danni[6][25];
cout << "n= ";
cin >> n;
for (a = 0; a < n; a++) {
for (b = 0; b < n; b++) {
cout << "danni[" << a << "][" << b << "]= ";
cin >> danni[a][b];
}
}
for (a = 0; a < n; a++) {
cout << "\n ";
for (b = 0; b < n; b++) {
//cout<<danni[a][b]<<" ";
cout << "Fak nomer: " << a << b;
}
cout << "Spec: " << a << b;
cout << "Grupa: ";
cout << a << b;
cout << "Sreden uspeh: " << a << b;
}
system("pause");
}