Click here to Skip to main content
15,798,150 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHelp Needed Controlling other application using VC++ Pin
Ram Murali6-Nov-09 20:55
Ram Murali6-Nov-09 20:55 
AnswerRe: Help Needed Controlling other application using VC++ Pin
Richard MacCutchan6-Nov-09 23:36
mveRichard MacCutchan6-Nov-09 23:36 
GeneralRe: Help Needed Controlling other application using VC++ Pin
Ram Murali6-Nov-09 23:47
Ram Murali6-Nov-09 23:47 
GeneralRe: Help Needed Controlling other application using VC++ Pin
Richard MacCutchan6-Nov-09 23:50
mveRichard MacCutchan6-Nov-09 23:50 
GeneralRe: Help Needed Controlling other application using VC++ Pin
Ram Murali6-Nov-09 23:57
Ram Murali6-Nov-09 23:57 
GeneralRe: Help Needed Controlling other application using VC++ Pin
David Crow7-Nov-09 11:16
David Crow7-Nov-09 11:16 
AnswerRe: Help Needed Controlling other application using VC++ Pin
Kushagra Tiwari7-Nov-09 1:12
Kushagra Tiwari7-Nov-09 1:12 
QuestionArray help in cpp Pin
Pierre-Andre Malborugh6-Nov-09 15:36
Pierre-Andre Malborugh6-Nov-09 15:36 
okay let me give you a simpler example to explain what isnt working for me...in the following code, this is the output I get :

$ ./a.exe
Enter 10 numbers: 1 2 3 4 5 6 7 8 9 10
The biggest number right now is:1
The biggest number right now is:2
The biggest number right now is:3
The biggest number right now is:4
The biggest number right now is:5
The biggest number right now is:6
The biggest number right now is:7
The biggest number right now is:8
The biggest number right now is:9
The biggest number right now is:2281060
The real biggest number is: 2281060

THE OUTPUT I WANT IS:
Enter 10 numbers: 1 2 3 4 5 6 7 8 9 10
The biggest number right now is:1
The biggest number right now is:2
The biggest number right now is:3
The biggest number right now is:4
The biggest number right now is:5
The biggest number right now is:6
The biggest number right now is:7
The biggest number right now is:8
The biggest number right now is:9
The Real biggest number is: 10

what am i doing wrong?

#include <iostream>
#include <cmath>

using namespace std;

int main ()
{
    int count, biggest = 0;
    int numbers[10];
    cout << "Enter 10 numbers: ";
    for (int i = 0; i < 9; i++)
    {
        count++;
        cin >> numbers[i];
       
        }
    for (int r = 0; r < count; r++)
    {
        if (numbers[r] > numbers[r-1])
        {    
            biggest = numbers[r];
            cout << "The biggest number right now is:" << biggest << endl;
        }
       
        }
        cout << "The real biggest number is: " << biggest;
       
    return 0;
   

}

AnswerRe: Array help in cpp Pin
Hans Dietrich6-Nov-09 16:08
mentorHans Dietrich6-Nov-09 16:08 
QuestionNeed some Help ON DLL Thank You Pin
VB_Crazy6-Nov-09 13:38
VB_Crazy6-Nov-09 13:38 
QuestionMFC Application Scroll bar issue on PDF Viewer Pin
kasi146-Nov-09 12:31
kasi146-Nov-09 12:31 
AnswerRe: MFC Application Scroll bar issue on PDF Viewer Pin
Garth J Lancaster6-Nov-09 14:57
professionalGarth J Lancaster6-Nov-09 14:57 
GeneralRe: MFC Application Scroll bar issue on PDF Viewer Pin
kasi149-Nov-09 7:08
kasi149-Nov-09 7:08 
QuestionBreakpoints in Wincore.cpp Pin
Member 36807856-Nov-09 6:50
Member 36807856-Nov-09 6:50 
AnswerRe: Breakpoints in Wincore.cpp Pin
Rajesh R Subramanian6-Nov-09 7:26
professionalRajesh R Subramanian6-Nov-09 7:26 
AnswerRe: Breakpoints in Wincore.cpp Pin
sashoalm6-Nov-09 7:32
sashoalm6-Nov-09 7:32 
AnswerRe: Breakpoints in Wincore.cpp Pin
Randor 6-Nov-09 8:15
professional Randor 6-Nov-09 8:15 
QuestionCDatabase::OpenEx failure kills UI thread Pin
Gary Wheeler6-Nov-09 6:13
Gary Wheeler6-Nov-09 6:13 
QuestionRe: CDatabase::OpenEx failure kills UI thread Pin
Randor 6-Nov-09 7:25
professional Randor 6-Nov-09 7:25 
AnswerRe: CDatabase::OpenEx failure kills UI thread Pin
Gary Wheeler6-Nov-09 9:35
Gary Wheeler6-Nov-09 9:35 
QuestionRunning task on shutdown Pin
__DanC__6-Nov-09 3:29
__DanC__6-Nov-09 3:29 
AnswerRe: Running task on shutdown Pin
Randor 6-Nov-09 7:08
professional Randor 6-Nov-09 7:08 
GeneralRe: Running task on shutdown Pin
Rajesh R Subramanian6-Nov-09 7:09
professionalRajesh R Subramanian6-Nov-09 7:09 
GeneralRe: Running task on shutdown Pin
__DanC__6-Nov-09 7:18
__DanC__6-Nov-09 7:18 
GeneralRe: Running task on shutdown Pin
Randor 6-Nov-09 7:51
professional Randor 6-Nov-09 7:51 

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.