Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThe 2D Graph Component With Zoom Capability - SmartGraph Build Errors Pin
Andy2026-Dec-07 3:48
Andy2026-Dec-07 3:48 
GeneralRe: The 2D Graph Component With Zoom Capability - SmartGraph Build Errors Pin
CPallini6-Dec-07 4:35
mveCPallini6-Dec-07 4:35 
GeneralI'm a newbee on this site... Pin
Allen C.6-Dec-07 3:38
Allen C.6-Dec-07 3:38 
GeneralRe: I'm a newbee on this site... Pin
Matthew Faithfull6-Dec-07 3:44
Matthew Faithfull6-Dec-07 3:44 
GeneralRe: I'm a newbee on this site... Pin
toxcct6-Dec-07 3:45
toxcct6-Dec-07 3:45 
GeneralRe: I'm a newbee on this site... Pin
Hamid_RT6-Dec-07 3:58
Hamid_RT6-Dec-07 3:58 
Generalhttps problem Pin
Sundararajan6-Dec-07 3:16
Sundararajan6-Dec-07 3:16 
AnswerDelete Elements in arrays Pin
KARFER6-Dec-07 3:09
KARFER6-Dec-07 3:09 
Hi

Please How I can delete element from the struct that contain arrays

This is My Code
<br />
struct Member<br />
{<br />
  char name[50];<br />
  char address[30];<br />
  int number;<br />
};<br />
struct Member member[100];<br />
<br />
And i have this Function for delete elements But how i can complete it<br />
<br />
void delete_member ()<br />
{<br />
  int search;<br />
<br />
  cout <<"Enter Your Number of member:";<br />
  cin >> search;<br />
<br />
  for (int i=0;i<100;i++)<br />
{<br />
 if (member[i].number == search)<br />
{<br />
/* what can i write here to complete the code */<br />
<br />
}<br />
}<br />
<br />



-*-*-*-*-*-*-*-*-*
To Be Or Not To Be
(KARFER)
-*-*-*-*-*-*-*-*-*

GeneralRe: Delete Elements in arrays Pin
Cedric Moonen6-Dec-07 3:14
Cedric Moonen6-Dec-07 3:14 
GeneralRe: Delete Elements in arrays Pin
Maximilien6-Dec-07 3:20
Maximilien6-Dec-07 3:20 
GeneralRe: Delete Elements in arrays Pin
CPallini6-Dec-07 3:25
mveCPallini6-Dec-07 3:25 
GeneralRe: Delete Elements in arrays Pin
toxcct6-Dec-07 3:36
toxcct6-Dec-07 3:36 
GeneralSure, buddy! Pin
CPallini6-Dec-07 3:51
mveCPallini6-Dec-07 3:51 
GeneralRe: Sure, buddy! Pin
toxcct6-Dec-07 4:26
toxcct6-Dec-07 4:26 
GeneralRe: Sure, buddy! Pin
CPallini6-Dec-07 4:51
mveCPallini6-Dec-07 4:51 
GeneralRe: Sure, buddy! Pin
toxcct6-Dec-07 5:54
toxcct6-Dec-07 5:54 
GeneralRe: Delete Elements in arrays Pin
KARFER6-Dec-07 5:29
KARFER6-Dec-07 5:29 
GeneralRe: Delete Elements in arrays Pin
CPallini6-Dec-07 5:40
mveCPallini6-Dec-07 5:40 
Generaltls with ftp in vc++ Pin
gayathri6-Dec-07 2:46
gayathri6-Dec-07 2:46 
GeneralRe: tls with ftp in vc++ Pin
Mike Dimmick6-Dec-07 3:54
Mike Dimmick6-Dec-07 3:54 
GeneralChild process problem Pin
maladuk6-Dec-07 2:23
maladuk6-Dec-07 2:23 
GeneralRe: Child process problem Pin
David Crow6-Dec-07 2:35
David Crow6-Dec-07 2:35 
GeneralRe: Child process problem Pin
maladuk6-Dec-07 2:44
maladuk6-Dec-07 2:44 
GeneralRe: Child process problem Pin
David Crow6-Dec-07 2:48
David Crow6-Dec-07 2:48 
GeneralRe: Child process problem Pin
maladuk6-Dec-07 3:04
maladuk6-Dec-07 3:04 

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.