351 Posted Topics
Re: I can't get access to a compiler atm but I will tell you no it don't work. | |
Re: Look at your line 60 and line 66. This is not the way you decrement the value. You should do this: [CODE] STAMINA = STAMINA - 2; [/CODE] or this: [CODE] STAMINA -= 2; [/CODE] | |
Re: Have you tried to compile? Your header file needs the statement "#endif" at the end. The inclusion detection system works in this way: [CODE] #ifndef FUNCTION_H #define FUNCTION_H // Put all your declaration here #endif [/CODE] The reason for doing this is to prevent the compiler from parsing the same … | |
Re: This is where the problem is: [CODE] for(int i=0; i<MAX; i--) cout<<Input_String<<endl; [/CODE] You initialize variable "i" to zero, decrement it in every step, until it is smaller than MAX (which is 100). So, "i" would go from 0 to -1, -2, -3, -4 until to some large negative number … | |
Re: Take away this line: [CODE] return displayGrade; [/CODE] As for the loop, it will keep on prompting you for the next score, until you enter -1 then it will come out of the loop. | |
Re: [QUOTE=Se7Olutionyg;717193]I don't know how to write the divide by zero function, and I don't know why the void function to display the instruction does not run too, [/QUOTE] Anything divide by zero will become infinity. So you need to cater for the case whereby the operator is "/" and the … | |
Re: Welcome to Daniweb! So u wanna build transformers? It's always good to have dreams :) | |
Re: You need to seek help from a counsellor, not in Daniweb where we communicate better with computers than with humans. | |
Re: [QUOTE=mybluehair2;716694]I've already read that, and it tells me just the things I dont really need to know right now. It doesn't give me a good example of displaying text, and it doesn't say anything about if statements. I need to be able to say: if (money > 0) then say … | |
Re: You can post whatever queries you have here, there are many helpful people in Daniweb! | |
Re: Hi welcome to Daniweb! I had learnt all those languages you mentioned except modular-2. | |
Re: I saw a very similar post with a very similar question here just now. Classmates? :P Anyway, the rules here is that you need to try out yourself, show us what you have done, what problems you encountered, and then we will help you to solve the problems. Don't believe … | |
Re: I did not go through the entire post, but I notice your myfunction.h has something wrong. The first few lines of declaration did not state the return type and the required parameters. Also, the inclusion detection should be at the very beginning of the file. | |
Re: It would be good if you can attend some kind of open house or course preview talk at those university to find out more about the prerequisite. Most Comp Sci courses do not need prior programming knowledge, but as you go along there will be some application of mathematics such … | |
Re: It is a place for people to find IT related jobs because those technology companies will be having their booths there for recruitment purposes. | |
The End.