Simple Class Snippets


17 January, 2013   

Showing very simple code using classes by C++ program

11 September, 2011   

This is a minimal apache ant build.xml file that will quickly do all the things that you will generally want to do, including compiling and building a simple Java project to class files and jars. It provides targets to compile the class files and jars and to run the main class. The fields marked "My Project Name Here" and "My Main...

C++ code snippet for function pointer to member function of class

Example source code for function pointer to member function of class

14 May, 2014   

Html Code example for hCalendar

To create the formatter paste this code into a new file and name it sfWidgetFormSchemaFormatterDefList.class.php. I saved it in /lib but it also makes sense to put it in /lib/form, depending on your personal preference.

04 December, 2011   

This snippet represents a simple deserializer of some basic Python types.

Factors a and b are within subjects while factor c is between subjects. The a*b interaction is statistically significant and we want to do tests of simple main effects on differences in a within each level of b.

13 June, 2011   

This C# code snippet inputs the principal and interest amounts and calculates simple interest.

23 February, 2012   

Here shown simple XML tags

20 July, 2015   

This example shows how to serialize a simple object by using the XmlSerializer.

14 February, 2011   

You'll need a of copy Simple Pie for the include right at the top here.

30 January, 2011   

Applying Even/Odd Classes

22 February, 2011   

Simple usage: var xmlLoader:LoadXMLUtil = new LoadXMLUtil("pathtoxml.xml"); xmlLoader.addEventListener(Event.COMPLETE, onLoaderComplete); private function onLoaderComplete(event:Event):void{ trace("Loaded XML: "); trace(xmlLoader.xml); }

13 April, 2011   

Reading a file to a string couldn't be easier than using the file_get_contents() function. Simple pass the name of the file (with path) and optional parameters

CSS code for Simple and Nice Blockquote Styling

16 February, 2011   

HTML5 Article Structure with hNews

HTML5 code for Article Structure with hNews

Visual Basic code for inverting text with simple code. Very easy for all beginners. Easy to understand. Compatibility: VB 6 Author of the code: Ben - Ezrah Mansilla Declarations: Add two text box with default name One command with default name

C source code example for using struct tm, time_t, and time to create a simple clock