Click here to Skip to main content
15,906,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is the difference between c++ structs and c# structs..? Pin
Mark Salsbery21-Oct-08 18:58
Mark Salsbery21-Oct-08 18:58 
QuestionRe: What is the difference between c++ structs and c# structs..? Pin
CPallini21-Oct-08 21:46
mveCPallini21-Oct-08 21:46 
AnswerRe: What is the difference between c++ structs and c# structs..? Pin
Iain Clarke, Warrior Programmer21-Oct-08 22:03
Iain Clarke, Warrior Programmer21-Oct-08 22:03 
GeneralRe: What is the difference between c++ structs and c# structs..? Pin
CPallini21-Oct-08 22:05
mveCPallini21-Oct-08 22:05 
QuestionHelp with code Pin
dtaylor0121-Oct-08 15:46
dtaylor0121-Oct-08 15:46 
AnswerRe: Help with code Pin
Naveen21-Oct-08 16:08
Naveen21-Oct-08 16:08 
AnswerRe: Help with code Pin
CPallini21-Oct-08 21:36
mveCPallini21-Oct-08 21:36 
AnswerRe: Help with code Pin
Iain Clarke, Warrior Programmer21-Oct-08 21:59
Iain Clarke, Warrior Programmer21-Oct-08 21:59 
You've been given answers to the problems I can see (and I didn't catch the ; first).

But you didn't need us to tell you about them - any compiler would have choked on your code, and treated you to a barrage of bad language. Those errors are your (sarcastic picky) friend. Apart from anything else, people who come here to help expect you to have done some of the heavy lifting already.

1/ "else"? whatdaya mean "else". There should be an if first!
would have given you a hint towards the ; Not an easy hint one though.

I personally dislike using the style for very trivial ifs, but many people insist on putting squiggly brackets round every if case, which will make it easier for you while starting. It also makes it harder to make an error when you add more than one line to and if case.

eg:
if (score > 85)
{
    grade = 'A';
}
else if (score >= 75)
{


2/ "end"? Never heard of it.
Easy hint.
QuestionLinker options Pin
freeheap21-Oct-08 9:08
freeheap21-Oct-08 9:08 
AnswerRe: Linker options Pin
Perspx21-Oct-08 9:51
Perspx21-Oct-08 9:51 
QuestionNeed help with mutex Pin
auralius manurung21-Oct-08 6:42
auralius manurung21-Oct-08 6:42 
AnswerRe: Need help with mutex Pin
Mark Salsbery21-Oct-08 6:56
Mark Salsbery21-Oct-08 6:56 
GeneralRe: Need help with mutex Pin
auralius manurung21-Oct-08 10:52
auralius manurung21-Oct-08 10:52 
GeneralRe: Need help with mutex Pin
Mark Salsbery21-Oct-08 11:06
Mark Salsbery21-Oct-08 11:06 
GeneralRe: Need help with mutex Pin
auralius manurung21-Oct-08 17:02
auralius manurung21-Oct-08 17:02 
GeneralRe: Need help with mutex [modified] Pin
Mark Salsbery21-Oct-08 18:17
Mark Salsbery21-Oct-08 18:17 
GeneralRe: Need help with mutex Pin
auralius manurung21-Oct-08 19:43
auralius manurung21-Oct-08 19:43 
GeneralRe: Need help with mutex Pin
Mark Salsbery21-Oct-08 20:06
Mark Salsbery21-Oct-08 20:06 
QuestionDWM - desktop windows manager Pin
Sarriss21-Oct-08 5:31
Sarriss21-Oct-08 5:31 
AnswerRe: DWM - desktop windows manager Pin
Richard Andrew x6421-Oct-08 5:43
professionalRichard Andrew x6421-Oct-08 5:43 
GeneralRe: DWM - desktop windows manager Pin
Sarriss21-Oct-08 5:52
Sarriss21-Oct-08 5:52 
GeneralRe: DWM - desktop windows manager Pin
Richard Andrew x6421-Oct-08 6:08
professionalRichard Andrew x6421-Oct-08 6:08 
GeneralRe: DWM - desktop windows manager Pin
Sarriss21-Oct-08 7:29
Sarriss21-Oct-08 7:29 
QuestionNeed help in C++ classes Pin
Quecumber25621-Oct-08 4:59
Quecumber25621-Oct-08 4:59 
AnswerRe: Need help in C++ classes Pin
Rajesh R Subramanian21-Oct-08 5:22
professionalRajesh R Subramanian21-Oct-08 5:22 

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.