novarulles Posted April 20, 2012 Report Posted April 20, 2012 Deci cu ajutorul acestui programel puteti genera mailede forma nume.nume1@domeniu.comProgramelul il puteti descarca de aiciSau sal compilati e scris in c++ (eu am folosit C-free).#include <iostream>#include <fstream>using namespace std;int main(){ ifstream Fisier_in; string Nume[50000]; int k = -1; // contor Fisier_in.open("in.txt", ios::in); if (Fisier_in.is_open()) { while (Fisier_in.good()) // as long as there's no EOF or reading errors ... { k++; getline(Fisier_in, Nume[k]); } } else cout << "file couldn't be opened"; Fisier_in.close(); // Generating combinations one line at a time; ofstream Fisier_out; Fisier_out.open("out.txt"); // fisierul este suprascris la fiecare rulare noua string Domeniu; cout << "Numele domeniului: (ex .ro)"; cin >> Domeniu; for (int i=0; i<=k; i++) { // picking element I for (int j=0; j<=k; j++) { // writing elements I and J Fisier_out << Nume[i] << "." << Nume[j] << "@" << Domeniu <<endl; } Fisier_out ; } return 0;}Dupa ce lati descarca sau compilat creati un folder nou si copiati executabilul in el , creati un fisier .txt bagati numele dorite si salvatil in acelasi director sub numele de in.txt ca in imaginea de mai josDupa accea dati dublu click pe executabil si o sa va apara o ferestra ca in imaginea de mai jos:Acum bagati domeniul dorit de ex yahoo.comAcum apasati enter si asteptati in fisierul out.txt vor fi salvate rezultatele.Exempludaca in fisierul in.txt vom aveam numele novarullesCaBRoN88danger2umadalinntOnlineHelpSuKySKthewolfxTremeSurfersi domeniului dorit este yahoo.com vorm avea rezultatele asteanovarulles.novarulles@yahoo.comnovarulles.CaBRoN88@yahoo.comnovarulles.danger2u@yahoo.comnovarulles.madalinnt@yahoo.comnovarulles.OnlineHelp@yahoo.comnovarulles.SuKySK@yahoo.comnovarulles.thewolf@yahoo.comnovarulles.xTremeSurfer@yahoo.comCaBRoN88.novarulles@yahoo.comCaBRoN88.CaBRoN88@yahoo.comCaBRoN88.danger2u@yahoo.comCaBRoN88.madalinnt@yahoo.comCaBRoN88.OnlineHelp@yahoo.comCaBRoN88.SuKySK@yahoo.comCaBRoN88.thewolf@yahoo.comCaBRoN88.xTremeSurfer@yahoo.comdanger2u.novarulles@yahoo.comdanger2u.CaBRoN88@yahoo.comdanger2u.danger2u@yahoo.comdanger2u.madalinnt@yahoo.comdanger2u.OnlineHelp@yahoo.comdanger2u.SuKySK@yahoo.comdanger2u.thewolf@yahoo.comdanger2u.xTremeSurfer@yahoo.commadalinnt.novarulles@yahoo.commadalinnt.CaBRoN88@yahoo.commadalinnt.danger2u@yahoo.commadalinnt.madalinnt@yahoo.commadalinnt.OnlineHelp@yahoo.commadalinnt.SuKySK@yahoo.commadalinnt.thewolf@yahoo.commadalinnt.xTremeSurfer@yahoo.comOnlineHelp.novarulles@yahoo.comOnlineHelp.CaBRoN88@yahoo.comOnlineHelp.danger2u@yahoo.comOnlineHelp.madalinnt@yahoo.comOnlineHelp.OnlineHelp@yahoo.comOnlineHelp.SuKySK@yahoo.comOnlineHelp.thewolf@yahoo.comOnlineHelp.xTremeSurfer@yahoo.comSuKySK.novarulles@yahoo.comSuKySK.CaBRoN88@yahoo.comSuKySK.danger2u@yahoo.comSuKySK.madalinnt@yahoo.comSuKySK.OnlineHelp@yahoo.comSuKySK.SuKySK@yahoo.comSuKySK.thewolf@yahoo.comSuKySK.xTremeSurfer@yahoo.comthewolf.novarulles@yahoo.comthewolf.CaBRoN88@yahoo.comthewolf.danger2u@yahoo.comthewolf.madalinnt@yahoo.comthewolf.OnlineHelp@yahoo.comthewolf.SuKySK@yahoo.comthewolf.thewolf@yahoo.comthewolf.xTremeSurfer@yahoo.comxTremeSurfer.novarulles@yahoo.comxTremeSurfer.CaBRoN88@yahoo.comxTremeSurfer.danger2u@yahoo.comxTremeSurfer.madalinnt@yahoo.comxTremeSurfer.OnlineHelp@yahoo.comxTremeSurfer.SuKySK@yahoo.comxTremeSurfer.thewolf@yahoo.comxTremeSurfer.xTremeSurfer@yahoo.comSper sa va fie de folos.P.S. va trebui sa le si validati dupa ce le generati (care sunt existente) pentru asta descarcati acest AMS validator de aici aici . Quote