mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
8529d70f4a
--HG-- rename : docs/htmlify/CMakeLists.txt => tools/htmlify/CMakeLists.txt rename : docs/htmlify/htmlify.cpp => tools/htmlify/htmlify.cpp rename : docs/htmlify/to_xml.cpp => tools/htmlify/to_xml.cpp rename : docs/htmlify/to_xml.h => tools/htmlify/to_xml.h rename : docs/htmlify/to_xml_example/bigminus.gif => tools/htmlify/to_xml_example/bigminus.gif rename : docs/htmlify/to_xml_example/bigplus.gif => tools/htmlify/to_xml_example/bigplus.gif rename : docs/htmlify/to_xml_example/example.xml => tools/htmlify/to_xml_example/example.xml rename : docs/htmlify/to_xml_example/minus.gif => tools/htmlify/to_xml_example/minus.gif rename : docs/htmlify/to_xml_example/output.xml => tools/htmlify/to_xml_example/output.xml rename : docs/htmlify/to_xml_example/plus.gif => tools/htmlify/to_xml_example/plus.gif rename : docs/htmlify/to_xml_example/stylesheet.xsl => tools/htmlify/to_xml_example/stylesheet.xsl rename : docs/htmlify/to_xml_example/test.cpp => tools/htmlify/to_xml_example/test.cpp extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404104
79 lines
1.4 KiB
C++
79 lines
1.4 KiB
C++
#include <iostream>
|
|
|
|
// ----------------------------------------------------------------------------------------
|
|
|
|
using namespace std;
|
|
|
|
// ----------------------------------------------------------------------------------------
|
|
|
|
class test
|
|
{
|
|
/*!
|
|
WHAT THIS OBJECT REPRESENTS
|
|
This is a simple test class that doesn't do anything
|
|
!*/
|
|
|
|
public:
|
|
|
|
typedef int type;
|
|
|
|
test ();
|
|
/*!
|
|
ensures
|
|
- constructs a test object
|
|
!*/
|
|
|
|
void print () const;
|
|
/*!
|
|
ensures
|
|
- prints a message to the screen
|
|
!*/
|
|
|
|
};
|
|
|
|
// ----------------------------------------------------------------------------------------
|
|
|
|
test::test() {}
|
|
|
|
void test::print() const
|
|
{
|
|
cout << "A message!" << endl;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------------------
|
|
|
|
int add_numbers (
|
|
int a,
|
|
int b
|
|
)
|
|
/*!
|
|
ensures
|
|
- returns a + b
|
|
!*/
|
|
{
|
|
return a + b;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------------------
|
|
|
|
void a_function (
|
|
)
|
|
/*!P
|
|
This is a function which won't show up in the output of htmlify --to-xml
|
|
because of the presence of the P in the above /*!P above.
|
|
!*/
|
|
{
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------------------
|
|
|
|
int main()
|
|
{
|
|
test a;
|
|
a.print();
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------------------
|
|
|
|
|