Click here to Skip to main content
15,846,571 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Once Again Assert in Release and I am lost Pin
ForNow8-Sep-17 11:09
ForNow8-Sep-17 11:09 
GeneralRe: Once Again Assert in Release and I am lost Pin
Rick York8-Sep-17 13:54
mveRick York8-Sep-17 13:54 
GeneralRe: Once Again Assert in Release and I am lost Pin
leon de boer8-Sep-17 19:07
leon de boer8-Sep-17 19:07 
GeneralRe: Once Again Assert in Release and I am lost Pin
ForNow9-Sep-17 16:03
ForNow9-Sep-17 16:03 
GeneralRe: Once Again Assert in Release and I am lost I finally figured out the bug .. My reflections Pin
ForNow10-Sep-17 13:50
ForNow10-Sep-17 13:50 
GeneralDeclaration Confuse Pin
Mr. Anup Roy31-Aug-17 7:38
professionalMr. Anup Roy31-Aug-17 7:38 
GeneralRe: Declaration Confuse Pin
leon de boer31-Aug-17 9:37
leon de boer31-Aug-17 9:37 
GeneralSum Multiple Value At a Time Pin
Mr. Anup Roy30-Aug-17 7:18
professionalMr. Anup Roy30-Aug-17 7:18 
Hi,
I am a beginner in C++. Today my first program is summed two value.
Question: Write a program that inputs the number of hours that an employee works and the employee wage. Then display the employee gross pay(Be sure promote to input).
I have a question here I input two value and calculate their result and display, but I want to input more than two value. How to input more than two value and calculate them?
#include<iostream>
using namespace std;
int main()
{
    int i, m, j, n, k, l;
    cout <<"Enter Your Work Hour:.\n";
    cin >>i >>m;
    cout << "Enter Your Salary:.\n";
    cin >> k >> n;
    j = i+m;
    l = k+n;
    cout << "Your Total Work Hour is:" << j <<endl;
    cout << "Your Total Salary is:" << l <<endl;
    return 0;
}
C++


GeneralRe: Sum Multiple Value At a Time Pin
jeron130-Aug-17 9:10
jeron130-Aug-17 9:10 
GeneralRe: Sum Multiple Value At a Time Pin
Mr. Anup Roy31-Aug-17 5:25
professionalMr. Anup Roy31-Aug-17 5:25 
GeneralRe: Sum Multiple Value At a Time Pin
jeron131-Aug-17 6:38
jeron131-Aug-17 6:38 
SuggestionRe: Sum Multiple Value At a Time Pin
David Crow30-Aug-17 11:31
David Crow30-Aug-17 11:31 
GeneralRe: Sum Multiple Value At a Time Pin
Mr. Anup Roy31-Aug-17 5:27
professionalMr. Anup Roy31-Aug-17 5:27 
QuestionCWinThread Termination Pin
Lakshminaryana A29-Aug-17 19:38
Lakshminaryana A29-Aug-17 19:38 
QuestionRe: CWinThread Termination Pin
Richard MacCutchan29-Aug-17 22:02
mveRichard MacCutchan29-Aug-17 22:02 
AnswerRe: CWinThread Termination Pin
Jochen Arndt29-Aug-17 22:27
professionalJochen Arndt29-Aug-17 22:27 
GeneralRe: CWinThread Termination Pin
Lakshminaryana A30-Aug-17 0:17
Lakshminaryana A30-Aug-17 0:17 
GeneralRe: CWinThread Termination Pin
Jochen Arndt30-Aug-17 0:33
professionalJochen Arndt30-Aug-17 0:33 
AnswerRe: CWinThread Termination Pin
Victor Nijegorodov30-Aug-17 6:54
Victor Nijegorodov30-Aug-17 6:54 
GeneralRe: CWinThread Termination Pin
David Crow30-Aug-17 11:27
David Crow30-Aug-17 11:27 
QuestionC: warning: excess elements in array initializer Pin
Member 1326117527-Aug-17 23:27
Member 1326117527-Aug-17 23:27 
AnswerRe: C: warning: excess elements in array initializer Pin
Jochen Arndt27-Aug-17 23:47
professionalJochen Arndt27-Aug-17 23:47 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard Andrew x6430-Aug-17 14:06
professionalRichard Andrew x6430-Aug-17 14:06 
GeneralRe: C: warning: excess elements in array initializer Pin
Jochen Arndt30-Aug-17 22:42
professionalJochen Arndt30-Aug-17 22:42 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard MacCutchan30-Aug-17 23:39
mveRichard MacCutchan30-Aug-17 23:39 

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.