Click here to Skip to main content
15,878,231 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionauto closing messagebox Pin
gamefreak229119-Apr-09 17:15
gamefreak229119-Apr-09 17:15 
AnswerRe: auto closing messagebox Pin
N a v a n e e t h19-Apr-09 17:32
N a v a n e e t h19-Apr-09 17:32 
AnswerRe: auto closing messagebox Pin
Rajesh R Subramanian19-Apr-09 20:46
professionalRajesh R Subramanian19-Apr-09 20:46 
AnswerRe: auto closing messagebox Pin
MANISH RASTOGI19-Apr-09 22:54
MANISH RASTOGI19-Apr-09 22:54 
QuestionUsing 宝 in _RecordsetPtr, without setting Chinese IME in my windows Pin
leesense19-Apr-09 16:54
leesense19-Apr-09 16:54 
Questionchar+char issues Pin
gamefreak229119-Apr-09 14:39
gamefreak229119-Apr-09 14:39 
AnswerRe: char+char issues Pin
aks.19-Apr-09 18:59
aks.19-Apr-09 18:59 
GeneralRe: char+char issues Pin
gamefreak229119-Apr-09 19:32
gamefreak229119-Apr-09 19:32 
reply, wouldnt allow me to do that, however, I fixed that issue around 30 minutes ago. I now have:

#include <conio.h>
#include <iostream.>
#include <windows.h>
using namespace std;
char password1[25];
int x=1;
int i=0;
int main()
{
do{
cout << "Enter a test password: " ;
for(i=0;i<25;i++){
password1[i]=getch();
if(((password1[i]>=65)&&(password1[i]<=90)) || ((password1[i]>=97)&&(password1[i]<=122))
|| ((password1[i]>=48)&&(password1[i]<=57)) || ((password1[i]>=35)&&(password1[i]<=38))
|| ((password1[i]>=40)&&(password1[i]<=42)) || ((password1[i]==33))||((password1[i]==64))
|| ((password1[i]==94)) || ((password1[i]==32))){cout << "*";
i+1;}
if(password1[i]==13){goto end;}
else{cout << "";}
}
end:
for (i; i < strlen(password1); i++){
password1[i] = '\0';}
cout << "\nYour password is " << password1[0] << password1[1] << password1[2] << password1[3] << password1[4] << password1[5] << password1[6] << password1[7] << password1[8] << password1[9] << password1[10] << password1[11] << password1[12] << password1[13] << password1[14] << password1[15] << password1[16] << password1[17] << password1[18] << password1[19] << password1[20] << password1[21] << password1[22] << password1[23] << password1[24] << password1[25];
Sleep(2000);
if(password1[i]=='password'){goto end1;}
system("cls");
}while(x=1);
end1:
cout << "\nIT WORKS!";
getch();
return 0;
}


This works completely other than it doing the password check which im still looking into. feel free to help
Questionactivex dll problem [solved] Pin
maxMESA19-Apr-09 0:48
maxMESA19-Apr-09 0:48 
AnswerRe: activex dll problem Pin
Stuart Dootson19-Apr-09 1:47
professionalStuart Dootson19-Apr-09 1:47 
AnswerRe: activex dll problem Pin
maxMESA19-Apr-09 7:14
maxMESA19-Apr-09 7:14 
Questionpoint reference VS value Pin
sharion18-Apr-09 21:18
sharion18-Apr-09 21:18 
AnswerRe: point reference VS value Pin
Stuart Dootson18-Apr-09 22:53
professionalStuart Dootson18-Apr-09 22:53 
GeneralRe: point reference VS value Pin
sharion19-Apr-09 1:35
sharion19-Apr-09 1:35 
GeneralRe: point reference VS value Pin
Luc Pattyn19-Apr-09 1:49
sitebuilderLuc Pattyn19-Apr-09 1:49 
GeneralRe: point reference VS value Pin
Stuart Dootson19-Apr-09 1:52
professionalStuart Dootson19-Apr-09 1:52 
GeneralRe: point reference VS value Pin
sharion19-Apr-09 3:21
sharion19-Apr-09 3:21 
GeneralRe: point reference VS value Pin
Stuart Dootson19-Apr-09 3:52
professionalStuart Dootson19-Apr-09 3:52 
GeneralRe: point reference VS value Pin
Luc Pattyn19-Apr-09 4:05
sitebuilderLuc Pattyn19-Apr-09 4:05 
GeneralRe: point reference VS value Pin
Stuart Dootson19-Apr-09 4:24
professionalStuart Dootson19-Apr-09 4:24 
GeneralRe: point reference VS value Pin
Luc Pattyn19-Apr-09 4:37
sitebuilderLuc Pattyn19-Apr-09 4:37 
GeneralRe: point reference VS value Pin
Stuart Dootson19-Apr-09 4:56
professionalStuart Dootson19-Apr-09 4:56 
GeneralRe: point reference VS value Pin
Luc Pattyn19-Apr-09 5:00
sitebuilderLuc Pattyn19-Apr-09 5:00 
GeneralRe: point reference VS value Pin
Stuart Dootson19-Apr-09 5:04
professionalStuart Dootson19-Apr-09 5:04 
GeneralRe: point reference VS value Pin
sharion19-Apr-09 5:25
sharion19-Apr-09 5:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.