Something
public text v1 · immutable#include <iostream>
#include <fstream>
#include <string>
//#include <cstring>
//#include <cstdlib>
using namespace std;
int main ( int argc , char * argv[] )
{
int i = 1;
bool nkot = true;
string param,szo;
while ((i < argc) and nkot)
{
param = argv[i][0];
if (param == "-")
{
int j = 0;
szo = argv[i];
while ( j < szo.length())
{
if (szo[j] == "x") { cout << "van benne x";}
j++;
}
}
else
{
nkot = false;
}
i++;
}
cout << i;
return 0;
}