<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>C++</title>
		<link>http://coderslounge.forumotion.com/c-f12/-t1.htm</link>
		<description>All discussions concerning the programming language C++ go here.</description>
		<lastBuildDate>Wed, 20 May 2009 03:39:48 GMT</lastBuildDate>
		<ttl>10</ttl>
		<image>
			<title>C++</title>
			<url>http://i80.servimg.com/u/f80/14/50/41/52/untitl11.png</url>
			<link>http://coderslounge.forumotion.com/c-f12/-t1.htm</link>
		</image>
		<item>
			<title>Class Type for GML/Javascript &amp;quot;var&amp;quot; in C++</title>
			<link>http://coderslounge.forumotion.com/c-f12/class-type-for-gml-javascript-var-in-c-t19.htm</link>
			<dc:creator>inegames</dc:creator>
			<description>I've been thinking about a class for &quot;var&quot; as you might see in GML or Javascript&#058;

eg:

Code:var number;

number = 0;

number = string&#40;number&#41; + &quot; - Now a string&quot;;

(GML)



How could such a class be written in C++?



What I am thinking of right now, is something like:

Code:class var &#123;

public&#58;

 double d_value;

 int type;

 char* s_value;

 void set&#40;double tosetto_v&#41;

 &#123;

  type = 0;

   ...</description>
			<category>C++</category>
			<pubDate>Wed, 20 May 2009 03:27:02 GMT</pubDate>
			<comments>http://coderslounge.forumotion.com/c-f12/class-type-for-gml-javascript-var-in-c-t19.htm#153</comments>
			<guid>http://coderslounge.forumotion.com/c-f12/class-type-for-gml-javascript-var-in-c-t19.htm</guid>
		</item>
		<item>
			<title>Lets make our own string header :D</title>
			<link>http://coderslounge.forumotion.com/c-f12/lets-make-our-own-string-header-d-t20.htm</link>
			<dc:creator>inegames</dc:creator>
			<description>I had a strange Idea while posting that last topic, why don't we make our own string header, that is easy to use, for the sake of it?



Ideas:

+ String class

+ String set/get

+ String copy

+ String get length



Code:

Code:// strings2.h Header

class string &#123;

public&#58;

 char* contents;

 int length;

 void set&#40;char* t_char,int t_num&#41;

 &#123;

  length = t_num;

  for&#40;int i=0;i&lt;t_num;i++&#41;

  &#123;

   ...</description>
			<category>C++</category>
			<pubDate>Wed, 20 May 2009 03:39:48 GMT</pubDate>
			<comments>http://coderslounge.forumotion.com/c-f12/lets-make-our-own-string-header-d-t20.htm#154</comments>
			<guid>http://coderslounge.forumotion.com/c-f12/lets-make-our-own-string-header-d-t20.htm</guid>
		</item>
	</channel>
</rss>