Click here to Skip to main content
15,793,085 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: string manipulation question Pin
Michael Schubert16-Oct-08 2:05
Michael Schubert16-Oct-08 2:05 
JokeRe: string manipulation question Pin
Cedric Moonen16-Oct-08 2:12
Cedric Moonen16-Oct-08 2:12 
GeneralRe: string manipulation question Pin
Michael Schubert16-Oct-08 2:27
Michael Schubert16-Oct-08 2:27 
JokeRe: string manipulation question Pin
CPallini16-Oct-08 2:53
mveCPallini16-Oct-08 2:53 
GeneralRe: string manipulation question Pin
SandipG 16-Oct-08 2:56
SandipG 16-Oct-08 2:56 
GeneralRe: string manipulation question Pin
CPallini16-Oct-08 3:03
mveCPallini16-Oct-08 3:03 
AnswerRe: string manipulation question Pin
CPallini16-Oct-08 0:33
mveCPallini16-Oct-08 0:33 
AnswerRe: string manipulation question Pin
Rajesh R Subramanian16-Oct-08 0:33
professionalRajesh R Subramanian16-Oct-08 0:33 
monsieur_jj wrote:
I need to validate email addresses.


You need to validate the email address to have one and only one '@' character? OK, this code will do that:
const char *szEmail= "myname@mydoma@in.com";
strchr(szEmail,'@')?strchr(strchr(szEmail,'@')+1,'@')?cout<<"Invalid!":cout<<"Valid!":cout<<"Invalid!!";
Program Output: Invalid!


Error checking and any dodgy stuff must be handled by *you* of course. Shucks | :-\

Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche

.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]

AnswerRe: string manipulation question Pin
David Crow16-Oct-08 4:46
David Crow16-Oct-08 4:46 
Questionhow to get name of network adapter card if ip address is given in linux? Pin
an8916-Oct-08 0:01
an8916-Oct-08 0:01 
AnswerRe: how to get name of network adapter card if ip address is given in linux? Pin
David Crow16-Oct-08 4:18
David Crow16-Oct-08 4:18 
GeneralRe: how to get name of network adapter card if ip address is given in linux? Pin
Cosmic Egg16-Oct-08 7:34
Cosmic Egg16-Oct-08 7:34 
AnswerRe: how to get name of network adapter card if ip address is given in linux? Pin
an8916-Oct-08 21:01
an8916-Oct-08 21:01 
AnswerRe: how to get name of network adapter card if ip address is given in linux? Pin
an8916-Oct-08 21:01
an8916-Oct-08 21:01 
GeneralRe: how to get name of network adapter card if ip address is given in linux? Pin
David Crow17-Oct-08 3:19
David Crow17-Oct-08 3:19 
Question[Message Deleted] Pin
Le@rner16-Oct-08 0:01
Le@rner16-Oct-08 0:01 
AnswerRe: How can hide a application in Task Manager? Pin
Naveen16-Oct-08 0:27
Naveen16-Oct-08 0:27 
GeneralRe: How can hide a application in Task Manager? Pin
Le@rner16-Oct-08 0:30
Le@rner16-Oct-08 0:30 
GeneralRe: How can hide a application in Task Manager? Pin
Naveen16-Oct-08 0:43
Naveen16-Oct-08 0:43 
AnswerRe: How can hide a application in Task Manager? Pin
Roger Stoltz16-Oct-08 0:51
Roger Stoltz16-Oct-08 0:51 
AnswerRe: [Message Deleted] Pin
Hamid_RT16-Oct-08 5:22
Hamid_RT16-Oct-08 5:22 
Questionaccess password protected site error Pin
George_George15-Oct-08 23:54
George_George15-Oct-08 23:54 
AnswerRe: access password protected site error Pin
KarstenK16-Oct-08 1:03
mveKarstenK16-Oct-08 1:03 
GeneralRe: access password protected site error Pin
George_George16-Oct-08 1:18
George_George16-Oct-08 1:18 
Questiondirectsound Pin
viliam15-Oct-08 23:09
viliam15-Oct-08 23:09 

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.