351 Posted Topics

Member Avatar for Code Shark

I can't get access to a compiler atm but I will tell you no it don't work.

Member Avatar for Salem
0
98
Member Avatar for Balinor

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]

Member Avatar for Denniz
0
86
Member Avatar for jazzyangelz

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 …

Member Avatar for Denniz
0
143
Member Avatar for techman23
Member Avatar for nishant52
Member Avatar for jrcharbonneau
Member Avatar for robgeek

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 …

Member Avatar for robgeek
0
134
Member Avatar for Se7Olutionyg

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.

Member Avatar for Denniz
0
106
Member Avatar for Se7Olutionyg

[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 …

Member Avatar for Denniz
0
271
Member Avatar for wickedsunny
Member Avatar for vivek_web
Member Avatar for LordSlyDante

Welcome to Daniweb! So u wanna build transformers? It's always good to have dreams :)

Member Avatar for LordSlyDante
0
159
Member Avatar for kattastic

You need to seek help from a counsellor, not in Daniweb where we communicate better with computers than with humans.

Member Avatar for ZZucker
0
159
Member Avatar for mybluehair2

[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 …

Member Avatar for marco93
0
117
Member Avatar for efr100

You can post whatever queries you have here, there are many helpful people in Daniweb!

Member Avatar for sidatra79
0
78
Member Avatar for laurencn106
Member Avatar for kimanisml
Member Avatar for bondingmuc
Member Avatar for ddanbe

Hi welcome to Daniweb! I had learnt all those languages you mentioned except modular-2.

Member Avatar for ddanbe
0
56
Member Avatar for o`nyi
Member Avatar for jazzyangelz

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 …

Member Avatar for Denniz
0
88
Member Avatar for MylesDBaker

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.

Member Avatar for Denniz
0
246
Member Avatar for mo16

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 …

Member Avatar for Denniz
0
139
Member Avatar for riconeill
Member Avatar for idontexist
Member Avatar for ndumbo

Welcome to Daniweb! U can post your queries in the java section.

Member Avatar for Denniz
0
18
Member Avatar for dasol
Member Avatar for jbennet
0
59
Member Avatar for Se7Olutionyg
Member Avatar for m_mouj

It is a place for people to find IT related jobs because those technology companies will be having their booths there for recruitment purposes.

Member Avatar for Denniz
0
110
Member Avatar for Shenaya

The End.