Click here to Skip to main content
14,773,751 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Large project how to seprate definition and declaration? Pin
leon de boer14-Jun-16 11:01
Memberleon de boer14-Jun-16 11:01 
GeneralRe: Large project how to seprate definition and declaration? Pin
Hassan Syed114-Jun-16 21:34
MemberHassan Syed114-Jun-16 21:34 
GeneralRe: Large project how to seprate definition and declaration? Pin
leon de boer15-Jun-16 4:53
Memberleon de boer15-Jun-16 4:53 
GeneralRe: Large project how to seprate definition and declaration? Pin
Hassan Syed115-Jun-16 5:32
MemberHassan Syed115-Jun-16 5:32 
GeneralRe: Large project how to seprate definition and declaration? Pin
leon de boer15-Jun-16 7:21
Memberleon de boer15-Jun-16 7:21 
GeneralRe: Large project how to seprate definition and declaration? Pin
Hassan Syed115-Jun-16 8:01
MemberHassan Syed115-Jun-16 8:01 
GeneralRe: Large project how to seprate definition and declaration? Pin
leon de boer15-Jun-16 9:04
Memberleon de boer15-Jun-16 9:04 
GeneralRe: Large project how to seprate definition and declaration? Pin
Hassan Syed115-Jun-16 9:48
MemberHassan Syed115-Jun-16 9:48 
You are right. i am completely new and it was my class assignment number 1. I finsihed it and submitted it already but then I came to know professionals never write everything in main that's why i decided to search in this direction. By your improved code I can see a boundery wall is set for wrong inputs. Which i wanted to set in my project as well but was not sure how to set those powerful boundaries as you set. I want to excel in this game of programming, I am not an extera ordinary student but i will keep on trying it day by day Smile | :)

Following are few things I extracted from ur code which I am going to follow for the next time code or will at least try my best to do similar things. Correct me if I observed wrong. I did not follow the following things in my code. If I missed any point then point me that as well.

1) You are using braces by giving one space and starting 1st curly brace in-front of the statements like while and if.

2) All variable you wrote in small letters and to make them more clear u out _ sign to link them.

3) Function name 1st character and then the 2nd meaning name of function is capital.

3) 1 step indentation on each step involving in some kind of computation.

4) You used unsigned when you feel that value are in +ve.

modified 15-Jun-16 17:27pm.

GeneralRe: Large project how to seprate definition and declaration? Pin
leon de boer15-Jun-16 21:00
Memberleon de boer15-Jun-16 21:00 
QuestionGlut errors with Mingw on windows Pin
Ratul Thakur11-Jun-16 8:03
MemberRatul Thakur11-Jun-16 8:03 
AnswerRe: Glut errors with Mingw on windows Pin
Ratul Thakur11-Jun-16 21:02
MemberRatul Thakur11-Jun-16 21:02 
GeneralRe: Glut errors with Mingw on windows Pin
leon de boer11-Jun-16 23:59
Memberleon de boer11-Jun-16 23:59 
GeneralRe: Glut errors with Mingw on windows Pin
Ratul Thakur12-Jun-16 0:59
MemberRatul Thakur12-Jun-16 0:59 
QuestionWhy no boundry condition set for C++ Pin
Hassan Syed111-Jun-16 5:52
MemberHassan Syed111-Jun-16 5:52 
AnswerRe: Why no boundry condition set for C++ PinPopular
Richard MacCutchan11-Jun-16 6:08
mveRichard MacCutchan11-Jun-16 6:08 
GeneralRe: Why no boundry condition set for C++ Pin
Hassan Syed111-Jun-16 6:27
MemberHassan Syed111-Jun-16 6:27 
AnswerRe: Why no boundry condition set for C++ Pin
Patrice T11-Jun-16 7:02
mvePatrice T11-Jun-16 7:02 
AnswerRe: Why no boundry condition set for C++ Pin
leon de boer11-Jun-16 23:53
Memberleon de boer11-Jun-16 23:53 
AnswerRe: Why no boundry condition set for C++ Pin
enhzflep14-Jun-16 2:34
Memberenhzflep14-Jun-16 2:34 
AnswerRe: Why no boundry condition set for C++ Pin
Maximilien14-Jun-16 11:25
MemberMaximilien14-Jun-16 11:25 
QuestionConverting Fortran source to C++ Source Pin
manoharbalu9-Jun-16 2:58
Membermanoharbalu9-Jun-16 2:58 
AnswerRe: Converting Fortran source to C++ Source Pin
Jochen Arndt9-Jun-16 3:30
professionalJochen Arndt9-Jun-16 3:30 
GeneralRe: Converting Fortran source to C++ Source Pin
manoharbalu9-Jun-16 3:52
Membermanoharbalu9-Jun-16 3:52 
GeneralRe: Converting Fortran source to C++ Source Pin
Jochen Arndt9-Jun-16 4:27
professionalJochen Arndt9-Jun-16 4:27 
GeneralRe: Converting Fortran source to C++ Source Pin
manoharbalu9-Jun-16 4:36
Membermanoharbalu9-Jun-16 4:36 

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.