On the following code I get an error for the TEST constructor, saying:
"cannot construct base class 'ELEMENT'"
WHY!?????
my.h file (part):
-----------------------------------------------------------
class ELEMENT
{
public:
string element_name;
string element_data...
I am using a wostream for outputting data to a file, minor problem, the wide-outpt-stream doe not output as wide...
the output is ANSI, ASCII or whatever you want to call it,
I runned it in debug, and found the characters are all unicode before I send the to the stream (<<) and I add no ascii...
Hi,
I have a two part C++ question:
1, I am using fstream to output stuff to a file, however, fstream appends, not clear the opened files content first, I can't find a function which does this, any thoughts?
2, I must use unicode, but as it seems the fstream doesn't use unicode, can this be...
Why is it not possible to make a declaration with an XML schema dat declares an element with maxvalue=720 and minvalue=-720 and an attribute called Unit (Degree, mm, aso)
please tell me, because XML drives me nuts with all the things it can't do, doesn't anyone have a good reference for me???
I want to achieve the following:
<xs:attribute name="Unit" >
<xs:restriction base="xs:string">
<xs:enumeration value="Degree"/>
<xs:enumeration value="Inch"/>
</xs:restriction>
</xs:attribute>
this is not correct, but w3schools says restrictions...
I have just started using XML, but among many things I have to do the following:
Within my xml file I have the need for a name tag that can exist in two ways:
1. <Name>John Doe</Name>
2. <Name>
<First>John</First>
<Last>Doe</Last>
</Name>
It must be one or the other, how can I...
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.