Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get running process list of Windows XP Pin
_AnsHUMAN_ 10-Nov-08 18:15
_AnsHUMAN_ 10-Nov-08 18:15 
GeneralRe: how to get running process list of Windows XP Pin
vijay.victory10-Nov-08 18:39
vijay.victory10-Nov-08 18:39 
GeneralRe: how to get running process list of Windows XP Pin
_AnsHUMAN_ 10-Nov-08 18:45
_AnsHUMAN_ 10-Nov-08 18:45 
GeneralRe: how to get running process list of Windows XP Pin
vijay.victory10-Nov-08 19:40
vijay.victory10-Nov-08 19:40 
GeneralRe: how to get running process list of Windows XP Pin
_AnsHUMAN_ 10-Nov-08 19:45
_AnsHUMAN_ 10-Nov-08 19:45 
GeneralRe: how to get running process list of Windows XP Pin
vijay.victory10-Nov-08 20:11
vijay.victory10-Nov-08 20:11 
GeneralRe: how to get running process list of Windows XP Pin
SandipG 10-Nov-08 20:28
SandipG 10-Nov-08 20:28 
QuestionHelp With A Password Verifier Pin
LilKoopa10-Nov-08 17:33
LilKoopa10-Nov-08 17:33 
Hi again I was wondering if somebody could help me with this program I cant get it to stop displaying 32 so that I can check if the program actually works. here is my code. Thanks in advance if anyone can help



// LanusPassword.cpp : Defines the entry point for the console application.
//Corey Lanus
//Program # 10
//Lanus Password
//Verifies that the password meets the requirements
//November 10, 2008


#include "stdafx.h"
#include <iostream>
#include <cstring>
#include <cctype>
using namespace std;


int main()
{
const int size=10;
string pass;
int length;
int caps=0;
int num=0;
int low=0;
cout << "Please enter a 10 character password.\n";
cout << "You must make sure your password has at\n";
cout << "least two uppercase and at least one\n";
cout << "lowercase letter and atleast 1 number.\n";
cin >> pass;
length = sizeof(pass);
cout << length <<endl;
while (length != 10)
{
cout << "You can only enter 10 characters. Please type again.\n";
cin >> pass;
length = sizeof(pass);
}
for (int cnt=0; cnt<size;>{
cout << pass[cnt] << " ";
}
// New line
cout << endl;
for (int i=0; i<size;>{
cin >> pass[i];
if (isdigit(pass[i]))
num=num+1;
if (isupper(pass[i]))
caps=caps+1;
if (islower(pass[i]))
low=low+1;
}
while (caps<2 || low < 1 || num < 1)
{
num=0;
caps=0;
low=0;
cout << "You must make sure your password has at\n";
cout << "least two uppercase and at least one\n";
cout << "lowercase letter and atleast 1 number.\n";
cin >> pass;
for (int i=0; i<size;>{
cin >> pass[i];
if (isdigit(pass[i]))
num=num+1;
if (isupper(pass[i]))
caps=caps+1;
if (islower(pass[i]))
low=low+1;
}
}
cout << "Your password: " << pass << ", is good and excepted.\n";


return 0;
}


AnswerRe: Help With A Password Verifier Pin
_AnsHUMAN_ 10-Nov-08 18:06
_AnsHUMAN_ 10-Nov-08 18:06 
AnswerRe: Help With A Password Verifier [modified] Pin
enhzflep10-Nov-08 18:17
enhzflep10-Nov-08 18:17 
QuestionHow to build CSP in Vista Pin
izyani10-Nov-08 15:42
izyani10-Nov-08 15:42 
QuestionConvert total seconds to date time format Pin
Arif Liminto10-Nov-08 14:32
professionalArif Liminto10-Nov-08 14:32 
AnswerRe: Convert total seconds to date time format Pin
Randor 10-Nov-08 18:35
professional Randor 10-Nov-08 18:35 
AnswerRe: Convert total seconds to date time format Pin
_AnsHUMAN_ 10-Nov-08 18:36
_AnsHUMAN_ 10-Nov-08 18:36 
GeneralRe: Convert total seconds to date time format Pin
Arif Liminto10-Nov-08 18:53
professionalArif Liminto10-Nov-08 18:53 
QuestionDrawing a windows without system frame Pin
Nacho Chip10-Nov-08 12:54
Nacho Chip10-Nov-08 12:54 
AnswerRe: Drawing a windows without system frame Pin
enhzflep10-Nov-08 14:28
enhzflep10-Nov-08 14:28 
Questionneed help Pin
faradgi10-Nov-08 9:56
faradgi10-Nov-08 9:56 
AnswerRe: need help Pin
Perspx10-Nov-08 10:27
Perspx10-Nov-08 10:27 
AnswerSTOP SPAMMING ALL THE FORUMS Pin
leckey10-Nov-08 11:07
leckey10-Nov-08 11:07 
GeneralRe: STOP SPAMMING ALL THE FORUMS Pin
Paul Conrad10-Nov-08 14:57
professionalPaul Conrad10-Nov-08 14:57 
GeneralRe: STOP SPAMMING ALL THE FORUMS Pin
leckey10-Nov-08 15:02
leckey10-Nov-08 15:02 
QuestionHow to show a value in an Edit Textbox Pin
J_E_D_I10-Nov-08 8:37
J_E_D_I10-Nov-08 8:37 
AnswerRe: How to show a value in an Edit Textbox Pin
David Crow10-Nov-08 9:16
David Crow10-Nov-08 9:16 
GeneralRe: How to show a value in an Edit Textbox Pin
J_E_D_I10-Nov-08 9:51
J_E_D_I10-Nov-08 9:51 

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.