Hi,
I want to be able to test if a string is numeric. Kind of like the isNumeric() function in VB6.
Has anyone got any ideas how to go about this? Ive tried using isdigit() and isalnum() but both require an int as a parameter and i want to test a string.
Thanks alot
PS It has to be portable...
Thanks guys, most informative as ever!
CRule(vRules[i]) is the constructor of the object i am creating and as you can see it is only being called in the vector and as a result I should hopefully not have to do anything about it.
Smart pointers? Does anyone have any good links?
Thanks
Hi,
Im concerened with memory leaks when deleting objects from vectors i.e.
I am adding objects to the vector like such
<code>
for(i = 0; i < vRules.size(); i++)
{
_vRules.push_back(CRule(vRules[i]));
}
</code>
What would be the correct way to delete the object in that vector? Im...
Hmm for some reason I seem to have double posted.
ArkM:
Believe it or not it was VC++6! lol
GCC seems to bring up loads of warnings about things such as comparisons between signed and unsigned int's so on the whole seems a lot strickter (which can only be a good thing)
Rgrds
This problem is fixed, basically I ommitted it from the above example but i preceded the class definition with static i.e.
static CXMLParser
{
and that was the cause. For thos of you who may be interested.
Rgrds
This problem is fixed, basically I ommitted it from the above example but i preceded the class definition with static i.e.
static CXMLParser
{
and that was the cause. For thos of you who may be interested.
Rgrds
Hi all,
Im having a problem with the stricmp() function. Ive been using it in VC6 and it is recognised, however I am getting this error under GCC.
error: `stricmp` undeclared (first use this function)
Does this just mean that the stricmp function does not exist in the unix version of the...
Haha no its perfectly fine with the c++ it just doesnt seem to like my use of static.
Any thought from someone? Come on guys im desperate and I dont want to revert back to the non-static design as this saves mem because quite a few objects make use of this functionality.
Thanks
Hi all,
Im having trouble compiling an application which compiles fine under VC6 but not with GCC.
The error im getting is:
Xml.h:34: error: `static' can only be specified for objects and functions
make: *** [main.o] Error 1
The offending piece of code is:
class CXMLParser
{
public:
static...
Hiya,
Im writing an application which is intended for the embedded market and as a result have quite severe memory constraint with which to consider.
Does anyone know the best way to monitor the memory usage of the application accurately.
Other than looking at the windows task manager which...
Hi guys thanks for the replies.
Im busy writing a fuzzy logic based inference engine and needed a way to represent some rules which were recursive in nature as objects within the system.
When i say recursive I mean these rules obviously consist of antecedents and consequents. Both of which can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.