Hướng dẫn how to count the number of times a loop is executed in c++ - cách đếm số lần một vòng lặp được thực thi trong c ++

Trong C, làm thế nào để bạn đếm số lần một vòng lặp

#include 
#include 

using namespace std;

...

   list my_list;
   int num = 0; 
   while[ ... ] {
      ...
      ++num;
      my_list.push_back[num];
   }
   cout 

Bài Viết Liên Quan

Chủ Đề