Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: When to use PostQuitMessage ? Pin
Hesham Amin13-Jul-04 20:52
Hesham Amin13-Jul-04 20:52 
GeneralRe: When to use PostQuitMessage ? Pin
ThatsAlok13-Jul-04 22:13
ThatsAlok13-Jul-04 22:13 
GeneralRe: When to use PostQuitMessage ? Pin
User 58385215-Jul-04 13:30
User 58385215-Jul-04 13:30 
AnswerRe: When to use PostQuitMessage ? Pin
Jeff Walton14-Jul-04 12:49
Jeff Walton14-Jul-04 12:49 
QuestionHow to save GDI+ bmp file as PDF File Format. Pin
pubududilena13-Jul-04 19:40
pubududilena13-Jul-04 19:40 
AnswerRe: How to save GDI+ bmp file as PDF File Format. Pin
Sekar_Mokachandra17-Mar-05 11:40
Sekar_Mokachandra17-Mar-05 11:40 
GeneralC++ class design question - static member Pin
Indrawati13-Jul-04 19:21
Indrawati13-Jul-04 19:21 
GeneralRe: C++ class design question - static member Pin
maxsteel13-Jul-04 22:23
maxsteel13-Jul-04 22:23 
GeneralReading special characters like TM in text file Pin
Arvind Jagtap13-Jul-04 19:10
Arvind Jagtap13-Jul-04 19:10 
GeneralRe: Reading special characters like TM in text file Pin
David Crow14-Jul-04 3:29
David Crow14-Jul-04 3:29 
GeneralRe: Reading special characters like TM in text file Pin
Arvind Jagtap14-Jul-04 4:04
Arvind Jagtap14-Jul-04 4:04 
GeneralRe: Reading special characters like TM in text file Pin
Arvind Jagtap14-Jul-04 4:18
Arvind Jagtap14-Jul-04 4:18 
GeneralRe: Reading special characters like TM in text file Pin
David Crow14-Jul-04 8:51
David Crow14-Jul-04 8:51 
GeneralC++ program Pin
bctuthrcls13-Jul-04 19:01
sussbctuthrcls13-Jul-04 19:01 
GeneralRe: C++ program Pin
Weiye Chen13-Jul-04 19:26
Weiye Chen13-Jul-04 19:26 
GeneralRe: C++ program Pin
ThatsAlok13-Jul-04 20:35
ThatsAlok13-Jul-04 20:35 
Brother this is code for your program
hope it workSmile | :)
<br />
 void main();<br />
 {<br />
    int nLength=0;<br />
    char *szData;<br />
    cout<<"\nEnter he Length of string : ";<br />
 cin>>nLength;<br />
 //allocate memory<br />
   szData=new char[nlength+1];<br />
 //retrieve data<br />
  getline(szData,nLength);<br />
 //print the string<br />
  cout<<endl<<"YOu have enter : "<<szData;<br />
 int Vowels=0,Spaces=0,Digit=0; <br />
  char ch=0;<br />
 //Now count every thing<br />
  for(int i=0;i<nlength;i++)<br />
{<br />
  if(isDigit(szData[i]))Digit++;<br />
  if(szData[i]==char(32))Spaces++;<br />
  ch=toupper(szdata[i]);<br />
  if((ch=='A')||(ch=='E')||(ch=='I')||(ch=='O')||(ch=='U'))Vowels++;<br />
}<br />
 cout<<endl<<"NO Of Vowels : "<<Vowels;<br />
 cout<<endl<<"NO Of Spaces : "<<Spaces;<br />
 cout<<endl<<"NO Of Digits : "<<Digit;<br />
<br />
getch();<br />
}


pls remove some compiler error if occur

-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
GeneralRe: Visual c++ and word automation Pin
Ryan Binns13-Jul-04 18:37
Ryan Binns13-Jul-04 18:37 
GeneralRe: Visual c++ and word automation Pin
tiziacaia13-Jul-04 19:11
tiziacaia13-Jul-04 19:11 
GeneralRe: Visual c++ and word automation Pin
V.13-Jul-04 21:24
professionalV.13-Jul-04 21:24 
GeneralVisual c++ and word automation Pin
tiziacaia13-Jul-04 18:08
tiziacaia13-Jul-04 18:08 
GeneralSimple DLL help needed. (very basic) Pin
Loosehead Len13-Jul-04 17:51
Loosehead Len13-Jul-04 17:51 
GeneralRe: Simple DLL help needed. (very basic) Pin
User 58385213-Jul-04 19:00
User 58385213-Jul-04 19:00 
GeneralRe: Simple DLL help needed. (very basic) Pin
Loosehead Len13-Jul-04 20:44
Loosehead Len13-Jul-04 20:44 
GeneralRe: Simple DLL help needed. (very basic) Pin
mystro_AKA_kokie13-Jul-04 19:15
mystro_AKA_kokie13-Jul-04 19:15 
GeneralRe: Simple DLL help needed. (very basic) Pin
Loosehead Len13-Jul-04 20:45
Loosehead Len13-Jul-04 20:45 

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.