Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralInteracting with Java servlets Pin
Nish Nishant21-Mar-02 21:57
sitebuilderNish Nishant21-Mar-02 21:57 
GeneralRe: Interacting with Java servlets Pin
moliate21-Mar-02 23:40
moliate21-Mar-02 23:40 
GeneralRe: Interacting with Java servlets Pin
Nish Nishant21-Mar-02 23:53
sitebuilderNish Nishant21-Mar-02 23:53 
GeneralRe: Interacting with Java servlets Pin
moliate22-Mar-02 0:11
moliate22-Mar-02 0:11 
GeneralRe: Interacting with Java servlets Pin
Nish Nishant22-Mar-02 0:51
sitebuilderNish Nishant22-Mar-02 0:51 
GeneralRe: Interacting with Java servlets Pin
moliate22-Mar-02 2:14
moliate22-Mar-02 2:14 
GeneralRe: Interacting with Java servlets Pin
moliate22-Mar-02 9:19
moliate22-Mar-02 9:19 
Generala simple program using array Pin
ken77721-Mar-02 21:38
ken77721-Mar-02 21:38 
I need some help on this program. Can anyone tell me what I am missing here.
When I execute the program, it has one error (syntax error : 'if')

Here is a complete program. It'll ask the user to input 10 integers, then display the smallest and largest interger entered. thanks alot

#include <iostream.h>
void main(void)
{
int Array[10], smallest, largest, value;
cout << "Please enter 10 values ";
cin >> Array[value];
smallest=Array[0];
largest=Array[0];
for (value =0; value<10; value++)
{

if (smallest<=Array[value])

smallest=Array[value];
cout << "The smallest value is " << smallest <<

if (largest>=Array[value])
largest=Array[value];
cout << "The largest value is " << largest << endl;
}
}
GeneralRe: a simple program using array Pin
Jack Handy21-Mar-02 21:39
Jack Handy21-Mar-02 21:39 
GeneralRe: a simple program using array Pin
Nish Nishant21-Mar-02 21:55
sitebuilderNish Nishant21-Mar-02 21:55 
GeneralRe: a simple program using array Pin
Tomasz Sowinski21-Mar-02 23:40
Tomasz Sowinski21-Mar-02 23:40 
GeneralRe: a simple program using array Pin
Nish Nishant21-Mar-02 23:46
sitebuilderNish Nishant21-Mar-02 23:46 
GeneralRe: a simple program using array Pin
Nish Nishant21-Mar-02 21:53
sitebuilderNish Nishant21-Mar-02 21:53 
GeneralForm Designer Pin
Nish Nishant21-Mar-02 21:31
sitebuilderNish Nishant21-Mar-02 21:31 
GeneralRe: Form Designer Pin
Tomasz Sowinski21-Mar-02 23:44
Tomasz Sowinski21-Mar-02 23:44 
GeneralRe: Form Designer Pin
Nish Nishant22-Mar-02 0:00
sitebuilderNish Nishant22-Mar-02 0:00 
GeneralRe: Form Designer Pin
Tomasz Sowinski22-Mar-02 0:10
Tomasz Sowinski22-Mar-02 0:10 
GeneralRe: Form Designer Pin
Nish Nishant22-Mar-02 0:48
sitebuilderNish Nishant22-Mar-02 0:48 
GeneralInheritance Pin
Jack Handy21-Mar-02 21:10
Jack Handy21-Mar-02 21:10 
GeneralRe: Inheritance Pin
Nish Nishant21-Mar-02 21:23
sitebuilderNish Nishant21-Mar-02 21:23 
GeneralRe: Inheritance Pin
Jack Handy21-Mar-02 21:26
Jack Handy21-Mar-02 21:26 
GeneralRe: Inheritance Pin
Nish Nishant21-Mar-02 21:35
sitebuilderNish Nishant21-Mar-02 21:35 
GeneralRe: Inheritance Pin
Jack Handy21-Mar-02 21:35
Jack Handy21-Mar-02 21:35 
GeneralEN_KILLFOCUS... Pin
Neha21-Mar-02 20:56
Neha21-Mar-02 20:56 
GeneralRe: EN_KILLFOCUS... Pin
l a u r e n21-Mar-02 21:02
l a u r e n21-Mar-02 21:02 

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.