Click here to Skip to main content
15,878,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Once Again Assert in Release and I am lost Pin
ForNow7-Sep-17 6:00
ForNow7-Sep-17 6:00 
GeneralRe: Once Again Assert in Release and I am lost Pin
leon de boer7-Sep-17 6:39
leon de boer7-Sep-17 6:39 
GeneralRe: Once Again Assert in Release and I am lost Pin
ForNow8-Sep-17 10:09
ForNow8-Sep-17 10:09 
GeneralRe: Once Again Assert in Release and I am lost Pin
Rick York8-Sep-17 12:54
mveRick York8-Sep-17 12:54 
GeneralRe: Once Again Assert in Release and I am lost Pin
leon de boer8-Sep-17 18:07
leon de boer8-Sep-17 18:07 
GeneralRe: Once Again Assert in Release and I am lost Pin
ForNow9-Sep-17 15:03
ForNow9-Sep-17 15:03 
GeneralRe: Once Again Assert in Release and I am lost I finally figured out the bug .. My reflections Pin
ForNow10-Sep-17 12:50
ForNow10-Sep-17 12:50 
GeneralDeclaration Confuse Pin
Mr. Anup Roy31-Aug-17 6:38
professionalMr. Anup Roy31-Aug-17 6:38 
Finally, I solved my previous problem Re: Sum Multiple Value At a Time - C / C++ / MFC Discussion Boards[^]
I have a question in declaration why we declare sum = 0; if we declare only sum; what happen, what is the meaning of 0 and please clarify the function sum = sum+workhours; I have to understand whole thing.

#include<iostream>
using namespace std;
int main ()
{

    int sum = 0;
    int workhours;
    int numemployee;
    int employeewage;
    int wage = 0;


    cout << "Enter Number of Employee:";
    cin >> numemployee;

    for(int i=0;i<numemployee;i++)
    {
        cout << "Enter Employee Works Hours " << (i+1) <<":";
        cin >> workhours;
        sum=sum+workhours;
        cout << "Enter Work/hrs Wage " << (i+1) <<":";
        cin >> employeewage;
        wage=wage+employeewage;

    }
    cout << "Total Work Hours: " << sum <<endl;
    cout << "Total Wage:" << wage <<endl;
    return 0;
}


modified 12-Sep-17 8:50am.

GeneralRe: Declaration Confuse Pin
leon de boer31-Aug-17 8:37
leon de boer31-Aug-17 8:37 
GeneralSum Multiple Value At a Time Pin
Mr. Anup Roy30-Aug-17 6:18
professionalMr. Anup Roy30-Aug-17 6:18 
GeneralRe: Sum Multiple Value At a Time Pin
jeron130-Aug-17 8:10
jeron130-Aug-17 8:10 
GeneralRe: Sum Multiple Value At a Time Pin
Mr. Anup Roy31-Aug-17 4:25
professionalMr. Anup Roy31-Aug-17 4:25 
GeneralRe: Sum Multiple Value At a Time Pin
jeron131-Aug-17 5:38
jeron131-Aug-17 5:38 
SuggestionRe: Sum Multiple Value At a Time Pin
David Crow30-Aug-17 10:31
David Crow30-Aug-17 10:31 
GeneralRe: Sum Multiple Value At a Time Pin
Mr. Anup Roy31-Aug-17 4:27
professionalMr. Anup Roy31-Aug-17 4:27 
QuestionCWinThread Termination Pin
Lakshminaryana A29-Aug-17 18:38
Lakshminaryana A29-Aug-17 18:38 
QuestionRe: CWinThread Termination Pin
Richard MacCutchan29-Aug-17 21:02
mveRichard MacCutchan29-Aug-17 21:02 
AnswerRe: CWinThread Termination Pin
Jochen Arndt29-Aug-17 21:27
professionalJochen Arndt29-Aug-17 21:27 
GeneralRe: CWinThread Termination Pin
Lakshminaryana A29-Aug-17 23:17
Lakshminaryana A29-Aug-17 23:17 
GeneralRe: CWinThread Termination Pin
Jochen Arndt29-Aug-17 23:33
professionalJochen Arndt29-Aug-17 23:33 
AnswerRe: CWinThread Termination Pin
Victor Nijegorodov30-Aug-17 5:54
Victor Nijegorodov30-Aug-17 5:54 
GeneralRe: CWinThread Termination Pin
David Crow30-Aug-17 10:27
David Crow30-Aug-17 10:27 
QuestionC: warning: excess elements in array initializer Pin
Member 1326117527-Aug-17 22:27
Member 1326117527-Aug-17 22:27 
AnswerRe: C: warning: excess elements in array initializer Pin
Jochen Arndt27-Aug-17 22:47
professionalJochen Arndt27-Aug-17 22:47 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard Andrew x6430-Aug-17 13:06
professionalRichard Andrew x6430-Aug-17 13:06 

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.