Click here to Skip to main content
16,004,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I am using a thread for which I am sending structure as parameter... :( ending up with error C2440: '=' Pin
ptr_Electron13-Aug-08 18:32
ptr_Electron13-Aug-08 18:32 
GeneralRe: I am using a thread for which I am sending structure as parameter... :( ending up with error C2440: '=' Pin
Jijo.Raj13-Aug-08 18:57
Jijo.Raj13-Aug-08 18:57 
Questiondisplay a bmp image dynamically using win32 sdk c++ Pin
raesa13-Aug-08 2:41
raesa13-Aug-08 2:41 
AnswerRe: display a bmp image dynamically using win32 sdk c++ Pin
KarstenK13-Aug-08 3:58
mveKarstenK13-Aug-08 3:58 
GeneralRe: display a bmp image dynamically using win32 sdk c++ Pin
raesa13-Aug-08 17:45
raesa13-Aug-08 17:45 
AnswerRe: display a bmp image dynamically using win32 sdk c++ Pin
oobimoo13-Aug-08 5:56
oobimoo13-Aug-08 5:56 
GeneralRe: display a bmp image dynamically using win32 sdk c++ Pin
raesa13-Aug-08 17:47
raesa13-Aug-08 17:47 
QuestionC++ program that reads N numbers from the keyboard Pin
rameshkalavala13-Aug-08 2:38
rameshkalavala13-Aug-08 2:38 
Write a C++ program that reads N numbers from the keyboard, calculates and displays the
following information.

1. sum of all positive numbers
2. average of first and last numbers
3. factorial of largest number
4. 70% of smallest positive number
5. first two numbers in ascending order
6. last two numbers in descending order

N should be declared as a constant in your program and it should be equal to the largest digit of your
student id number. eg take number as 8
The program should use the formats for inputs and outputs as given in the example below. In this
example, it is assumed that N is equal to 3 but in your program N should be equal to the largest digit of
your student id number.

Example:
Program Input
Enter 3 numbers:
Number 1: 3
Number 2: -5
Number 3: 4
Program Output:
Sum of all positive numbers: 7
Average of first and last numbers: 3.5
Factorial of largest number: 24
70% of smallest positive number: 2.1
First two numbers in ascending order: -5 3
9
Last two numbers in descending order: 4 -5

The program should contain only a main function. User defined functions and arrays should not be used
in this assignment. D'Oh! | :doh: If you use arrays or functions, you will be penalised 25% of the total marks for the
assignment. You should also not use things which are not part of this course. You will be penalised 25%
of the total marks for the assignment, if you use things (eg. classes, linked list, etc.) which are not
covered in this course.

AnswerRe: C++ program that reads N numbers from the keyboard Pin
_AnsHUMAN_ 13-Aug-08 2:40
_AnsHUMAN_ 13-Aug-08 2:40 
AnswerRe: C++ program that reads N numbers from the keyboard Pin
toxcct13-Aug-08 2:51
toxcct13-Aug-08 2:51 
AnswerRe: C++ program that reads N numbers from the keyboard Pin
Cedric Moonen13-Aug-08 2:54
Cedric Moonen13-Aug-08 2:54 
AnswerRe: C++ program that reads N numbers from the keyboard Pin
Michael Schubert13-Aug-08 2:55
Michael Schubert13-Aug-08 2:55 
Questionneed source code Pin
rameshkalavala13-Aug-08 2:33
rameshkalavala13-Aug-08 2:33 
AnswerRe: need source code Pin
SandipG 13-Aug-08 2:37
SandipG 13-Aug-08 2:37 
AnswerRe: need source code Pin
_AnsHUMAN_ 13-Aug-08 2:39
_AnsHUMAN_ 13-Aug-08 2:39 
QuestionRe: need source code Pin
Michael Schubert13-Aug-08 2:54
Michael Schubert13-Aug-08 2:54 
QuestionRe: need source code Pin
David Crow13-Aug-08 3:24
David Crow13-Aug-08 3:24 
AnswerRe: need source code [modified] Pin
Jörgen Sigvardsson13-Aug-08 3:33
Jörgen Sigvardsson13-Aug-08 3:33 
QuestionRe: need source code Pin
David Crow13-Aug-08 3:39
David Crow13-Aug-08 3:39 
AnswerRe: need source code Pin
Jörgen Sigvardsson13-Aug-08 3:50
Jörgen Sigvardsson13-Aug-08 3:50 
GeneralRe: need source code Pin
Cedric Moonen13-Aug-08 3:52
Cedric Moonen13-Aug-08 3:52 
GeneralRe: need source code Pin
Jörgen Sigvardsson13-Aug-08 3:53
Jörgen Sigvardsson13-Aug-08 3:53 
GeneralRe: need source code Pin
Roger Stoltz13-Aug-08 4:01
Roger Stoltz13-Aug-08 4:01 
AnswerRe: need source code Pin
KarstenK13-Aug-08 4:01
mveKarstenK13-Aug-08 4:01 
QuestionHow To Use the ENTER Key from List Control in a Dialog Box Pin
Member 464885813-Aug-08 2:18
Member 464885813-Aug-08 2:18 

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.