A for ciklus bemutatása C++ nyelven. Ezzel előre megmondod hányszor legyen megismételve a késöbbi folyamat
Forráskód:
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int df;
        cout<<"?";
        cin>>df;
for(int f=0;f<df;f++){
            cout<<"Hajra Vidi!!\n";
        }
return 0;
}
Videó: