相关代码 |
|
#include #include #include "\dsac\cplus\lstack.h" void main(void) { long counter; float seconds; clock_t start, finish; LinkedStack S; int x; start = clock( ); counter = 0; while (clock( ) - start < 10) { counter++; for (long i = 0; i < 50000; i++) { S.Add(1); S.Delete(x); }} finish = clock( ); seconds = (finish - start) / CLK_TCK; cout }
相关资源 |
|