Welcome to Dream.In.Code
Become a C++ Expert!

Join 136,938 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,841 people online right now. Registration is fast and FREE... Join Now!




Password Search (Ya Borin, Cambodia)

 
Reply to this topicStart new topic

Password Search (Ya Borin, Cambodia), Crack password

yaborin05
15 Mar, 2008 - 07:56 PM
Post #1

New D.I.C Head
*

Joined: 1 Nov, 2007
Posts: 0


My Contributions
cpp

#include<stdio.h>
int main()
{
int i,j,pass;
FILE *p;
if((p=fopen("password.txt","w"))==NULL)
{
printf("The file could not open");
}
else
{
printf("Enter Password to search(######) in Number :");
scanf("%d",&pass);
while(!feof(stdin))
{
for(i=0;i<=100;i++)
{

if(i==pass)
{
fprintf(p,"\n\nYour password is: %d\n\n",i);
}
// printf("%d\n",i);
}
fclose(p);
}
}
return 0;
}


This post has been edited by Martyr2: 15 Mar, 2008 - 08:11 PM
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Password Search (Ya Borin, Cambodia)
15 Mar, 2008 - 08:12 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,231



Thanked: 220 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
What is your question and what is giving you trouble? Keep in mind that we will not be helping you crack any kind of passwords or create programs to do this. So if that is what you are attempting to do, don't waste your time. Otherwise, please let us know what type of help you are looking for.

Help us help you! Thanks! smile.gif
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/3/08 10:50PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month