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

C / C++ / MFC

 
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 
QuestionIntegration of WinForm and Visual C++ Pin
kikoso10-Nov-09 5:47
kikoso10-Nov-09 5:47 
AnswerRe: Integration of WinForm and Visual C++ Pin
«_Superman_»10-Nov-09 8:24
professional«_Superman_»10-Nov-09 8:24 
GeneralRe: Integration of WinForm and Visual C++ Pin
kikoso11-Nov-09 6:17
kikoso11-Nov-09 6:17 
GeneralRe: Integration of WinForm and Visual C++ Pin
kikoso12-Nov-09 4:11
kikoso12-Nov-09 4:11 
QuestionToolbar control access Pin
m_mun10-Nov-09 3:13
m_mun10-Nov-09 3:13 
AnswerRe: Toolbar control access Pin
LunaticFringe10-Nov-09 6:59
LunaticFringe10-Nov-09 6:59 
GeneralRe: Toolbar control access Pin
«_Superman_»10-Nov-09 7:46
professional«_Superman_»10-Nov-09 7:46 
GeneralRe: Toolbar control access Pin
LunaticFringe10-Nov-09 8:15
LunaticFringe10-Nov-09 8:15 

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.