to generate a number ranging from 10 to 20 (including bounds).
In the above example you may also be correct (because you didn't mentionate of including both of the bounds), but in your original post, (19-0) is wrong, because rand() % (19-0) ranges from 0 to 18 (bounds included).
-- Carlo the Nitpick.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
Silent. Let him use it. This is not a bug. Because it won't crash his program nor he will ever come to know it. It looses both the qualification of being a bug. So it cannot be booked. lol, let me change it
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
I am updating to the database, the values read from the GUI.In this process when i==3,in that particular location in my database(row==264),it is skipping without updating and is moving to the next row.
class EmpTransAdd : public EmpTrans
class EmpTransChange : public EmpTrans
class EmpTransDelete : public EmpTrans
When I compile and link this source I get the error,
when I remove the virtaul function from the Apply function, everything works fine.
What is the problem?
Do I need to take out the other classes from the source? or to include them inside the ifdef?
You don't provide a body for the EmpTrans::Open(), EmpTrans::Close(), EmpTrans::Apply functions (well at least you didn't show us). You still need to provide a body for those functions in the base class, unless they are pure virtual functions (e.g. virtual void Apply() = 0;), in which case it is mandatory that each child classes implement this function.
i am developing a worm scanner..
i have to choose the directories from Folder Browser Dialog..
when i does that i will get the directory C:\NVIDIA\Win2KXP
but i need to convert it to C:\\NVIDIA\\Win2KXP so that i can get the file names in the that directory using ListFiles......
since the symbol \ i could not put \ between "" and ''
I am trying to write a simple callback function for my own purpose, not to pass into Windows API as callback arguments. What I did below gets access violation. Where did I do wrong in the below code? Thanks.