Hi I have a problem in my code, I have to count the variables used in an expression and when two or more variables are same it should be counted as 1. For example, a+ab = the total number of variable used: 2. The problem...
C++ @ DaniWeb - Hello everyone, I'm having a problem with an assignment that I'm not sure how to fix I'm getting the following error: accountdb.cpp:55: error: cannot convert std::stringto constchar* for argument 1 to int strcmp(constchar*,...
I have an object with acharArray; where the first 5 bytes(charin C++) are additional data and everything afterwards is astringmessage. So my question is how can I get astringfrom starting index 5 way up to the last byte? I know there is...
I'm encountering a weird issue where a constchar stringis getting corrupted after it's been initialised. In my .m file I have a pointer declared like so: const char *s; @implementation MyClass ... @end. It's initialised in -init , and...