Click here to Skip to main content
15,885,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Instaniating objects of unknown class definitions Pin
Cedric Moonen23-Apr-06 20:38
Cedric Moonen23-Apr-06 20:38 
AnswerRe: Instaniating objects of unknown class definitions Pin
Steve Echols23-Apr-06 20:55
Steve Echols23-Apr-06 20:55 
QuestionNative Applicaion Pin
rajeevktripathi23-Apr-06 19:49
rajeevktripathi23-Apr-06 19:49 
AnswerRe: Native Applicaion Pin
includeh1023-Apr-06 20:40
includeh1023-Apr-06 20:40 
GeneralRe: Native Applicaion Pin
Stephen Hewitt23-Apr-06 21:36
Stephen Hewitt23-Apr-06 21:36 
AnswerRe: Native Applicaion Pin
Stephen Hewitt23-Apr-06 21:41
Stephen Hewitt23-Apr-06 21:41 
QuestionHelp me!!! Pin
sieucauthu23-Apr-06 19:21
sieucauthu23-Apr-06 19:21 
AnswerRe: Help me!!! Pin
Manish K. Agarwal23-Apr-06 19:37
Manish K. Agarwal23-Apr-06 19:37 
simply write -

int main()
{
long a,b;
long c = 0;
cout << "1st number : ";
cin >> a;
cout << "2nd number : ";
cin >> b;
for (int i = a; i <= b; ++i)
c += i;
cout << c;
return 0;
}

your result() function is wrong which always returns zero.

Manish Agarwal
manish.k.agarwal @ gmail DOT com
GeneralRe: Help me!!! Pin
sieucauthu23-Apr-06 19:46
sieucauthu23-Apr-06 19:46 
AnswerRe: Help me!!! Pin
Le Thanh Cong23-Apr-06 20:21
Le Thanh Cong23-Apr-06 20:21 
AnswerRe: Help me!!! Pin
Michael Dunn23-Apr-06 20:39
sitebuilderMichael Dunn23-Apr-06 20:39 
AnswerRe: Help me!!! Pin
Amar Sutar23-Apr-06 20:42
Amar Sutar23-Apr-06 20:42 
AnswerRe: Help me!!! Pin
Surivevoli24-Apr-06 8:50
Surivevoli24-Apr-06 8:50 
GeneralRe: Help me!!! Pin
sieucauthu27-Apr-06 15:50
sieucauthu27-Apr-06 15:50 
QuestionBackColor Pin
Bob X23-Apr-06 16:25
Bob X23-Apr-06 16:25 
AnswerRe: BackColor Pin
Steve Echols23-Apr-06 20:09
Steve Echols23-Apr-06 20:09 
QuestionRe: BackColor Pin
Bob X24-Apr-06 14:45
Bob X24-Apr-06 14:45 
AnswerRe: BackColor Pin
Steve Echols24-Apr-06 18:46
Steve Echols24-Apr-06 18:46 
GeneralRe: BackColor Pin
Bob X25-Apr-06 9:55
Bob X25-Apr-06 9:55 
QuestionDouble Click On File Opens App but not the Child window Pin
tbrake23-Apr-06 10:47
tbrake23-Apr-06 10:47 
AnswerRe: Double Click On File Opens App but not the Child window Pin
includeh1023-Apr-06 19:29
includeh1023-Apr-06 19:29 
Questionproblem regarding making of setup file Pin
simanto_iem23-Apr-06 10:27
simanto_iem23-Apr-06 10:27 
AnswerRe: problem regarding making of setup file Pin
ThatsAlok23-Apr-06 23:49
ThatsAlok23-Apr-06 23:49 
QuestionGetting the attributes of special items Pin
Atom23-Apr-06 9:45
Atom23-Apr-06 9:45 
AnswerRe: Getting the attributes of special items Pin
YaronNir23-Apr-06 22:13
YaronNir23-Apr-06 22:13 

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.