You have undefined behaviour, because b is not long enough for "swapnil"+"kaushal" - total 15 characters, but b is only 10 chars long. So...
It doesn't necessarily follow that stuff that has to be in different windows has to be in different source files. Form design and software design...
The point of header files is to share definitions between multiple source files. So if you only have one source file there's no point in having a...
Just looking at the code doesn't give any clue about your intent; could you describe step by step what you think the program does and why? Do you...
Is it?????? I've heard of A for horses, B for mutton, C for yourself etc.
Cos it's not my homework. You solve it because you want the credit, or you don't bother if you want to fail. There's no point you passing off...
Yeah but what is going into the if. If (what) - so what's "what" is what I mean, what?
In that case there are more: A - obviously a word in its own right, or of course 'ay for 'orses. Dee - the river Ee lad, as they say in...
> is this right ? Well, does it work as you want? If not then it's not right. If it does then it is right. Have you tried compiling it? Did...
It's down to how you interpret the numbers entered. Half past six would be entered as two numbers: 6 and 30. You don't have to use 24 hour clock...
Try working it out yourself on paper first. Decide on a few start and stop times and work out the fees for each block. After you've done a few...
What about lea - is there a variant of that which will have the desired effect?
How far have you got and where are you stuck? We won't write the code for you, but we will help.
I don't know - anyone else got any ideas? Won't div ax throw an exception if ax=0? Ideally ax/ax should always equal 1, but 0/0 is mathematically...
Jesus said "I came that you may have life and life in all its fullness". Also that life is about knowing the Father. There's nothing better than...
Well done! It's much better if you can figure stuff out for yourself than if you need to be shown it.
Huh? If you've got a running program then you must have an exe file. When you compile on ANY platform the result is an object file....
Because that will output an emp1, i.e. the whole object, not the int we're interested in.
You have undefined behaviour because sub[5] doesn't exist. Limit i to the range 0..4 and you should get consistent behaviour.
Separate names with a comma.