All pastes #777096 Raw Edit

Something

public text v1 · immutable
·published 2007-11-16 14:56 UTC
rendered paste body
#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;
 }