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

C / C++ / MFC

 
GeneralRe: (cin>>x).get( ); Pin
DaveE9th12-Jul-03 2:29
DaveE9th12-Jul-03 2:29 
Generalbtrees in STL Pin
Anonymous10-Jul-03 7:43
Anonymous10-Jul-03 7:43 
GeneralRe: btrees in STL Pin
valikac10-Jul-03 7:48
valikac10-Jul-03 7:48 
GeneralRe: btrees in STL Pin
David Crow10-Jul-03 8:58
David Crow10-Jul-03 8:58 
GeneralRe: btrees in STL Pin
Anonymous10-Jul-03 12:24
Anonymous10-Jul-03 12:24 
GeneralRe: btrees in STL Pin
David Crow11-Jul-03 3:08
David Crow11-Jul-03 3:08 
GeneralRe: btrees in STL Pin
Nemanja Trifunovic10-Jul-03 9:09
Nemanja Trifunovic10-Jul-03 9:09 
Generalinput/change/delete array elements Pin
DaveE9th10-Jul-03 7:37
DaveE9th10-Jul-03 7:37 
I want to be able to allow the user to modify the numbers in the array of the working program below. I want to enable the user to have the ability to delete, change or add a new number into the array. What would be my best approach to do this? Thanks much, Dave

-------------------------------------------------------------------
#include "iostream.h"
#include "string.h"

int main()
{
int x;
int i;
char str[80];
bool isfinished=false;
char Info [] [300] =
{
"6787-02-000-5287" , "Here is the information for this number." ,
"5978-03-000-0029" , "Here is the information for this number." ,
};
while(isfinished==false)
{
cout<<"\nPlease enter a number:\n";
cin>>str;
for(i=0; i < 4; i += 2)
if(!strcmp(str, Info[i]))
{
cout<<"\nInformation:"<<info[i+1]<<"\n";
break;=""
}=""
if(i="=" 4)=""
{=""
cout<<"number="" not="" found.\n";=""

cout<<"\nwould="" you="" like="" to="" check="" another?\n";=""

{=""
cout<<"enter="" 1="" for="" yes,="" 0="" no.\n";=""
(cin="">>x).get();

}
if (x==0) isfinished=true;
}
return 0;
}
GeneralRe: input/change/delete array elements Pin
valikac10-Jul-03 7:49
valikac10-Jul-03 7:49 
GeneralRe: input/change/delete array elements Pin
David Crow10-Jul-03 9:06
David Crow10-Jul-03 9:06 
GeneralRe: input/change/delete array elements Pin
DaveE9th10-Jul-03 22:05
DaveE9th10-Jul-03 22:05 
QuestionHow do you save work or settings with a dialog in a diffrent file and opening it? Pin
Snyp10-Jul-03 7:23
Snyp10-Jul-03 7:23 
AnswerRe: How do you save work or settings with a dialog in a diffrent file and opening it? Pin
valikac10-Jul-03 7:50
valikac10-Jul-03 7:50 
GeneralRe: How do you save work or settings with a dialog in a diffrent file and opening it? Pin
Snyp10-Jul-03 16:58
Snyp10-Jul-03 16:58 
AnswerRe: How do you save work or settings with a dialog in a diffrent file and opening it? Pin
Terry O'Nolley10-Jul-03 8:58
Terry O'Nolley10-Jul-03 8:58 
QuestionHow do you populate a combobox from a remote datasource? Pin
Terry O'Nolley10-Jul-03 7:17
Terry O'Nolley10-Jul-03 7:17 
AnswerRe: How do you populate a combobox from a remote datasource? Pin
David Crow10-Jul-03 9:08
David Crow10-Jul-03 9:08 
GeneralRe: How do you populate a combobox from a remote datasource? Pin
Terry O'Nolley10-Jul-03 10:07
Terry O'Nolley10-Jul-03 10:07 
GeneralRe: How do you populate a combobox from a remote datasource? Pin
David Crow10-Jul-03 10:30
David Crow10-Jul-03 10:30 
GeneralRe: How do you populate a combobox from a remote datasource? Pin
Terry O'Nolley10-Jul-03 10:37
Terry O'Nolley10-Jul-03 10:37 
GeneralDll and PreTranslateMessage Pin
Daishy10-Jul-03 7:11
Daishy10-Jul-03 7:11 
GeneralMS Visual C++ 6.0 problem Pin
djordj10-Jul-03 5:16
djordj10-Jul-03 5:16 
GeneralRe: MS Visual C++ 6.0 problem Pin
John M. Drescher10-Jul-03 5:18
John M. Drescher10-Jul-03 5:18 
GeneralRe: MS Visual C++ 6.0 problem Pin
Joan M10-Jul-03 7:15
professionalJoan M10-Jul-03 7:15 
GeneralRe: MS Visual C++ 6.0 problem Pin
djordj10-Jul-03 21:17
djordj10-Jul-03 21:17 

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.