Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Successful Debug Build, but got Errors during Release Build Pin
PankajB4-Apr-09 0:57
PankajB4-Apr-09 0:57 
GeneralRe: Successful Debug Build, but got Errors during Release Build Pin
PankajB4-Apr-09 2:44
PankajB4-Apr-09 2:44 
GeneralRe: Successful Debug Build, but got Errors during Release Build Pin
Joseph Marzbani4-Apr-09 4:02
Joseph Marzbani4-Apr-09 4:02 
QuestionIs it possible to get individual properties from a specific Flag value in VC++? Pin
Joseph Marzbani3-Apr-09 20:55
Joseph Marzbani3-Apr-09 20:55 
QuestionHelp Please!!! Pin
angel.monkey3-Apr-09 20:54
angel.monkey3-Apr-09 20:54 
AnswerRe: Help Please!!! Pin
Joseph Marzbani3-Apr-09 21:03
Joseph Marzbani3-Apr-09 21:03 
GeneralRe: Help Please!!! Pin
angel.monkey3-Apr-09 21:14
angel.monkey3-Apr-09 21:14 
AnswerRe: Help Please!!! - Warning, long reply! Pin
Iain Clarke, Warrior Programmer3-Apr-09 23:16
Iain Clarke, Warrior Programmer3-Apr-09 23:16 
Jusef has already coverted many points in your software. I'll point to just one:
{
   int main();


I can easily imagine making this sort of silly mistake when writing the code - I've made soft daft ones in the last few days. But it really should not need external assistance to solve this problem.

OK, two problems:
switch(choice)
case 1:


If your teacher is in any way competent, you will have been shown working programs you can look to see how to start a console program - or to define any function at all. Similarly, if you haven't seen a switch statement before you probably don't need to use it to solve your homework.

If you've done past assignments, surely you must have handed them in for assessment. You do say you got lost - but didn't your teacher show you the way? Or couldn't you ask one of your fellow students to help you?

The compiler itself will help you, as long as your program makes a small amount of sense. It can produce very helpful error messages. At the moment it probably just says: ERROR1: HUH?

I think most people could go through your program and give you a working version but:
a/ This would not help you learn - only your efforts and one to one time with your teacher or a student getting better marks will. Bribe them with a beer for their time! (Or some other not-really-a-bribe-but-shows-thanks thing)

b/ If you've been that badly lost that you can't even start a function in your previous assignments, and you suddenly produced a working program, I bet your teacger would want to know why. Your teacher can use the internet too... And I bet you found codeproject somewhere...

c/ If you were lucky, and it helped you pass without fully understanding what you were doing, I'd feel sorry for any future employer relying on your programming skills. I know you're doing a math degree - and I also know a lot of modern math relies on software. This is a skill you need. You don't need to be expert - you do need to be competent.

4/ Buy a basic book! Go to the library and borrow one... Visit a friend and sneak a peek at theirs!

5/ If your teacher is so bad that all of the class is at this level by the end of the course, and they're unapproachable to help, then speak to their boss.

6/ Lastly, and you won't like this... If you've spent a semester going to class, and you really need help with this program, and the teacher has been slightly OK, then maybe you *should* fail this class. When you join the real world, people will expect you to deliver, or in the end you starve.
I can see three possibilities:
a) You can redo this class another time, but this time you'll pay more attention to the examples and code shown in the early days of the class, so you will get great marks in your class and move on with some humility
b) You doing pretty well in your other classes. You can't resit this class, but it's only a minor part of your overall degree. Move on, and work extra hard in other areas of your study. Don't mention programming skills on your CV.
c) You are doing badly in your other classes, and failing this will be enough to tip your grades over the edge. This will not come as a surprise to you. In which case, why on earth are you leaving it till this late in your course to ask for help, and why not someone closer?


I'm sorry if this ended up a bit rant-y, but this forum isn't really the place to get your answers - you need someone a lot more local and interactive - someone who can use pend and paper and refer to the material you should have already learnt.


I wish you success though!


Iain.


ps, If it makes you feel better, I still remember thinking that:
switch (Planet)
{
case "Earth":
   planetnum = 3;
   break;

should have worked! I've long since worked out why not, but we all started once!


Modified: Added harsh point 6.

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

AnswerRe: Help Please!!! Pin
Rajesh R Subramanian3-Apr-09 23:22
professionalRajesh R Subramanian3-Apr-09 23:22 
GeneralRe: Help Please!!! Pin
Iain Clarke, Warrior Programmer3-Apr-09 23:28
Iain Clarke, Warrior Programmer3-Apr-09 23:28 
GeneralRe: Help Please!!! Pin
Rajesh R Subramanian3-Apr-09 23:35
professionalRajesh R Subramanian3-Apr-09 23:35 
GeneralOT - Re: Help Please!!! Pin
Iain Clarke, Warrior Programmer3-Apr-09 23:47
Iain Clarke, Warrior Programmer3-Apr-09 23:47 
GeneralRe: OT - Re: Help Please!!! Pin
Rajesh R Subramanian4-Apr-09 0:45
professionalRajesh R Subramanian4-Apr-09 0:45 
GeneralRe: OT - Re: Help Please!!! [modified] Pin
angel.monkey4-Apr-09 10:06
angel.monkey4-Apr-09 10:06 
GeneralRe: OT - Re: Help Please!!! Pin
Iain Clarke, Warrior Programmer5-Apr-09 22:31
Iain Clarke, Warrior Programmer5-Apr-09 22:31 
GeneralRe: Help Please!!! [modified] Pin
Sauce!4-Apr-09 17:00
Sauce!4-Apr-09 17:00 
GeneralRe: Help Please!!! Pin
Rajesh R Subramanian5-Apr-09 2:49
professionalRajesh R Subramanian5-Apr-09 2:49 
QuestionUSB Drive Pin
MsmVc3-Apr-09 18:23
MsmVc3-Apr-09 18:23 
AnswerRe: USB Drive Pin
Iain Clarke, Warrior Programmer3-Apr-09 23:29
Iain Clarke, Warrior Programmer3-Apr-09 23:29 
QuestionHow can i call a function with a CString variable ? Pin
SNArruda3-Apr-09 16:57
SNArruda3-Apr-09 16:57 
AnswerRe: How can i call a function with a CString variable ? Pin
Divyang Mithaiwala3-Apr-09 21:16
Divyang Mithaiwala3-Apr-09 21:16 
AnswerRe: How can i call a function with a CString variable ? Pin
Iain Clarke, Warrior Programmer3-Apr-09 23:41
Iain Clarke, Warrior Programmer3-Apr-09 23:41 
Question_beginthreadex() conversion error Pin
Killiconn3-Apr-09 15:42
Killiconn3-Apr-09 15:42 
AnswerRe: _beginthreadex() conversion error Pin
sashoalm4-Apr-09 2:17
sashoalm4-Apr-09 2:17 
AnswerRe: _beginthreadex() conversion error Pin
Stuart Dootson4-Apr-09 2:48
professionalStuart Dootson4-Apr-09 2:48 

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.