Click here to Skip to main content
15,917,456 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Find cursor Pin
sonualex11-Nov-09 16:52
sonualex11-Nov-09 16:52 
GeneralRe: Find cursor Pin
David Crow12-Nov-09 2:52
David Crow12-Nov-09 2:52 
GeneralRe: Find cursor Pin
sonualex12-Nov-09 17:51
sonualex12-Nov-09 17:51 
QuestionHow to debug an ActiveX control running in Internet Explorer? Pin
Erik10-Nov-09 18:07
Erik10-Nov-09 18:07 
AnswerRe: How to debug an ActiveX control running in Internet Explorer? Pin
KingsGambit10-Nov-09 20:24
KingsGambit10-Nov-09 20:24 
QuestionAutomation on Context Menu Pin
Bedke10-Nov-09 17:19
Bedke10-Nov-09 17:19 
AnswerRe: Automation on Context Menu Pin
Adam Roderick J10-Nov-09 17:52
Adam Roderick J10-Nov-09 17:52 
GeneralRe: Automation on Context Menu Pin
Bedke10-Nov-09 21:23
Bedke10-Nov-09 21:23 
QuestionHow to auto close the MessageBox dialog in SDK Program? Pin
wangningyu10-Nov-09 15:33
wangningyu10-Nov-09 15:33 
AnswerRe: How to auto close the MessageBox dialog in SDK Program? Pin
«_Superman_»10-Nov-09 16:08
professional«_Superman_»10-Nov-09 16:08 
QuestionMFC Multiple Views Pin
Cipher 2210-Nov-09 11:40
Cipher 2210-Nov-09 11:40 
AnswerRe: MFC Multiple Views Pin
«_Superman_»10-Nov-09 12:00
professional«_Superman_»10-Nov-09 12:00 
QuestionCreateEX() causing odd results in Vista/7 Pin
anthonym710-Nov-09 9:37
anthonym710-Nov-09 9:37 
AnswerRe: CreateEX() causing odd results in Vista/7 Pin
«_Superman_»10-Nov-09 10:44
professional«_Superman_»10-Nov-09 10:44 
GeneralRe: CreateEX() causing odd results in Vista/7 Pin
anthonym710-Nov-09 10:49
anthonym710-Nov-09 10:49 
QuestionPassword scramble PinPopular
Chris081210-Nov-09 8:21
Chris081210-Nov-09 8:21 
Create a program that allows the user to enter a password.
1-All vowels (A, E, I, O, and U) in the original password are replaced with the letter X.
2-All numbers in the original password are replaced with the letter Z.
3-All the characters in the original password are reversed.

My question is I'm getting two errors and honestly, I'm not sure how to fix them!
error C2109: subscript requires array or pointer type
error C2664: 'strcat' : cannot convert parameter 1 from 'int' to 'char *'

<br />
#include <string><br />
#include <iostream><br />
<br />
using std::cout;<br />
using std::cin;<br />
using std::endl;<br />
using std::string;<br />
<br />
int main(int argc,char *argv[], int rpass, int passwdlen, int passwd)<br />
{<br />
	<br />
char *a,*b,c; <br />
int t,e; <br />
if (argc<2) return(0); <br />
a=argv[1]; <br />
b=a; <br />
e=strlen(b); <br />
for (t=0;t<=e;t++) <br />
{ <br />
c = *b; <br />
if (c>='A'&&c<='Z') c -= 'A'-'a'; <br />
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') b++; <br />
else *a++ = *b++; <br />
} <br />
<br />
if( c >= '0' && c <= '9' )<br />
char repass[256];<br />
for (int i=passwdlen-1; i>=0; i--) strcat(rpass, passwd[i]);<br />
<br />
system("pause");<br />
return 0; <br />
} //end of main function<br />

AnswerRe: Password scramble Pin
«_Superman_»10-Nov-09 8:30
professional«_Superman_»10-Nov-09 8:30 
GeneralRe: Password scramble Pin
Chris081210-Nov-09 8:47
Chris081210-Nov-09 8:47 
GeneralRe: Password scramble Pin
Chris081210-Nov-09 8:51
Chris081210-Nov-09 8:51 
AnswerRe: Password scramble Pin
David Crow10-Nov-09 9:58
David Crow10-Nov-09 9:58 
QuestionHow to get the javascript part Pin
raja jamwal10-Nov-09 7:38
raja jamwal10-Nov-09 7:38 
GeneralRe: How to get the javascript part Pin
22491711-Nov-09 6:12
22491711-Nov-09 6:12 
AnswerRe: How to get the javascript part Pin
raja jamwal31-Dec-09 8:02
raja jamwal31-Dec-09 8:02 
QuestionWant to add a static horizontal splitter to an already created view in sdi app Pin
Member 570390510-Nov-09 7:02
Member 570390510-Nov-09 7:02 
AnswerRe: Want to add a static horizontal splitter to an already created view in sdi app Pin
«_Superman_»10-Nov-09 8:18
professional«_Superman_»10-Nov-09 8:18 

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.