blondu08 Posted February 28, 2012 Report Posted February 28, 2012 Salut! Vreau un program in C++ de generat coduri....vreau sursa programului daca se poate.ex: jgtava45as5ef sau ceva asemantor ..... Quote
verde_888 Posted February 28, 2012 Report Posted February 28, 2012 program ganerat coduriCe e aia?Ce sa ganareze? Quote
blondu08 Posted February 28, 2012 Author Report Posted February 28, 2012 pai nu stiu ...un cod acolo ex: jgtava45as5ef sau ceva asemantor ..... orice:D Quote
blondu08 Posted February 28, 2012 Author Report Posted February 28, 2012 aaa acuma am vazut ...ma scuzati...ma doare un pic capu`...."generat"..... scuze....Rog un moderator sa corecteze.....imi cer scuze inca odata. Quote
Paul4games Posted February 28, 2012 Report Posted February 28, 2012 Ceea ce vrei tu este un random string generator, doar cauta pe goolge si o sa gasesti destule snippeturi. Quote
Ghett0 Posted February 28, 2012 Report Posted February 28, 2012 Ceva de genul?#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#include <windows.h>int main() {char letters[] = "abcdefghijklmnopqrstuvwxyz";char mixed[] = "01234567890abcdefghijklmnopqrstuvwxyz";char abc;abc = strlen(letters);char len;len = strlen(mixed);srand(GetTickCount());printf("%c", letters[rand()%abc]);printf("%c", mixed[rand()%len]);printf("%c", mixed[rand()%len]);printf("%c", mixed[rand()%len]);printf("%c", mixed[rand()%len]);printf("%c", mixed[rand()%len]);printf("%c", mixed[rand()%len]);return printf("\n\n");}Data viitoare ai grija cand scrii titlul, e ca si cum ai gresi fix titlul cartii cand o publici PS: Incearca sa nu mai faci dublu post. Quote
blondu08 Posted February 28, 2012 Author Report Posted February 28, 2012 ok ...am inteles.Si multumesc mult. Quote
blondu08 Posted February 28, 2012 Author Report Posted February 28, 2012 La programul tau Ghett0 .....nu stiu ce e cu el , nu imi da nici eroare in C++ dar nici nu mi se executa programul adica se executa si dispare intr-o secunda. Quote
adonisslanic Posted February 28, 2012 Report Posted February 28, 2012 pune si tu getch(); la sfarsit :\ Quote
virusz Posted February 28, 2012 Report Posted February 28, 2012 sau compilezi ce ti-au dat baietii si faci ceva de genu::lofisier.exe>>Generated.txtgoto losalvezi ca *.bat si ii dai drumuah: http://www.onlinecompiler.net/upload/tmp/npLcDPkY.exe Quote
Ghett0 Posted February 28, 2012 Report Posted February 28, 2012 Uite si cu getch();#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#include <windows.h>#include <conio.h>int main() {char letters[] = "abcdefghijklmnopqrstuvwxyz";char mixed[] = "01234567890abcdefghijklmnopqrstuvwxyz";char abc;abc = strlen(letters);char len;len = strlen(mixed);srand(GetTickCount());printf("%c", letters[rand()%abc]);printf("%c", mixed[rand()%len]);printf("%c", mixed[rand()%len]);printf("%c", mixed[rand()%len]);printf("%c", mixed[rand()%len]);printf("%c", mixed[rand()%len]);printf("%c", mixed[rand()%len]);return printf("\n\n");getch();} Quote
Starker Posted February 28, 2012 Report Posted February 28, 2012 Un system("pause") sau un simplu cin>> ti-ar rezolva problema. Quote
raynor009 Posted February 28, 2012 Report Posted February 28, 2012 Sa inteleg ca vrei sa faci un keygen? Quote
blondu08 Posted February 29, 2012 Author Report Posted February 29, 2012 ca tot venii vorba de keygen ....cum se face unul...? Quote
AdyAdy12 Posted March 3, 2012 Report Posted March 3, 2012 Care ma ajuta si pe mn sa fac un hack de conquiztador in microsoft C++ 2010 express mullt...sau macar sa ma ajute cu un hack tot de conquiztadorCine vrea id meu este adynaruto48 Quote
totti93 Posted March 3, 2012 Report Posted March 3, 2012 @Ady Nimeni nu o sa-ti dea programul. Du-te si invata, nu intinde mana!L.E.: Ai f*tut threadul cum ai deschis gura... Quote