C++ KOD

Započeo 1338
pre 14 godina
547
pregleda
5
postova
buraztoxic
Street Runner
pre 14 godina
POMOĆ!
Trebam nekog tko bi mi mogao ovaj kod stavit u C++ ili kamo, i predtvorit u program.
Ja neam pojma s tim tako da trebam vašu pomoć.


#include 
#include 
#include 

/*
Generator
Author: Don Bianco.
Site: --.
Description: Creates user defined wordlist.
Disclaimer: I am not responsible for any damages this program my create.
I am not responsible for how you use this program.
*/

using namespace std;

int main(void)
{
  int timesPrint;
  int pwLen;
   
  /* Seed the RG. */
  srand(time(NULL));
   
  /* Characters to be randomized. */
  char randPw = { 0 };
   
  /* Location of file, app flag to append to end of file, so files
  are not overwritten on multiple goes. */
  ofstream putout0 ("C:\\DEFINE\\PATH\\WORDLISTFTW.txt", ios::app);
     
  cout << "Welcome to K1u's wordlist generator"
  << "\n\n"
  << "Please enter lines of passwords you would like.\n";
     
  cin >> timesPrint;
   
  cout << "\nWhat would you like randomized?\n"
  << "Example: 1234567890\n";
   
  cin >> randPw;
   
  cout << "\nHow long would you like each password to be?\n";
   
  cin >> pwLen;
   
  /* Program will crash if string length not shown to RG. */
  char pwRand = strlen(randPw);
  for(int i = 0; i < timesPrint; i++)
  {
          for(int i = 0; i < pwLen; i++)
          {
          putout0 << (randPw[rand() % pwRand]);
          }
  putout0 << "\n";
  }
   
  system("PAUSE");
  return 0;
}
KombinatoR
Crime Lord
pre 14 godina
to se inace compile-a...xD

edit cu kad cu ti uplaodat... 😄
Dude
Crime Lord
pre 14 godina
kak mislis stavit u C++? ovo je C sintaksa i to je samo neko parce koda, za cega ce ti? sta bi to trebalo raditi?

http://www.bloodshed.net/devcpp.html
to ti je link po meni najboljeg kompajlera za C/C++
KombinatoR
Crime Lord
pre 14 godina
Dude wrote on June 30, 2011, 7:34 pm:
kak mislis stavit u C++? ovo je C sintaksa i to je samo neko parce koda, za cega ce ti? sta bi to trebalo raditi?

http://www.bloodshed.net/devcpp.html
to ti je link po meni najboljeg kompajlera za C/C++

taj ja koristim...
ali evo da kazem ovom, ima errora...
Dude
Crime Lord
pre 14 godina
normalno da ima errora

#include 
#include 
#include 

ovo je nista... trebalo bi nekakve library-e includat...

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava