<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>C++'s topics - tribe.net</title>
  <link rel="alternate" href="http://cpp.tribe.net/threads?format=atom" />
  <subtitle>Tribe.net. Local Connections</subtitle>
  <entry>
    <title>Best C++ Tutorials Site With Free Downloads</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/cd2af232-0fe5-42d3-843e-6d4e36711757" />
    <author>
      <name>Prashan</name>
    </author>
    <id>http://CPP.tribe.net/thread/cd2af232-0fe5-42d3-843e-6d4e36711757</id>
    <updated>2009-04-20T16:14:57Z</updated>
    <published>2009-04-20T16:14:57Z</published>
    <summary type="html">&lt;div&gt;A website designed to help learning C++. Understandable C++ programming tutorials, source code, tips and tricks.
&lt;br/&gt;Please Visit My New Website  http://www.prog2impress.com and Comment on it&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>Prashan</dc:creator>
    <dc:date>2009-04-20T16:14:57Z</dc:date>
  </entry>
  <entry>
    <title>a bit of fun: which is more metal -- C++ or Java?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/4b38ca44-9571-4a77-b9cc-18416a9bbe71" />
    <author>
      <name>John Michael</name>
    </author>
    <id>http://CPP.tribe.net/thread/4b38ca44-9571-4a77-b9cc-18416a9bbe71</id>
    <updated>2008-04-14T18:16:45Z</updated>
    <published>2007-05-24T22:05:45Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;Hello, all ...
&lt;br/&gt;
&lt;br/&gt;As frivolous an exercise as it may seem, I (developing the client piece of an app) am engaged with a comrade (developing the server piece of the same app) on this topic: Which language is more "metal" e.g. which language would the members of DethKlok (http://www.adultswim.com/shows/metal/) code in, should they choose to?
&lt;br/&gt;
&lt;br/&gt;Defending C++, I submit that it is more metal, due to the following:
&lt;br/&gt;
&lt;br/&gt;1. it has crosses in the name, and everyone knows that crosses are way more metal than coffee
&lt;br/&gt;2. C++ developers generally code more to the "metal" (or wire) than Java developers
&lt;br/&gt;3. C++ has DESTRUCTORs, which just sounds way more metal than Java's "finalize"
&lt;br/&gt;4. C++ can be brutal, with pointers to const members, changing vtables, etc.
&lt;br/&gt;
&lt;br/&gt;My coworker claims that Java is actually more metal, but I can't remember any of his reasons ;-)
&lt;br/&gt;
&lt;br/&gt;Thoughts?
&lt;br/&gt;
&lt;br/&gt;Regards,
&lt;br/&gt;
&lt;br/&gt;John
&lt;br/&gt;
&lt;br/&gt;Falling You - exploring the beauty of voice and sound
&lt;br/&gt;http://www.fallingyou.com
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator>John Michael</dc:creator>
    <dc:date>2007-05-24T22:05:45Z</dc:date>
  </entry>
  <entry>
    <title>grr -- anyone experienced in building Firefox plugins in C++, on Windows / OSX?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/2708fcda-fdda-456e-9c37-009ce562deea" />
    <author>
      <name>John Michael</name>
    </author>
    <id>http://CPP.tribe.net/thread/2708fcda-fdda-456e-9c37-009ce562deea</id>
    <updated>2008-01-11T09:29:26Z</updated>
    <published>2008-01-11T05:55:16Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;I feel so stupid.  I'm a professional C++ developer, and i've been doing it for years and years.  Now I have to write a Firefox plugin (NPAPI) in C++, which sounded easy enough, but after 2 days, I just can't get anything built.  The documentation on developer.mozilla.org is often very confusing, a lot of info doesn't seem to be there at all, and i'm growing more frustrated by the day.  This is _supposed_ to be easy.  Writing an ActiveX control using the ATL in C++ for IE is dead simple to me (i've done it literally dozens of times over the years), but writing a plugin in C++ for Firefox is proving to be quite a frustrating endeavor.  Searching the archives of the Mozilla dev-tech-plugins list only shows a few others complaining like I am, with no responses offered.  The samples in the mozilla tree don't seem to build much of anything, no DLLs / bundles are generated on Windows / Mac OSX (the two platforms I need to target the most) ... sigh.
&lt;br/&gt;
&lt;br/&gt;Can anyone point me to a code sample (hopefully simple for the obviously brain-dead developer I am) for a Firefox plugin that is known to build on Windows and OSX?  What steps did you take to build it, and how did you install it?
&lt;br/&gt;
&lt;br/&gt;Regards,
&lt;br/&gt;
&lt;br/&gt;John
&lt;br/&gt;
&lt;br/&gt;Falling You - exploring the beauty of voice and sound
&lt;br/&gt;http://www.fallingyou.com
&lt;br/&gt;
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 3 replies
		&lt;/div&gt;</summary>
    <dc:creator>John Michael</dc:creator>
    <dc:date>2008-01-11T05:55:16Z</dc:date>
  </entry>
  <entry>
    <title>My friend was asking about C++ in Linux</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/f1461323-b0c1-4db5-aad3-8324bcd0c48b" />
    <author>
      <name>cortelyou</name>
    </author>
    <id>http://CPP.tribe.net/thread/f1461323-b0c1-4db5-aad3-8324bcd0c48b</id>
    <updated>2007-12-01T00:21:53Z</updated>
    <published>2007-02-12T03:43:48Z</published>
    <summary type="html">&lt;div&gt;He was wanting to know what is the best IDE possibly similar to Microsoft's Visual Studio for doing Linux based C++ development?  I didn't have a good answer.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator>cortelyou</dc:creator>
    <dc:date>2007-02-12T03:43:48Z</dc:date>
  </entry>
  <entry>
    <title>how to code the deblur image algorithm</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/f993463b-d1bf-4156-be9c-8aa0dbd506f1" />
    <author>
      <name>Truc</name>
    </author>
    <id>http://CPP.tribe.net/thread/f993463b-d1bf-4156-be9c-8aa0dbd506f1</id>
    <updated>2007-11-21T10:57:27Z</updated>
    <published>2007-11-21T10:57:27Z</published>
    <summary type="html">&lt;div&gt;Hi All,
&lt;br/&gt;
&lt;br/&gt;I am studying about the deblur image algorithm to deblur a blurred image. It uses blind deconvolution algorithm.
&lt;br/&gt;
&lt;br/&gt;In the Matlab, deblur image is showing :
&lt;br/&gt;  1) Create Point Spread Function (PSF) that Gaussian is usually used.
&lt;br/&gt;  2) using Deconblind function = blind deconvolution to deconvolve blurred image with PSF.
&lt;br/&gt;............
&lt;br/&gt;
&lt;br/&gt;So i am in the process of translating my matlab code into C to run on the Parallel system.
&lt;br/&gt;I was wondering if there are C function available for these process (deconvblind).
&lt;br/&gt;
&lt;br/&gt;Anyone have any ideas on this ???
&lt;br/&gt;
&lt;br/&gt;Thank you,&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>Truc</dc:creator>
    <dc:date>2007-11-21T10:57:27Z</dc:date>
  </entry>
  <entry>
    <title>Question</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/ed5095de-6a8a-4e4d-9fef-7f7b73b293bd" />
    <author>
      <name>two</name>
    </author>
    <id>http://CPP.tribe.net/thread/ed5095de-6a8a-4e4d-9fef-7f7b73b293bd</id>
    <updated>2007-05-01T10:04:26Z</updated>
    <published>2006-07-20T03:39:05Z</published>
    <summary type="html">&lt;div&gt;For the programmers who prefer C++ over other PL. why do you prefer C++.
&lt;br/&gt;just curious&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 22 replies
		&lt;/div&gt;</summary>
    <dc:creator>two</dc:creator>
    <dc:date>2006-07-20T03:39:05Z</dc:date>
  </entry>
  <entry>
    <title>1099 issues</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/898b193c-a3d7-4262-8d6f-73fe9ab76791" />
    <author>
      <name>Liz</name>
    </author>
    <id>http://CPP.tribe.net/thread/898b193c-a3d7-4262-8d6f-73fe9ab76791</id>
    <updated>2007-04-27T23:14:44Z</updated>
    <published>2007-04-27T20:49:20Z</published>
    <summary type="html">&lt;div&gt;So how do you guys handle your taxes? I'm so confused!&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>Liz</dc:creator>
    <dc:date>2007-04-27T20:49:20Z</dc:date>
  </entry>
  <entry>
    <title>Please help ASAP / File I/O displaying graph</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/4a65d91e-e36b-457e-945d-e0882abd2cfc" />
    <author>
      <name>Meer</name>
    </author>
    <id>http://CPP.tribe.net/thread/4a65d91e-e36b-457e-945d-e0882abd2cfc</id>
    <updated>2007-04-03T21:33:54Z</updated>
    <published>2007-04-03T21:33:54Z</published>
    <summary type="html">&lt;div&gt;Please have a look at the following code:
&lt;br/&gt;
&lt;br/&gt;---------------------------------------------------------------------------------------------------------
&lt;br/&gt;
&lt;br/&gt;#include &amp;amp;lt;iostream&gt;
&lt;br/&gt;#include &amp;amp;lt;iomanip&gt;
&lt;br/&gt;#include &amp;amp;lt;fstream&gt;
&lt;br/&gt;#include &amp;amp;lt;string&gt;
&lt;br/&gt;
&lt;br/&gt;void printMonth(int month);
&lt;br/&gt;void PrintaLine(int, char);
&lt;br/&gt;void SkipLines (int);
&lt;br/&gt;void indent (int);
&lt;br/&gt;
&lt;br/&gt;// PRECONDITION: month holds an integer 1-12
&lt;br/&gt;// POSTCONDITION: the corresponding month (Jan, Feb, ..., Dec) has been
&lt;br/&gt;// printed to the standard output.
&lt;br/&gt;
&lt;br/&gt;ifstream infile1("input1.txt");
&lt;br/&gt;ifstream infile2("input2.txt");
&lt;br/&gt;ofstream outfile("output.txt");
&lt;br/&gt;
&lt;br/&gt;int main()
&lt;br/&gt;{
&lt;br/&gt;  string month[12];
&lt;br/&gt;  double rainfall[12];  //this year's rainfall for each month
&lt;br/&gt;  double averages[12];  //average rainfalls for each month
&lt;br/&gt;  int currentMonth;     //what month is it? 1-based
&lt;br/&gt;
&lt;br/&gt;  //
&lt;br/&gt;  // Get the average rainfall for each month, Jan-Dec
&lt;br/&gt;  //
&lt;br/&gt;  // Read the in put files 1 and 2
&lt;br/&gt;   for (int i=0; i&amp;amp;lt;12; i++)
&lt;br/&gt;   {
&lt;br/&gt;   	infile1 &gt;&gt; month[i] &gt;&gt; rainfall[i];
&lt;br/&gt;   }
&lt;br/&gt;   for (int j=0; j&amp;amp;lt;12; j++)
&lt;br/&gt;   {
&lt;br/&gt;   	infile2 &gt;&gt; month[j] &gt;&gt; averages[j];
&lt;br/&gt;   }
&lt;br/&gt;  	PrintaLine (65, ':');
&lt;br/&gt;   indent(10);
&lt;br/&gt;	outfile &amp;amp;lt;&amp;lt; "The table shows the month avge and the diff\n";
&lt;br/&gt;   PrintaLine (65, ':');
&lt;br/&gt;  	SkipLines(3);
&lt;br/&gt;	outfile &amp;amp;lt;&amp;lt; setw (20) &amp;amp;lt;&amp;lt; setiosflags (ios::left) &amp;amp;lt;&amp;lt; "Months"
&lt;br/&gt;   		&amp;amp;lt;&amp;lt; setw(20) &amp;amp;lt;&amp;lt; "Actual" &amp;amp;lt;&amp;lt; setw(20) &amp;amp;lt;&amp;lt; "Average"
&lt;br/&gt;		&amp;amp;lt;&amp;lt; setiosflags(ios::right)
&lt;br/&gt;		&amp;amp;lt;&amp;lt; setw (10) &amp;amp;lt;&amp;lt; "Difference" &amp;amp;lt;&amp;lt; endl;
&lt;br/&gt;  	SkipLines(1);
&lt;br/&gt;  for (int i=0; i&amp;amp;lt;12; i++)
&lt;br/&gt;  {
&lt;br/&gt;	outfile &amp;amp;lt;&amp;lt; setw (20) &amp;amp;lt;&amp;lt; setiosflags (ios::left) &amp;amp;lt;&amp;lt; month[i]
&lt;br/&gt;   		&amp;amp;lt;&amp;lt; setw(20) &amp;amp;lt;&amp;lt; rainfall[i] &amp;amp;lt;&amp;lt; setw(20) &amp;amp;lt;&amp;lt; averages[i]
&lt;br/&gt;		&amp;amp;lt;&amp;lt; setiosflags(ios::right)
&lt;br/&gt;		&amp;amp;lt;&amp;lt; setw (10) &amp;amp;lt;&amp;lt; rainfall[i] - averages [i] &amp;amp;lt;&amp;lt; endl;
&lt;br/&gt;   }
&lt;br/&gt;   SkipLines (2);
&lt;br/&gt;   outfile &amp;amp;lt;&amp;lt; "Negative sign in the Difference shows the Actual Rainfall is below Average Rainfall\n";
&lt;br/&gt;   }
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;void PrintaLine(int n, char c){
&lt;br/&gt;for (int i=1; i&amp;amp;lt;=n; i++)
&lt;br/&gt;	outfile &amp;amp;lt;&amp;lt; c;
&lt;br/&gt;outfile &amp;amp;lt;&amp;lt; endl;
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;void SkipLines (int n){
&lt;br/&gt;for (int i=1; i&amp;amp;lt;=n; i++)
&lt;br/&gt;	outfile &amp;amp;lt;&amp;lt; endl;
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;void indent (int n){
&lt;br/&gt;for (int i=1; i&amp;amp;lt;=n; i++)
&lt;br/&gt;	outfile &amp;amp;lt;&amp;lt; ' ';
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;-------------------------------------------------------------------------------------------------------
&lt;br/&gt;
&lt;br/&gt;This displays the table of the monthly rainfall and the avg. monthly rainfall and the diff. to the file output.
&lt;br/&gt;
&lt;br/&gt;Now I want to do the following:
&lt;br/&gt;
&lt;br/&gt;INTERACTIVE DISPLAY. 
&lt;br/&gt;
&lt;br/&gt;All files have been closed, ask the user if they want to analyze the data.  If they say yes, ask if they want to see it in tabular or graphic output form (refer to Display 7.8 for how to do this).  Ask what data they want to see (average, actual, divergence of actual from average). 
&lt;br/&gt;
&lt;br/&gt;Please reply me ASAP as I due my assignment soon&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>Meer</dc:creator>
    <dc:date>2007-04-03T21:33:54Z</dc:date>
  </entry>
  <entry>
    <title>OSX coding</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/d6c5e8b1-1274-4953-90c9-5e0d445d0909" />
    <author>
      <name>mooneagle</name>
    </author>
    <id>http://CPP.tribe.net/thread/d6c5e8b1-1274-4953-90c9-5e0d445d0909</id>
    <updated>2007-02-11T04:40:06Z</updated>
    <published>2007-02-07T06:08:44Z</published>
    <summary type="html">&lt;div&gt;Hello,
&lt;br/&gt;I used to code quite a bit. Using C++ and opengl on a windows platform. Its been many years and now I use OSX. 
&lt;br/&gt;I want to start coding again and I want to build a fairly simple but extentable text editing program. 
&lt;br/&gt;I am wondering what language i should use. Since i used to code in c/c++ i am hoping to do that. So i am also wondering if there are some libraries to help with the font and graphic display on OSX that people are really excited about. 
&lt;br/&gt;I am asking this on the tribe, in the hopes that someone might be really excited about a newish way of doing things like this.
&lt;br/&gt;
&lt;br/&gt;Thank you,
&lt;br/&gt;Luke&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 3 replies
		&lt;/div&gt;</summary>
    <dc:creator>mooneagle</dc:creator>
    <dc:date>2007-02-07T06:08:44Z</dc:date>
  </entry>
  <entry>
    <title>libjpeg crash when supplying user colormap</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/d6ab6cfa-01df-49c1-8785-3a0bed3ec7cb" />
    <author>
      <name>cpr</name>
    </author>
    <id>http://CPP.tribe.net/thread/d6ab6cfa-01df-49c1-8785-3a0bed3ec7cb</id>
    <updated>2006-11-21T20:54:59Z</updated>
    <published>2006-11-03T21:19:09Z</published>
    <summary type="html">&lt;div&gt;So, this isn't a c++ question (again), but this tribe seems the most useful for  s/w development questions.. :)
&lt;br/&gt;
&lt;br/&gt;I'm using libjpeg to  decode images, but I am experiencing a strange crash when having the library deliver 8bit color data with a colormap I am supplying. The crash doesn't happen during decode, but in the libjpeg memory manager during shut down of the decoder (both jpeg_abort() and jpeg_destroy_decompress()). I've tried not using the libjpeg allocator for the colormap memory, but that doesn't change the behaviour.. any tips would be appreciated..
&lt;br/&gt;
&lt;br/&gt;peace
&lt;br/&gt;-cpr&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator>cpr</dc:creator>
    <dc:date>2006-11-03T21:19:09Z</dc:date>
  </entry>
  <entry>
    <title>package a set of dlls into a single binary</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/bfd88f94-a761-4778-880c-30bb2770d5bc" />
    <author>
      <name>meener</name>
    </author>
    <id>http://CPP.tribe.net/thread/bfd88f94-a761-4778-880c-30bb2770d5bc</id>
    <updated>2006-11-21T00:22:39Z</updated>
    <published>2006-11-21T00:22:39Z</published>
    <summary type="html">&lt;div&gt;I would like to compile a binary on CygWin and somehow merge it and its dependancies into a single binary for a private project Im working on (not for redist.)  Does anyone know of a utility that can take multiple binaries, merge them to a single file, and fix-up any linkages so it works as a standalone library?  It would simplify my project immensely...&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>meener</dc:creator>
    <dc:date>2006-11-21T00:22:39Z</dc:date>
  </entry>
  <entry>
    <title>thumpin'</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/665d2e55-0cb1-4f36-aeb0-6c0ae06ef0ff" />
    <author>
      <name>John Michael</name>
    </author>
    <id>http://CPP.tribe.net/thread/665d2e55-0cb1-4f36-aeb0-6c0ae06ef0ff</id>
    <updated>2006-11-10T16:50:11Z</updated>
    <published>2006-11-10T16:50:11Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;... so here we are, suddenly in the minority.  What brought us here, after such a meteroric ascension to power a little over a decade ago?  We were the party of responsibility (we "delete" what we "new"), of limited executable size (no VMs to carry around), of conservation of system resources (don't hog the CPU, be lean with memory, be as light on the wire as you can).  We preached doing your own memory management, we stressed design patterns, we had all of the answers that the world needed to develop truly great software.
&lt;br/&gt;
&lt;br/&gt;So what happened?  We've lost our way.  Garbage collection libraries, very high-level class libraries that added dozens of function calls to a typical call stack before it got to libc / libc++, cheap RAM, broadband, really inexpensive multi-gigabyte hard disks, super-fast CPUs ... we grew just as slow and bloated as that which were were rallying against, not to mention more fractured with every new platform we coded for ("OLE / [D]COM!  No, DO!  No way, CORBA!").  We came to change development, and development changed us.  The Java programmers have taken over, with their garbage collectors, GUI toolkits, IDEs, RMI, XML-on-the-wire and resource-consuming VMs ... and we've lost our way.
&lt;br/&gt;
&lt;br/&gt;Now is the time to step back, examine our ascension and declension, and re-affirm ourselves to the core principles we believe in.  Just yesterday, I fixed a file seek / write bug in my code :-)
&lt;br/&gt;
&lt;br/&gt;Regards,
&lt;br/&gt;
&lt;br/&gt;John, winking
&lt;br/&gt;
&lt;br/&gt;Falling You - exploring the beauty of voice and sound
&lt;br/&gt;http://www.fallingyou.com
&lt;br/&gt;
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>John Michael</dc:creator>
    <dc:date>2006-11-10T16:50:11Z</dc:date>
  </entry>
  <entry>
    <title>C++ way of setting file position for file sizes larger than 32-bits?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/5627843f-1135-4e23-97ef-11fc13a693a1" />
    <author>
      <name>John Michael</name>
    </author>
    <id>http://CPP.tribe.net/thread/5627843f-1135-4e23-97ef-11fc13a693a1</id>
    <updated>2006-11-08T07:55:04Z</updated>
    <published>2006-11-07T19:48:45Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;Hello, all ...
&lt;br/&gt;
&lt;br/&gt;I need to create a file and set it to a specific size (the idea being that there is another thread that uses std::ofstream::seekp() to write blocks to the file as they arrive off of the network, likely out of order, so if the 10th block of the file arrives before the 1st, I need to be able to handle it).  The thing is, std::ofstream::seekp() doesn't seem to allow me to seek past the end of the file and set the file position there e.g. it sets the failbit true if I try.  In C, I used to do this with feek(), so I could code something like this:
&lt;br/&gt;
&lt;br/&gt;fseek( pFile, 10000000, SEEK_SET ); // makes the file 10000000 bytes long if it was shorter before
&lt;br/&gt;
&lt;br/&gt;... but fseek() expects a long for the seek position, and this is 2006, where a long isn't big enough (files could be much larger than 4G).  I have to do this in a portable way (Windows and Mac OSX / *nix).
&lt;br/&gt;
&lt;br/&gt;Ideas?
&lt;br/&gt;
&lt;br/&gt;Regards,
&lt;br/&gt;
&lt;br/&gt;John, looking for a simple solution
&lt;br/&gt;
&lt;br/&gt;Falling You - exploring the beauty of voice and sound
&lt;br/&gt;http://www.fallingyou.com
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>John Michael</dc:creator>
    <dc:date>2006-11-07T19:48:45Z</dc:date>
  </entry>
  <entry>
    <title>socket issues?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/065cf463-a37c-430d-9ffc-abb48704a7c1" />
    <author>
      <name>John Michael</name>
    </author>
    <id>http://CPP.tribe.net/thread/065cf463-a37c-430d-9ffc-abb48704a7c1</id>
    <updated>2006-10-30T22:18:36Z</updated>
    <published>2006-10-28T00:22:25Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;Hello, all ...
&lt;br/&gt;
&lt;br/&gt;Like many of us i'm sure, i've done my share of sockets (either BSD or WinSock) code.  It's usually not so hard.  I'm chasing a bug right now, though, which has got me wondering about some questions that I thought I knew:
&lt;br/&gt;
&lt;br/&gt;Does recv() _only_ return 0 if the server closed the connection?  Does setting the socket as blocking or non-blocking matter change this at all?  Does select() work differently on non-blocking vs. blocking sockets?
&lt;br/&gt;
&lt;br/&gt;My understanding is this:
&lt;br/&gt;
&lt;br/&gt;1. If select() sets the FD / socket in the input set, it's ready to be read.
&lt;br/&gt;2. If recv() is called on the FD after select() sets it, and it returns a positive #, that # is the # of bytes read from the socket.
&lt;br/&gt;3. If recv() is called on the FD after select() sets it, and recv() returns 0, the server closed the connection.
&lt;br/&gt;4. If recv() is called on the FD after select() sets it, and recv() returns -1, an error occured ... if errno / WSAGetLastError() is set to EAGAIN / WSAEWOULDBLOCK, then the server is still there, it has just not sent anything yet.  This should only happen if the FD / socket is set to non-blocking mode (otherwise recv() will block).
&lt;br/&gt;
&lt;br/&gt;Is my understanding flawed?  I'm seeing recv() return 0 (blocking and non-blocking) very often (i'm sending an HTTP request to Apache to get a block of data e.g. a range request, and if recv() returns 0 only if the server disconnected, then it's disconnecting very often before it sends the entire range I requested).  This behavior varies by time of day, file requested, etc. which suggests that Apache is loaded and dropping me, but others stress that it doesn't do that, or at least, not anywhere near as often as I seem to be seeing.  I would expect recv() to return -1 and have errno / WSAGetLastError() set to EAGAIN / WSAEWOULDBLOCK if the server is busy, but no ... recv() just returns 0.
&lt;br/&gt;
&lt;br/&gt;Regards,
&lt;br/&gt;
&lt;br/&gt;John
&lt;br/&gt;
&lt;br/&gt;Falling You - exploring the beauty of voice and sound
&lt;br/&gt;http://www.fallingyou.com
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>John Michael</dc:creator>
    <dc:date>2006-10-28T00:22:25Z</dc:date>
  </entry>
  <entry>
    <title>MSVC.NET 2005 and std::stringstream ... grrrr</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/3efa3b8e-880f-4938-943c-36645932a866" />
    <author>
      <name>John Michael</name>
    </author>
    <id>http://CPP.tribe.net/thread/3efa3b8e-880f-4938-943c-36645932a866</id>
    <updated>2006-10-18T23:59:46Z</updated>
    <published>2006-10-17T04:04:42Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;Hello, all ...
&lt;br/&gt;
&lt;br/&gt;I'm finding that MSVC.NET 2005's stringstream (and o / i variants) leak memory when used as parameters (passing them by reference to other methods).  I'm facing the possibility of rewriting all of our code that uses them to use something else (the few that i've replaced with -- ugh -- const char *, have resulted in less leakage) ... has anyone else seen this?  Also, our code has to be portable across Win32 and Mac OSX (*nix), so we would like to keep platform-specific solutions to a minimum, so we're all about using the C++ library, STL, Boost, stuff like that.
&lt;br/&gt;
&lt;br/&gt;Grrrr.
&lt;br/&gt;
&lt;br/&gt;Regards,
&lt;br/&gt;
&lt;br/&gt;John
&lt;br/&gt;
&lt;br/&gt;Falling You - exploring the beauty of voice and sound
&lt;br/&gt;http://www.fallingyou.com
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 7 replies
		&lt;/div&gt;</summary>
    <dc:creator>John Michael</dc:creator>
    <dc:date>2006-10-17T04:04:42Z</dc:date>
  </entry>
  <entry>
    <title>template hell!</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/5e706586-7594-4be5-9e69-bf20bbfc5c2f" />
    <author>
      <name>John Michael</name>
    </author>
    <id>http://CPP.tribe.net/thread/5e706586-7594-4be5-9e69-bf20bbfc5c2f</id>
    <updated>2006-09-19T04:07:10Z</updated>
    <published>2006-07-15T11:53:44Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;Hello, all ...
&lt;br/&gt;
&lt;br/&gt;I've been doing templates for years (either using others' templates or making my own), but this is the first time I need to make a library that implements a template class.  Here is my sample:
&lt;br/&gt;
&lt;br/&gt;template1.h
&lt;br/&gt;
&lt;br/&gt;// class templates
&lt;br/&gt;#include &amp;amp;lt;iostream&gt;
&lt;br/&gt;
&lt;br/&gt;template &amp;lt; class T &gt; class pair 
&lt;br/&gt;{
&lt;br/&gt;        private:
&lt;br/&gt;                T a, b;
&lt;br/&gt;        public:
&lt;br/&gt;                pair (T first, T second);
&lt;br/&gt;                T getmax ();
&lt;br/&gt;};
&lt;br/&gt;
&lt;br/&gt;template_total.cpp
&lt;br/&gt;
&lt;br/&gt;// class templates
&lt;br/&gt;#include &amp;amp;lt;iostream&gt;
&lt;br/&gt;#include "templates1.h"
&lt;br/&gt;
&lt;br/&gt;template &amp;lt; class T &gt; pair&amp;lt; T &gt;::pair( T first, T second )
&lt;br/&gt;{
&lt;br/&gt;        a=first; b=second;
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;template &amp;lt; class T &gt; T pair&amp;lt; T &gt;::getmax ()
&lt;br/&gt;{
&lt;br/&gt;        T retval;
&lt;br/&gt;        retval = a&gt;b? a : b;
&lt;br/&gt;        return retval;
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;int main () 
&lt;br/&gt;{
&lt;br/&gt;        pair &amp;amp;lt;int&gt; myobject ( 100, 75 );
&lt;br/&gt;        std::cout &amp;amp;lt;&amp;lt; myobject.getmax() &amp;amp;lt;&amp;lt; std::endl;
&lt;br/&gt;        return 0;
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;... now when I compile this with gcc4.0.1 (on Mac OSX 10.4.7), this is what I get:
&lt;br/&gt;
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ c++ templates_total.cpp -o templates_total     
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ ./templates_total 
&lt;br/&gt;100
&lt;br/&gt;
&lt;br/&gt;... which is correct.  Now I want to make a library with the template class and implementation, and use that library:
&lt;br/&gt;
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ cat templates1.h
&lt;br/&gt;// class templates
&lt;br/&gt;#include &amp;amp;lt;iostream&gt;
&lt;br/&gt;
&lt;br/&gt;template &amp;lt; class T &gt; class pair 
&lt;br/&gt;{
&lt;br/&gt;        private:
&lt;br/&gt;                T a, b;
&lt;br/&gt;        public:
&lt;br/&gt;                pair (T first, T second);
&lt;br/&gt;                T getmax ();
&lt;br/&gt;};
&lt;br/&gt;
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ cat templates1lib.cpp 
&lt;br/&gt;// class templates
&lt;br/&gt;#include &amp;amp;lt;iostream&gt;
&lt;br/&gt;#include "templates1.h"
&lt;br/&gt;
&lt;br/&gt;template &amp;lt; class T &gt; pair&amp;lt; T &gt;::pair( T first, T second )
&lt;br/&gt;{
&lt;br/&gt;        a=first; b=second;
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;template &amp;lt; class T &gt; T pair&amp;lt; T &gt;::getmax ()
&lt;br/&gt;{
&lt;br/&gt;        T retval;
&lt;br/&gt;        retval = a&gt;b? a : b;
&lt;br/&gt;        return retval;
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ c++ -c templates1lib.cpp -o templates1lib.o
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ ar rcs libtemplates1.a templates1lib.o
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ ll     
&lt;br/&gt;total 44
&lt;br/&gt;   0 drwxr-xr-x    9 jmzorko  jmzorko       306 Jul 15 04:40 .
&lt;br/&gt;   0 drwxr-xr-x   48 jmzorko  jmzorko      1632 Jul 15 04:29 ..
&lt;br/&gt;   4 -rw-r--r--    1 jmzorko  jmzorko      2192 Jul 15 04:40 libtemplates1.a
&lt;br/&gt;   4 -rw-r--r--    1 jmzorko  jmzorko       156 Jul 15 04:11 templates1.cpp
&lt;br/&gt;   4 -rw-r--r--    1 jmzorko  jmzorko       149 Jul 14 17:51 templates1.h
&lt;br/&gt;   4 -rw-r--r--    1 jmzorko  jmzorko       244 Jul 15 04:10 templates1lib.cpp
&lt;br/&gt;   4 -rw-r--r--    1 jmzorko  jmzorko      1980 Jul 15 04:40 templates1lib.o
&lt;br/&gt;  20 -rwxr-xr-x    1 jmzorko  jmzorko     20040 Jul 15 04:34 templates_total
&lt;br/&gt;   4 -rw-r--r--    1 jmzorko  jmzorko       340 Jul 15 04:34 templates_total.cpp
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ nm libtemplates1.a 
&lt;br/&gt;
&lt;br/&gt;libtemplates1.a(templates1lib.o):
&lt;br/&gt;00000094 s EH_frame1
&lt;br/&gt;0000007c s __GLOBAL__I_templates1lib.cpp_1FD5A050_803EC32C
&lt;br/&gt;00000100 s __GLOBAL__I_templates1lib.cpp_1FD5A050_803EC32C.eh
&lt;br/&gt;00000024 s __Z41__static_initialization_and_destruction_0ii
&lt;br/&gt;000000d8 s __Z41__static_initialization_and_destruction_0ii.eh
&lt;br/&gt;         U __ZNSt8ios_base4InitC1Ev
&lt;br/&gt;         U __ZNSt8ios_base4InitD1Ev
&lt;br/&gt;00000140 b __ZSt8__ioinit
&lt;br/&gt;         U ___cxa_atexit
&lt;br/&gt;         U ___dso_handle
&lt;br/&gt;         U ___gxx_personality_v0
&lt;br/&gt;0000013c S ___i686.get_pc_thunk.bx
&lt;br/&gt;00000000 t ___tcf_0
&lt;br/&gt;000000b0 s ___tcf_0.eh
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ 
&lt;br/&gt;
&lt;br/&gt;... well, I don't see anything that indicates that the template is in the library (libtemplate1.a), but i'll try making code that uses it anyway and see what happens:
&lt;br/&gt;
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ cat templates1.cpp  
&lt;br/&gt;// class templates
&lt;br/&gt;#include &amp;amp;lt;iostream&gt;
&lt;br/&gt;#include "templates1.h"
&lt;br/&gt;
&lt;br/&gt;int main () 
&lt;br/&gt;{
&lt;br/&gt;        pair &amp;amp;lt;int&gt; myobject (100, 75);
&lt;br/&gt;        std::cout &amp;amp;lt;&amp;lt; myobject.getmax();
&lt;br/&gt;        return 0;
&lt;br/&gt;}
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ c++ templates1.cpp -L. -ltemplates1 -o templates1
&lt;br/&gt;/usr/bin/ld: Undefined symbols:
&lt;br/&gt;pair&amp;amp;lt;int&gt;::getmax()
&lt;br/&gt;pair&amp;amp;lt;int&gt;::pair(int, int)
&lt;br/&gt;collect2: ld returned 1 exit status
&lt;br/&gt;PugsleyButt:~/devstuff/c++/templates jmzorko$ 
&lt;br/&gt;
&lt;br/&gt;... and that's the problem -- when I put my template class and implementation in a library, I can't use them from anywhere else.  I know that templates are difficult for a C++ compiler, but how do I solve this?  BTW, this code fails the same way on Windows, so once I know what the real problem is and how to fix it on *nix, i'll find the MS equivalent way to fix it ...
&lt;br/&gt;
&lt;br/&gt;Has anyone else run into this?  I know it's a common problem ...
&lt;br/&gt;
&lt;br/&gt;Regards,
&lt;br/&gt;
&lt;br/&gt;John
&lt;br/&gt;
&lt;br/&gt;Falling You - exploring the beauty of voice and sound
&lt;br/&gt;http://www.fallingyou.com&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 19 replies
		&lt;/div&gt;</summary>
    <dc:creator>John Michael</dc:creator>
    <dc:date>2006-07-15T11:53:44Z</dc:date>
  </entry>
  <entry>
    <title>Floating point woes</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/a8c464ea-84bf-45ad-9573-e29cc25e9478" />
    <author>
      <name />
    </author>
    <id>http://CPP.tribe.net/thread/a8c464ea-84bf-45ad-9573-e29cc25e9478</id>
    <updated>2006-09-05T19:26:35Z</updated>
    <published>2006-09-04T16:57:37Z</published>
    <summary type="html">&lt;div&gt;I'm writing a few short programs based on calculating factors in electronics.  
&lt;br/&gt;
&lt;br/&gt;As such, I often have to multiply and divide some small numbers, and the round-off is of such a magnitude that it renders the calculations useless.
&lt;br/&gt;
&lt;br/&gt;For instance, with this fragment of code:
&lt;br/&gt;
&lt;br/&gt;#include &amp;amp;lt;iostream&gt;
&lt;br/&gt;using namespace std;
&lt;br/&gt;int main () {
&lt;br/&gt;
&lt;br/&gt;double test;
&lt;br/&gt;test = ( 1 / 10000) + ( 1 / 200000);
&lt;br/&gt;cout &gt;&gt; test;
&lt;br/&gt;return 0;
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;The output will give me zero.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator />
    <dc:date>2006-09-04T16:57:37Z</dc:date>
  </entry>
  <entry>
    <title>Need a C++ Jock</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/52e25e3e-77cc-4939-b28d-10650fface74" />
    <author>
      <name />
    </author>
    <id>http://CPP.tribe.net/thread/52e25e3e-77cc-4939-b28d-10650fface74</id>
    <updated>2006-08-09T19:01:57Z</updated>
    <published>2006-08-09T19:01:57Z</published>
    <summary type="html">&lt;div&gt;Hi all,
&lt;br/&gt; I work for Shutterfly and we're looking for someone who is a very strong C++ programmer. Shutterfly pays very well and has great benefits. We're located south of San Francisco in sunny Redwood City. If you're interested, please send me a message!&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator />
    <dc:date>2006-08-09T19:01:57Z</dc:date>
  </entry>
  <entry>
    <title>creating 90 degree perpendicular lines</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/9894e557-7bd5-4a59-90a9-637d46ab5523" />
    <author>
      <name>cpr</name>
    </author>
    <id>http://CPP.tribe.net/thread/9894e557-7bd5-4a59-90a9-637d46ab5523</id>
    <updated>2006-07-31T19:59:35Z</updated>
    <published>2006-07-21T21:15:48Z</published>
    <summary type="html">&lt;div&gt;this is not c++ specific, and I am working in c to implement it, but, I am starting to work on  gradient fill routines, and for the linear version I need to draw lines perpendicular to the fill path. so, given a line from x1,y1 to x2,y2, how to I calculate end points for all of the perpendicular lines (one per pixel along my fill path)? any takers? hehe.. :)&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 9 replies
		&lt;/div&gt;</summary>
    <dc:creator>cpr</dc:creator>
    <dc:date>2006-07-21T21:15:48Z</dc:date>
  </entry>
  <entry>
    <title>using the preprocessor to do something N times</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/faec10ae-2697-4698-af8a-0b1fec29eb71" />
    <author>
      <name>meener</name>
    </author>
    <id>http://CPP.tribe.net/thread/faec10ae-2697-4698-af8a-0b1fec29eb71</id>
    <updated>2006-07-30T21:36:29Z</updated>
    <published>2006-07-30T19:27:30Z</published>
    <summary type="html">&lt;div&gt;Is there a c++ preprocessor instruction to repeat something a number of times?  
&lt;br/&gt;
&lt;br/&gt;I am doing some loop unrolling and I would like to do something like this (making up my own preprocessor command :P)
&lt;br/&gt;
&lt;br/&gt;#repeat 16
&lt;br/&gt;    x += p[a++];
&lt;br/&gt;#endrepeat
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator>meener</dc:creator>
    <dc:date>2006-07-30T19:27:30Z</dc:date>
  </entry>
  <entry>
    <title>C#</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/f7d0f477-d953-49a4-b597-a0ea59cdd490" />
    <author>
      <name>cortelyou</name>
    </author>
    <id>http://CPP.tribe.net/thread/f7d0f477-d953-49a4-b597-a0ea59cdd490</id>
    <updated>2006-07-30T01:03:00Z</updated>
    <published>2005-10-15T01:04:55Z</published>
    <summary type="html">&lt;div&gt;Anyone here a fan of C#?  I was talking to a programmer friend and he was saying that C# is going to largely replace C++ in the coming years.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 11 replies
		&lt;/div&gt;</summary>
    <dc:creator>cortelyou</dc:creator>
    <dc:date>2005-10-15T01:04:55Z</dc:date>
  </entry>
  <entry>
    <title>smart pointer for unsigned char[]?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/71df2db6-9882-49c0-b811-980f21e520e4" />
    <author>
      <name>John Michael</name>
    </author>
    <id>http://CPP.tribe.net/thread/71df2db6-9882-49c0-b811-980f21e520e4</id>
    <updated>2006-07-15T19:14:37Z</updated>
    <published>2006-06-19T00:13:24Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;Hello, all ...
&lt;br/&gt;
&lt;br/&gt;I want to use a smart pointer, preferably boosty, to encapsulate an array of unsigned chars that I need to allocate from the heap:
&lt;br/&gt;
&lt;br/&gt;int main()
&lt;br/&gt;{
&lt;br/&gt;    unsigned char *pBuf = new unsigned char[ 512 * 1024 ];    // icky, this isn't quite smart enough :-)
&lt;br/&gt;
&lt;br/&gt;    auto_ptr&amp;lt; unsigned char * &gt; pBuf( new unsigned char[ 512 * 1024 ] );  // no work, auto_ptr dtor does not call delete[]
&lt;br/&gt;
&lt;br/&gt;    boost::scoped_array&amp;lt; unsigned char *&gt; pBuf( new unsigned char[ 512 * 1024 ] );  // no work, boost expect an array of unsigned char pointers here, not an array of unsigned chars
&lt;br/&gt;
&lt;br/&gt;    // the thing I kinda need to do is ...
&lt;br/&gt;
&lt;br/&gt;    fread( pBuf, 1, lotsa_bytes, pFile ); 
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;... any hints?  I'm not new to smart pointers, but I am kinda new to boost ...
&lt;br/&gt;
&lt;br/&gt;Regards,
&lt;br/&gt;
&lt;br/&gt;John
&lt;br/&gt;
&lt;br/&gt;Falling You - exploring the beauty of voice and sound
&lt;br/&gt;http://www.fallingyou.com
&lt;br/&gt;
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 5 replies
		&lt;/div&gt;</summary>
    <dc:creator>John Michael</dc:creator>
    <dc:date>2006-06-19T00:13:24Z</dc:date>
  </entry>
  <entry>
    <title>FILE * from std::ofstream?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47" />
    <author>
      <name>John Michael</name>
    </author>
    <id>http://CPP.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47</id>
    <updated>2006-06-15T05:55:23Z</updated>
    <published>2006-06-12T05:58:56Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;Hello, all ...
&lt;br/&gt;
&lt;br/&gt;I need to interface a library that expects to communicate through a FILE * to my code written using ofstream.  In these endeavors, I would like to just have my ofstream return a FILE * that this library can use, but I don't see how I can do that.  The ofstream.rdbuf() returns a basic_filebuf, but there seems to be no way of getting a FILE * from it in a cross platform way (this code has to work on Mac OSX, using gcc, as well as Windows, using the MSVC.NET compiler).
&lt;br/&gt;
&lt;br/&gt;Am I doomed to a C-style interface to my lower level file objects, just because this library expects a FILE *?  I'm sure i'm not the only one who has run into this ...
&lt;br/&gt;
&lt;br/&gt;Regards,
&lt;br/&gt;
&lt;br/&gt;John
&lt;br/&gt;
&lt;br/&gt;Falling You - exploring the beauty of voice and sound
&lt;br/&gt;http://www.fallingyou.com
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 3 replies
		&lt;/div&gt;</summary>
    <dc:creator>John Michael</dc:creator>
    <dc:date>2006-06-12T05:58:56Z</dc:date>
  </entry>
  <entry>
    <title>query_string</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/18958701-75ab-423b-b1ac-66056b28b243" />
    <author>
      <name>Linda</name>
    </author>
    <id>http://CPP.tribe.net/thread/18958701-75ab-423b-b1ac-66056b28b243</id>
    <updated>2006-05-29T20:47:44Z</updated>
    <published>2006-05-26T19:04:49Z</published>
    <summary type="html">&lt;div&gt;I am trying to program cgi with c++ and having a hard time 
&lt;br/&gt;filtering text data for specific patterns( field names and data)
&lt;br/&gt;from the 'query_string' . 
&lt;br/&gt;string s(getenv("QUERY_STRING"));
&lt;br/&gt;i recieve my string from html forms and the string will look something like
&lt;br/&gt;first=Fred&amp;amp;last=Chimp&amp;amp;color=Blue  
&lt;br/&gt;assuming i the forms in the html document ask the user for their first name, last name and favorite color.  
&lt;br/&gt;I need to go through this string and get user information and then send it back to the user for display. Any ideas on how i can accomplish this?  A nudge in the right direction would be great!  Huge thanks in advance!&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 11 replies
		&lt;/div&gt;</summary>
    <dc:creator>Linda</dc:creator>
    <dc:date>2006-05-26T19:04:49Z</dc:date>
  </entry>
  <entry>
    <title>Tracking an IP adress?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/d4a42d73-e70c-429c-a5e2-2c657294b740" />
    <author>
      <name>in-PHI-net</name>
    </author>
    <id>http://CPP.tribe.net/thread/d4a42d73-e70c-429c-a5e2-2c657294b740</id>
    <updated>2006-05-27T05:31:27Z</updated>
    <published>2006-05-26T22:24:24Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;I downloaded CommView and I am not sure what this means: 
&lt;br/&gt;
&lt;br/&gt;Maximum packets in buffer – sets the maximum number of packets the program stores in the memory and can display in the packet list (2nd tab). For example, if you set this value to 3000, only the last 3000 packets will be stored in the memory and packet list. The higher this value is, the more computer resources the program consumes. 
&lt;br/&gt;
&lt;br/&gt;What is a packet? 
&lt;br/&gt;
&lt;br/&gt;Also I tried installing the Driver for Dial ups and it says it is not compatible with WAN Miniport (IPX) &amp;amp;lt;which is what I have it on my computer …. What will happen if I change it?
&lt;br/&gt;
&lt;br/&gt;Does anyone know how to use this and can explain it someone who knows nothing about the deeper aspects of computers?
&lt;br/&gt;
&lt;br/&gt;Thank you in advance! Very much!
&lt;br/&gt;
&lt;br/&gt;xo
&lt;br/&gt;
&lt;br/&gt;ps: What is a "string" and a "hex".... please keep in mind I know nothing really about this, I am just looking for ways to track IP adress traffic on my computer.
&lt;br/&gt;
&lt;br/&gt;Thnx again!&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 3 replies
		&lt;/div&gt;</summary>
    <dc:creator>in-PHI-net</dc:creator>
    <dc:date>2006-05-26T22:24:24Z</dc:date>
  </entry>
  <entry>
    <title>Computer program for language, quick and easy?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/3ffa718e-f6c4-4d01-ad2a-65045626a402" />
    <author>
      <name>in-PHI-net</name>
    </author>
    <id>http://CPP.tribe.net/thread/3ffa718e-f6c4-4d01-ad2a-65045626a402</id>
    <updated>2006-05-27T00:17:11Z</updated>
    <published>2006-05-26T19:30:40Z</published>
    <summary type="html">&lt;div&gt;I am not sure if I am posting this in the right tribe, but is there a software that I can get whereby if I type in, say the word, "Time", or sentance, "What time is it?", that it will tell me how to write and say it in another language?
&lt;br/&gt;
&lt;br/&gt;Thank you so much!&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 3 replies
		&lt;/div&gt;</summary>
    <dc:creator>in-PHI-net</dc:creator>
    <dc:date>2006-05-26T19:30:40Z</dc:date>
  </entry>
  <entry>
    <title>word count</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/5192bf64-ceb1-4c6c-9002-0673b1ffe292" />
    <author>
      <name>two</name>
    </author>
    <id>http://CPP.tribe.net/thread/5192bf64-ceb1-4c6c-9002-0673b1ffe292</id>
    <updated>2006-05-01T20:06:24Z</updated>
    <published>2006-05-01T18:18:50Z</published>
    <summary type="html">&lt;div&gt;I wrote a program counting word from a string a user inputs but i am having a hard time figuring out how to go back and count the number of characters in each word and then avreaging that out.  any help anyone can provide would be appreciated.  
&lt;br/&gt;Thanks
&lt;br/&gt;my program goes as follows
&lt;br/&gt;#include &amp;amp;lt;iostream&gt;
&lt;br/&gt;#include &amp;amp;lt;cctype&gt;
&lt;br/&gt;using namespace std;
&lt;br/&gt;
&lt;br/&gt;int wordCount(char * , char);
&lt;br/&gt;int word;
&lt;br/&gt;
&lt;br/&gt;char userString;
&lt;br/&gt;
&lt;br/&gt;int main()
&lt;br/&gt;{
&lt;br/&gt;	const int size = 81;
&lt;br/&gt;	char userString[size];
&lt;br/&gt;	cout &amp;amp;lt;&amp;lt; "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"&amp;amp;lt;&amp;amp;lt;endl;
&lt;br/&gt;	cout &amp;amp;lt;&amp;amp;lt;endl&amp;amp;lt;&amp;lt; "Enter a string of up to 80 characters:  "&amp;amp;lt;&amp;amp;lt;endl&amp;amp;lt;&amp;amp;lt;endl;
&lt;br/&gt;	cin.getline(userString, size);
&lt;br/&gt;	cout &amp;amp;lt;&amp;lt; " The number of words in that string are: ";
&lt;br/&gt;	cout &amp;amp;lt;&amp;lt; wordCount(userString,size) &amp;amp;lt;&amp;amp;lt;endl;
&lt;br/&gt;	cout &amp;amp;lt;&amp;lt; " The average words in this string are:  ";
&lt;br/&gt;	cout &amp;amp;lt;&amp;lt; word&amp;amp;lt;&amp;amp;lt;endl;
&lt;br/&gt;	return 0;
&lt;br/&gt;}
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;int wordCount(char *strPtr , char word)
&lt;br/&gt;{
&lt;br/&gt;	int index =1;
&lt;br/&gt;	while(*strPtr != '\0')
&lt;br/&gt;	{
&lt;br/&gt;		if(*strPtr == ' ' )
&lt;br/&gt;			index++;
&lt;br/&gt;			strPtr++;
&lt;br/&gt;
&lt;br/&gt;	}	
&lt;br/&gt;	return index;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>two</dc:creator>
    <dc:date>2006-05-01T18:18:50Z</dc:date>
  </entry>
  <entry>
    <title>IP address -- std::string to hex</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/41bcbe21-4068-482f-805a-cdafba54ac3e" />
    <author>
      <name>John Michael</name>
    </author>
    <id>http://CPP.tribe.net/thread/41bcbe21-4068-482f-805a-cdafba54ac3e</id>
    <updated>2006-02-28T04:19:43Z</updated>
    <published>2006-02-28T00:52:48Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;Hello, all ...
&lt;br/&gt;
&lt;br/&gt;I'm wondering what the best / least # of lines way in C++ (so it's ok to use C++-isms like iostream, fstream, string, etc.) is to convert an IP address in dotted format (stored in a std::string) to an IP address in hex (stored in an array of chars)?
&lt;br/&gt;
&lt;br/&gt;No, this is not a homework question -- i'm just in the middle of writing something like this (to search an ethereal dump file for RTP packets coming from a certain address) and want to know how _you_ would do it :-)
&lt;br/&gt;
&lt;br/&gt;Regards,
&lt;br/&gt;
&lt;br/&gt;John
&lt;br/&gt;
&lt;br/&gt;Faling You - exploring the beauty of voice and sound
&lt;br/&gt;http://www.fallingyou.com&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator>John Michael</dc:creator>
    <dc:date>2006-02-28T00:52:48Z</dc:date>
  </entry>
  <entry>
    <title>convolution and fft</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/4f720a75-418b-489d-a835-0ea050f0d57b" />
    <author>
      <name />
    </author>
    <id>http://CPP.tribe.net/thread/4f720a75-418b-489d-a835-0ea050f0d57b</id>
    <updated>2006-02-06T21:21:03Z</updated>
    <published>2006-01-09T07:17:40Z</published>
    <summary type="html">&lt;div&gt;Hi all;
&lt;br/&gt;
&lt;br/&gt;So, I'm in the process of translating my matlab code into C to run on a parallel system. I'm brand spankin' new to C but have be coding in matlab for about 18 months. In my current code, I transform my data through use of convolution and fft. Matlab has built in functions for these manipulations. As I'm not one for re-inventing the wheel, I was wondering if there are C functions available for these two processes (convolution and fft)? I have some information about how to write these functions up but it would be, of course, easier if these functions exist in some library that I could just add to my program.
&lt;br/&gt;
&lt;br/&gt;Anyone have any ideas on this?
&lt;br/&gt;
&lt;br/&gt;Thanks.
&lt;br/&gt;
&lt;br/&gt;Alan&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator />
    <dc:date>2006-01-09T07:17:40Z</dc:date>
  </entry>
  <entry>
    <title>Trouble with strcat</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/12556948-c28e-48bf-a528-83b26f286c5b" />
    <author>
      <name>WTL</name>
    </author>
    <id>http://CPP.tribe.net/thread/12556948-c28e-48bf-a528-83b26f286c5b</id>
    <updated>2006-02-03T04:32:04Z</updated>
    <published>2006-01-14T00:34:37Z</published>
    <summary type="html">&lt;div&gt;I am writing a program in C but I am getting an error when it compiles that doesn't make any sense:
&lt;br/&gt;Warning: passing argument 1 of 'strcat' makes pointer from integer without a cast.
&lt;br/&gt;
&lt;br/&gt;The relevant bits of code are:
&lt;br/&gt;The variables:
&lt;br/&gt;char  da   = 'A';
&lt;br/&gt;char  db   = 'C';
&lt;br/&gt;char  dc   = 'G';
&lt;br/&gt;char  dd   = 'T';
&lt;br/&gt;char  dna1 [100000];
&lt;br/&gt;
&lt;br/&gt;Where the error appears:
&lt;br/&gt;if(random == 1)
&lt;br/&gt;       strcat(da, dna1);
&lt;br/&gt;else if (random == 2)
&lt;br/&gt;       strcat(db, dna1);
&lt;br/&gt;else if (random == 3)
&lt;br/&gt;       strcat(dc, dna1);
&lt;br/&gt;else
&lt;br/&gt;       strcat(dd, dna1);
&lt;br/&gt;
&lt;br/&gt;It doesn't like strcat for some reason.  Both are chars, so it *should* work as far as I can tell.
&lt;br/&gt;
&lt;br/&gt;Anyone have any suggestions to a c newbie?
&lt;br/&gt;
&lt;br/&gt;Thanks!&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 9 replies
		&lt;/div&gt;</summary>
    <dc:creator>WTL</dc:creator>
    <dc:date>2006-01-14T00:34:37Z</dc:date>
  </entry>
  <entry>
    <title>Macintosh and C question</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/6bbd6b32-c822-46f2-b7ca-9cf2c8d2cb59" />
    <author>
      <name />
    </author>
    <id>http://CPP.tribe.net/thread/6bbd6b32-c822-46f2-b7ca-9cf2c8d2cb59</id>
    <updated>2005-12-14T02:57:24Z</updated>
    <published>2005-12-13T23:17:30Z</published>
    <summary type="html">&lt;div&gt;So, I'm in the process of learning C. I have about a year and a half of programming experience in Matlab.
&lt;br/&gt;
&lt;br/&gt;I'm working through Brian Kernighan's "The C Programming Language" and I keep running into problems with my programs hanging. They compile just  fine but I don't get any output. It's as if they're caught in a loop they can't get out of. I've double checked my code and it looks just fine (coming from the book).
&lt;br/&gt;
&lt;br/&gt;Anyone have any ideas? I'm working on a Mac G4 and compiling using gcc in unix. Love to hear any ideas.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator />
    <dc:date>2005-12-13T23:17:30Z</dc:date>
  </entry>
  <entry>
    <title>what's the best C++ website??</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/3127812d-4b2e-4140-9dbf-4d40f7017fd6" />
    <author>
      <name>veganmegan</name>
    </author>
    <id>http://CPP.tribe.net/thread/3127812d-4b2e-4140-9dbf-4d40f7017fd6</id>
    <updated>2005-11-22T18:58:18Z</updated>
    <published>2005-01-23T23:13:47Z</published>
    <summary type="html">&lt;div&gt;I'm just a C++ newbie. I'm majoring in programming and I'm currently in my first C++ class. I was just wondering what everyone's favorite and/or most useful C++ site is. &lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 8 replies
		&lt;/div&gt;</summary>
    <dc:creator>veganmegan</dc:creator>
    <dc:date>2005-01-23T23:13:47Z</dc:date>
  </entry>
  <entry>
    <title>Looking for C++ proggies in Santa Cruz.</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/c06ae067-06d3-432f-8f7b-01dadc1b59ad" />
    <author>
      <name>wayanmaz</name>
    </author>
    <id>http://CPP.tribe.net/thread/c06ae067-06d3-432f-8f7b-01dadc1b59ad</id>
    <updated>2005-10-10T20:57:36Z</updated>
    <published>2005-10-10T20:57:36Z</published>
    <summary type="html">&lt;div&gt;If you have any interested in working on a high-profile, next-gen console video game, please send your resume to resumes@santacruzgames.com
&lt;br/&gt;
&lt;br/&gt;Rock on.
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;MAZ&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>wayanmaz</dc:creator>
    <dc:date>2005-10-10T20:57:36Z</dc:date>
  </entry>
  <entry>
    <title>Codase: a syntax-aware source code search engine</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/c541929b-6f1c-4567-b661-7122ca17ebc0" />
    <author>
      <name>matthew</name>
    </author>
    <id>http://CPP.tribe.net/thread/c541929b-6f1c-4567-b661-7122ca17ebc0</id>
    <updated>2005-09-16T04:02:00Z</updated>
    <published>2005-09-16T04:02:00Z</published>
    <summary type="html">&lt;div&gt;After a few years work on programming language
&lt;br/&gt;compilers, decompilers and translators, I finally
&lt;br/&gt;launched an alpha version of a website for developers
&lt;br/&gt;to find code snippets easily. It contains over 100M
&lt;br/&gt;loc of c/c++ code. The search is syntax aware, so you
&lt;br/&gt;can easily find method calls and class definitions,
&lt;br/&gt;etc. I'd like to hear some feedback.
&lt;br/&gt;
&lt;br/&gt;Our web site is at http://www.codase.com.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>matthew</dc:creator>
    <dc:date>2005-09-16T04:02:00Z</dc:date>
  </entry>
  <entry>
    <title>Massive C/C++ source repository</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/072a8323-fcb6-483b-a298-1872ab868708" />
    <author>
      <name>cortelyou</name>
    </author>
    <id>http://CPP.tribe.net/thread/072a8323-fcb6-483b-a298-1872ab868708</id>
    <updated>2005-09-16T04:00:17Z</updated>
    <published>2005-08-13T02:30:28Z</published>
    <summary type="html">&lt;div&gt;http://csourcesearch.net/
&lt;br/&gt;
&lt;br/&gt;"Searching 110,066,601 lines of C/C++ code"&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>cortelyou</dc:creator>
    <dc:date>2005-08-13T02:30:28Z</dc:date>
  </entry>
  <entry>
    <title>interesting, incredible, intriguing</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/b50dc34a-ed41-48ce-b8d1-6ea3c929d8d8" />
    <author>
      <name>protectiva</name>
    </author>
    <id>http://CPP.tribe.net/thread/b50dc34a-ed41-48ce-b8d1-6ea3c929d8d8</id>
    <updated>2005-09-06T15:49:20Z</updated>
    <published>2005-09-01T02:21:36Z</published>
    <summary type="html">&lt;div&gt;if you can program
&lt;br/&gt;
&lt;br/&gt;i have a proposition for you
&lt;br/&gt;
&lt;br/&gt;it promises to be all of those three above words.
&lt;br/&gt;
&lt;br/&gt;get back to me.
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 5 replies
		&lt;/div&gt;</summary>
    <dc:creator>protectiva</dc:creator>
    <dc:date>2005-09-01T02:21:36Z</dc:date>
  </entry>
  <entry>
    <title>Dev Advice, if anyone may. Please.</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/461a6dad-8cc6-4f1c-8487-3a8697a70af9" />
    <author>
      <name>q-b</name>
    </author>
    <id>http://CPP.tribe.net/thread/461a6dad-8cc6-4f1c-8487-3a8697a70af9</id>
    <updated>2005-08-24T05:52:02Z</updated>
    <published>2005-06-07T18:23:32Z</published>
    <summary type="html">&lt;div&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;Hi,
&lt;br/&gt;
&lt;br/&gt;If I may ask for your advice :
&lt;br/&gt;
&lt;br/&gt;I would like to dev from Bottom Up an app.
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;It has to have scalability in user number.
&lt;br/&gt;
&lt;br/&gt;Real time elements integration.
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;And tools that can me added, modified and or upgraded as you go.
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;MySQL back end.
&lt;br/&gt;
&lt;br/&gt;Simple interface.
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;Do YOU think that Lisp is a good choice ?
&lt;br/&gt;
&lt;br/&gt;What is the learning curve for it if you could give even an erroneus evaluation of a rate.
&lt;br/&gt;
&lt;br/&gt;1 - 12 months.
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;Any other app for a better, quicker solution.
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;Thank you for your patience.
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;Lazlo.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 14 replies
		&lt;/div&gt;</summary>
    <dc:creator>q-b</dc:creator>
    <dc:date>2005-06-07T18:23:32Z</dc:date>
  </entry>
  <entry>
    <title>lost in strings</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/11e02fd7-3a81-468a-b637-3620c29c12d5" />
    <author>
      <name>aboutme</name>
    </author>
    <id>http://CPP.tribe.net/thread/11e02fd7-3a81-468a-b637-3620c29c12d5</id>
    <updated>2005-08-23T07:35:59Z</updated>
    <published>2005-06-25T17:54:49Z</published>
    <summary type="html">&lt;div&gt;I have a program that I know I need a string to use. Problem is in class we did a program with strings in which we input one name like "Dan" and another name like "dave" and it would say which is bigger, how many characters are in each ect. This new program I have to ask the user to input a sentence like.. " This book has ten pages" then it would count the number words and senteces in text. Also I would have to ask the user for a letter like "a" and it would count the lower and upper case letters. I have a program in VB where i would put "Hello" and it tels me how many times "L" is used. (i cant find that disk  )
&lt;br/&gt;
&lt;br/&gt;I have seen programs in which they count words from text from a file. The program needs to work like microsoft word (where when you go to word count it tells you all those things).&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 6 replies
		&lt;/div&gt;</summary>
    <dc:creator>aboutme</dc:creator>
    <dc:date>2005-06-25T17:54:49Z</dc:date>
  </entry>
  <entry>
    <title>i need arrays boss @_@</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/de3648bc-4501-41a2-af05-a757fae9ea14" />
    <author>
      <name>aboutme</name>
    </author>
    <id>http://CPP.tribe.net/thread/de3648bc-4501-41a2-af05-a757fae9ea14</id>
    <updated>2005-06-29T02:54:24Z</updated>
    <published>2005-06-28T21:37:23Z</published>
    <summary type="html">&lt;div&gt;simply put my program is suppose to be able to input 20 names and ages..then when it compiles it suppose to list the names in alphabetical order. Now I did something like this but it wasnt woth names it was with numbers. Then the program is suppose to save on a txt file.I used the same exact program that i did in class. I hardly changed the data. I compile it..it says "linker error." Also is my code correct for putting characters in alphabetical order...the internet wasnt much help with that.  Anyone help me out..here's my code...
&lt;br/&gt;
&lt;br/&gt;#include&amp;amp;lt;iostream.h&gt;
&lt;br/&gt;#include&amp;amp;lt;string.h&gt;
&lt;br/&gt;#include&amp;amp;lt;iomanip.h&gt;
&lt;br/&gt;#include&amp;amp;lt;fstream.h&gt;
&lt;br/&gt;void main()
&lt;br/&gt;	{
&lt;br/&gt;	int sku[10];
&lt;br/&gt;	char description[10][25]; 
&lt;br/&gt;	
&lt;br/&gt;	//prototypes
&lt;br/&gt;	int input ( int [ ], char[ ][25]);
&lt;br/&gt;	void report( int [ ], char[ ][25]);
&lt;br/&gt;	void savedata( int [ ],char[ ][25]);
&lt;br/&gt;	void sort( int [ ], char[ ][25]);
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;	//functions
&lt;br/&gt;	input( sku, description);
&lt;br/&gt;	sort( sku, description);
&lt;br/&gt;	report( sku, description);
&lt;br/&gt;	savedata( sku, description);
&lt;br/&gt;	}// close main
&lt;br/&gt;
&lt;br/&gt;int input( int sku[ ], char descr[ ][25])
&lt;br/&gt;	{
&lt;br/&gt;	int n=0; 
&lt;br/&gt;	char answer;
&lt;br/&gt;
&lt;br/&gt;	do {
&lt;br/&gt;		 cout &amp;amp;lt;&amp;lt; "\nEnter the age: ";
&lt;br/&gt;		 cin &gt;&gt; sku[n];
&lt;br/&gt;		 cout &amp;amp;lt;&amp;lt; "\nEnter the name: ";
&lt;br/&gt;		 cin &gt;&gt; descr[n];
&lt;br/&gt;		 n++;
&lt;br/&gt;		 cout &amp;amp;lt;&amp;lt; "\nDo want to enter another name? (y/n) ";
&lt;br/&gt;		 cin &gt;&gt; answer;
&lt;br/&gt;		 }while( answer == 'y' || answer == 'Y' );
&lt;br/&gt;	return n;
&lt;br/&gt;	}//close input
&lt;br/&gt;
&lt;br/&gt;void report( int sku[ ], char descr[ ][25], int n)
&lt;br/&gt;	{
&lt;br/&gt;	int i;
&lt;br/&gt;	void drawline(char , int );
&lt;br/&gt;	drawline( '_',70);
&lt;br/&gt;	cout &amp;amp;lt;&amp;lt; setw(7) &amp;amp;lt;&amp;lt; "age"
&lt;br/&gt;			&amp;amp;lt;&amp;lt; setw(25) &amp;amp;lt;&amp;lt; "Description"
&lt;br/&gt;			&amp;amp;lt;&amp;lt; '\n';
&lt;br/&gt;	drawline( '_',70);
&lt;br/&gt;	for( i = 0; i &amp;amp;lt;= n-1; i++ )
&lt;br/&gt;		{
&lt;br/&gt;			cout &amp;amp;lt;&amp;lt; setw(7) &amp;amp;lt;&amp;lt; sku[i]
&lt;br/&gt;			&amp;amp;lt;&amp;lt; setw(25) &amp;amp;lt;&amp;lt; descr[i]
&lt;br/&gt;			&amp;amp;lt;&amp;lt; '\n';
&lt;br/&gt;		}//close for
&lt;br/&gt;	 drawline( '_',70);
&lt;br/&gt;	}//close report
&lt;br/&gt;//drawline() definition
&lt;br/&gt;  void drawline(char c, int m )
&lt;br/&gt;	{
&lt;br/&gt;	int counter=1;
&lt;br/&gt;		while ( counter &amp;amp;lt;= m )
&lt;br/&gt;			{
&lt;br/&gt;			cout &amp;amp;lt;&amp;lt; c;
&lt;br/&gt;			counter++;
&lt;br/&gt;			}//close while
&lt;br/&gt;		cout &amp;amp;lt;&amp;lt; '\n';
&lt;br/&gt;		}//close drawline
&lt;br/&gt;
&lt;br/&gt;void savedata( int sku[ ], char descr[ ][25], int n)
&lt;br/&gt;	{
&lt;br/&gt;	int i;
&lt;br/&gt;	ofstream outfile;
&lt;br/&gt;	outfile.open("a:names.txt", ios::app );
&lt;br/&gt;
&lt;br/&gt;	for( i = 0; i &amp;amp;lt;= n-1; i++ )
&lt;br/&gt;		{
&lt;br/&gt;			outfile &amp;amp;lt;&amp;lt; sku[i]
&lt;br/&gt;			&amp;amp;lt;&amp;lt; ' ' &amp;amp;lt;&amp;lt; descr[i]
&lt;br/&gt;			&amp;amp;lt;&amp;lt; '\n';
&lt;br/&gt;		}//close for
&lt;br/&gt;
&lt;br/&gt;	outfile.close();
&lt;br/&gt;
&lt;br/&gt;	}//close savedata
&lt;br/&gt;void sort( int sku[ ], char descr[ ][25], int n)
&lt;br/&gt;	{
&lt;br/&gt;	int i, j, temp;
&lt;br/&gt;	char tempdes[25];
&lt;br/&gt;
&lt;br/&gt;	for( i = 0; i &amp;amp;lt;= n-2; i++ )
&lt;br/&gt;		{
&lt;br/&gt;	for( j = i+1; j &amp;amp;lt;= n-1; j++ )
&lt;br/&gt;		{
&lt;br/&gt;	if( descr[ j ] &amp;lt; descr[ i ] )
&lt;br/&gt;		{
&lt;br/&gt;		temp = sku[ i ];
&lt;br/&gt;		sku[ i ] = sku[ j ];
&lt;br/&gt;		sku[ j ] = temp;
&lt;br/&gt;
&lt;br/&gt;		strcpy( tempdes , descr[ i ]);
&lt;br/&gt;		strcpy( descr[ i ] , descr[ j ]);
&lt;br/&gt;		strcpy( descr[ j ] , tempdes);
&lt;br/&gt;		}//close true branch
&lt;br/&gt;	}//close f for loop
&lt;br/&gt;}//close i for loop
&lt;br/&gt;	}//close sort&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>aboutme</dc:creator>
    <dc:date>2005-06-28T21:37:23Z</dc:date>
  </entry>
  <entry>
    <title>need quick help</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/011e47ef-59cf-4026-bb43-e7397fda69c9" />
    <author>
      <name>aboutme</name>
    </author>
    <id>http://CPP.tribe.net/thread/011e47ef-59cf-4026-bb43-e7397fda69c9</id>
    <updated>2005-06-23T00:28:29Z</updated>
    <published>2005-06-19T21:54:05Z</published>
    <summary type="html">&lt;div&gt;im making a program that wil list the trig functions by increments of 10..and i dont have a compiler program. I am using Visual Studio.NET
&lt;br/&gt;
&lt;br/&gt;#include &amp;amp;lt;iostream.h&gt;
&lt;br/&gt;#include &amp;amp;lt;math.h&gt;
&lt;br/&gt;
&lt;br/&gt;void main
&lt;br/&gt;
&lt;br/&gt;float degrees, Sin, Cos, Tan;
&lt;br/&gt;
&lt;br/&gt;cout &amp;amp;lt;&amp;lt; "Enter a number of degrees: ";
&lt;br/&gt;cin &gt;&gt; degrees;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;cos = cos(degrees*180/3.14);
&lt;br/&gt;
&lt;br/&gt;cout &amp;amp;lt;&amp;lt; "Cosine: " &amp;amp;lt;&amp;lt; cosine &amp;amp;lt;&amp;lt; endl;
&lt;br/&gt;cout &amp;amp;lt;&amp;lt; "Sine: " &amp;amp;lt;&amp;lt; sin(degrees*180/3.14);
&lt;br/&gt;cout &amp;amp;lt;&amp;lt; "Tangent:" &amp;amp;lt;&amp;lt; tan(degrees*180/3.14);
&lt;br/&gt;
&lt;br/&gt;do {
&lt;br/&gt;
&lt;br/&gt;	cout &amp;amp;lt;&amp;lt; "Enter degrees: ";
&lt;br/&gt;	cin &gt;&gt; degrees;
&lt;br/&gt;	cout &amp;amp;lt;&amp;lt; "Sin";
&lt;br/&gt;	cin &gt;&gt; sin;
&lt;br/&gt;             cout &amp;amp;lt;&amp;lt; "Cos";
&lt;br/&gt;	cin &gt;&gt; Cos;
&lt;br/&gt;             cout &amp;amp;lt;&amp;lt; "Tan";
&lt;br/&gt;	cin &gt;&gt; Tan;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;	counter = degrees;
&lt;br/&gt;	cout &amp;amp;lt;&amp;lt; setw( 10 ) &amp;amp;lt;&amp;lt; "Degrees"
&lt;br/&gt;			&amp;amp;lt;&amp;lt; setw ( 20 ) &amp;amp;lt;&amp;lt; "sine"
&lt;br/&gt;			&amp;amp;lt;&amp;lt; setw ( 20 ) &amp;amp;lt;&amp;lt; "cosine"
&lt;br/&gt;			&amp;amp;lt;&amp;lt; setw ( 20 ) &amp;amp;lt;&amp;lt; "Tangent"
&lt;br/&gt;			&amp;amp;lt;&amp;lt; "\n";
&lt;br/&gt;	while( counter &amp;amp;lt;= Sin, Cos, Tan)
&lt;br/&gt;		{
&lt;br/&gt;	  cout &amp;amp;lt;&amp;lt; setw( 10 ) &amp;amp;lt;&amp;lt; degrees
&lt;br/&gt;			&amp;amp;lt;&amp;lt; setw ( 20 ) &amp;amp;lt;&amp;lt;  sine, cosine, tangent
&lt;br/&gt;			&amp;amp;lt;&amp;lt; "\n";
&lt;br/&gt;	  counter = counter + 10;
&lt;br/&gt;
&lt;br/&gt;	 }// end while
&lt;br/&gt;		  cout &amp;amp;lt;&amp;lt; "\nDo you want to do this again?(y/n) ";
&lt;br/&gt;
&lt;br/&gt;}// end main
&lt;br/&gt;
&lt;br/&gt;when its done its suppose to look like this..
&lt;br/&gt;
&lt;br/&gt;Degrees                     Sin              Cos              Tan
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;with the list of degrees from 0-360 and the sin, cos and tan of that degree.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 8 replies
		&lt;/div&gt;</summary>
    <dc:creator>aboutme</dc:creator>
    <dc:date>2005-06-19T21:54:05Z</dc:date>
  </entry>
  <entry>
    <title>Programming Jobs Losing Luster in U.S.</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/84ab9edf-925c-4b69-87e6-1b321a99106f" />
    <author>
      <name>cortelyou</name>
    </author>
    <id>http://CPP.tribe.net/thread/84ab9edf-925c-4b69-87e6-1b321a99106f</id>
    <updated>2005-06-20T22:23:46Z</updated>
    <published>2005-06-20T06:51:48Z</published>
    <summary type="html">&lt;div&gt;http://news.yahoo.com/news?tmpl=story&amp;amp;cid=562&amp;amp;e=4&amp;amp;u=/ap/tech_job_decline&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator>cortelyou</dc:creator>
    <dc:date>2005-06-20T06:51:48Z</dc:date>
  </entry>
  <entry>
    <title>Brew Your Own Beer?  Write Software?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/5de09668-c6ee-4a8d-9f7d-cb527b8f9121" />
    <author>
      <name>Greg</name>
    </author>
    <id>http://CPP.tribe.net/thread/5de09668-c6ee-4a8d-9f7d-cb527b8f9121</id>
    <updated>2005-06-16T21:15:55Z</updated>
    <published>2005-06-16T00:08:13Z</published>
    <summary type="html">&lt;div&gt; Hi all,
&lt;br/&gt;
&lt;br/&gt;I'm looking to get one or two more programmers involved in an open source project a couple friends and I have started.
&lt;br/&gt;
&lt;br/&gt;We're creating a cross-platform homebrewing app. Come on....software and beer? What could be better. ....Something similar to ProMash (downloada demo at www.promash.com) ... but with a better interface, more userfriendly, modern features and well, it won't just work on Windows... I'm a Mac user myself, and another one of us is a Linux guy, so...
&lt;br/&gt;
&lt;br/&gt;Just send me a mail if you're interested...or just curious....
&lt;br/&gt;
&lt;br/&gt;Remember...open source...all fun, no pay for any of us....we're doing this b/c we like to.  It'll be free software....like Firefox.....just not as popular.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Greg</dc:creator>
    <dc:date>2005-06-16T00:08:13Z</dc:date>
  </entry>
  <entry>
    <title>need help</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/6f5aae31-debb-43bb-80c6-6834c89eb9a9" />
    <author>
      <name>aboutme</name>
    </author>
    <id>http://CPP.tribe.net/thread/6f5aae31-debb-43bb-80c6-6834c89eb9a9</id>
    <updated>2005-06-14T22:28:18Z</updated>
    <published>2005-06-13T17:12:51Z</published>
    <summary type="html">&lt;div&gt;i need to make a program in which I nned to make a table with sin, cos, and tan functions from 0 - 360. I know Iam suppsoe to use M_pi...but im not getting much with that...im getting errors.
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;Also I have to act as if i work for the phone company and output several call durations "such as 45,43,12,17,78"
&lt;br/&gt;
&lt;br/&gt;and I have to categorize them as "shorstest call, longest call, count the total number of calls made and the avergage of a call on the list"
&lt;br/&gt;
&lt;br/&gt;for this one i have this:
&lt;br/&gt;
&lt;br/&gt;#include&amp;amp;lt;iostream.h&gt;
&lt;br/&gt;#include&amp;amp;lt;iomanip.h&gt;
&lt;br/&gt;main()
&lt;br/&gt;{
&lt;br/&gt;int a, b, c,d,e,f;
&lt;br/&gt;
&lt;br/&gt;do {
&lt;br/&gt;
&lt;br/&gt;cout &amp;amp;lt;&amp;lt; "Enter first call: ";
&lt;br/&gt;cin &gt;&gt; a;
&lt;br/&gt;cout &amp;amp;lt;&amp;lt; "Enter second call: ";
&lt;br/&gt;cin &gt;&gt; b
&lt;br/&gt;..you get the idea
&lt;br/&gt;
&lt;br/&gt;cout &amp;amp;lt;&amp;lt; "Enter longest calls made: ";
&lt;br/&gt;cin &gt;&gt; a;
&lt;br/&gt;cout &amp;amp;lt;&amp;lt; "Enter shortest calls made: ";
&lt;br/&gt;cin &gt;&gt; b
&lt;br/&gt;similar as before
&lt;br/&gt;
&lt;br/&gt;This is so damn troublesome...im a wreck with these programs..&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 5 replies
		&lt;/div&gt;</summary>
    <dc:creator>aboutme</dc:creator>
    <dc:date>2005-06-13T17:12:51Z</dc:date>
  </entry>
  <entry>
    <title>kind soul to help w/ homework?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/9bbe9e93-9583-4f44-ac47-104e90d7fd10" />
    <author>
      <name>rihanha</name>
    </author>
    <id>http://CPP.tribe.net/thread/9bbe9e93-9583-4f44-ac47-104e90d7fd10</id>
    <updated>2005-05-06T01:03:55Z</updated>
    <published>2005-05-05T23:45:08Z</published>
    <summary type="html">&lt;div&gt;Out of ideas…
&lt;br/&gt;Hello. I’ve been working on a program for a class (and using a class at that) that translates prefix to postfix using a LinkedList stack.  We are supposed to create a stack class &amp;amp; use it to perform the task. My solution is not eloquent, but I can’t even find out IF it will work because it won’t compile, even after many rounds of “The power of Christ compiles you!”  *sigh*
&lt;br/&gt;
&lt;br/&gt;I’m using .NET environment for first time (it really isn’t winning me over) &amp;amp; wondering if its related? I get this error message:
&lt;br/&gt;“error C2227: left of '-&gt;TopFlag' must point to class/struct/union” paired with “error C2819: type 'stackType' does not have an overloaded member 'operator -&gt;'”  for each line where I referece my class object (mystack).  It seems clear it isn’t recognizing my class object, but I don’t know why – i.e. error in declaration, error with linking.
&lt;br/&gt;
&lt;br/&gt;The class files compile fine, but when I try to compile whole project it crashes. The instructor has looked at it &amp;amp; says “I ‘dunno” *grrr* it’s a small program. 
&lt;br/&gt;
&lt;br/&gt;Any chance someone out there would take a look at it &amp;amp; see if something jumps out? I can email text or .cpp files.  Thanks a ton,
&lt;br/&gt;Rihanha&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>rihanha</dc:creator>
    <dc:date>2005-05-05T23:45:08Z</dc:date>
  </entry>
  <entry>
    <title>Reference</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/c8bb2e3b-a9ae-44a8-85cd-9fca716797e2" />
    <author>
      <name>StFiend</name>
    </author>
    <id>http://CPP.tribe.net/thread/c8bb2e3b-a9ae-44a8-85cd-9fca716797e2</id>
    <updated>2004-09-16T02:40:59Z</updated>
    <published>2004-09-13T14:31:54Z</published>
    <summary type="html">&lt;div&gt;So I've got my trusty K&amp;amp;R if I forget my syntax for vanilla C, but I don't have the budget for any more books. Is there someplace online I can look up the meanings of things like -&gt; or :: if I can't remember?&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>StFiend</dc:creator>
    <dc:date>2004-09-13T14:31:54Z</dc:date>
  </entry>
  <entry>
    <title>Mentors</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/d7f165e1-c17e-4937-aaaa-16ee7bd7eaa0" />
    <author>
      <name>Dead_Memories</name>
    </author>
    <id>http://CPP.tribe.net/thread/d7f165e1-c17e-4937-aaaa-16ee7bd7eaa0</id>
    <updated>2004-08-22T18:23:39Z</updated>
    <published>2004-07-21T02:58:20Z</published>
    <summary type="html">&lt;div&gt;hi everyone I'm in desperate search for some one who would be willing to help me learn how to do some programming. I've already bought a ton of books, but unfortunatly through them I learned that I am the type of person who can't learn through books alone.....you can't really ask them questions and get anwsers.so I was just wondering if enyone out there would be interested in mentoring me, either via internet or if your located within the Sea-Tac area perhaps getting together in person.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 12 replies
		&lt;/div&gt;</summary>
    <dc:creator>Dead_Memories</dc:creator>
    <dc:date>2004-07-21T02:58:20Z</dc:date>
  </entry>
  <entry>
    <title>help a newb with recursion?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/3eee7f5d-a883-4b77-ac1d-47f089051ba1" />
    <author>
      <name>blank</name>
    </author>
    <id>http://CPP.tribe.net/thread/3eee7f5d-a883-4b77-ac1d-47f089051ba1</id>
    <updated>2004-07-24T18:54:12Z</updated>
    <published>2004-07-23T00:44:15Z</published>
    <summary type="html">&lt;div&gt;hullo folks, first post on these boards. I'm learning c++ currently, and am working on an assignment with recursion.
&lt;br/&gt;
&lt;br/&gt;the assignment is to write a recursive function named reverseWithinBounds, that has an argument that is an array of characters and two arguments that are bounds on array indices. the function has to reverse the order of those entries in the array whose indices are between the two bounds. so for example, if the array is
&lt;br/&gt;a[0] == 'A' a[1] == 'B' a[2] == 'C' a[3] == 'D' a[4] == 'E'
&lt;br/&gt;
&lt;br/&gt;and the bounds are 1 and 4, then after the function is run the array elements should be:
&lt;br/&gt;
&lt;br/&gt;a[0] == 'A' a[1] == 'E' a[2] == 'D' a[3] == 'C' a[4] == 'B'
&lt;br/&gt;
&lt;br/&gt;i wrote mine so that the user can enter his own word and bounds, i opted to set it up for use with the word 'partytime'. here's my code - 
&lt;br/&gt;
&lt;br/&gt;#include&amp;amp;lt;iostream&gt;
&lt;br/&gt;
&lt;br/&gt;using namespace std;
&lt;br/&gt;
&lt;br/&gt;void reverseWithinBounds( char x[], const int bound1, const int bound2 );
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;int main()
&lt;br/&gt;{
&lt;br/&gt;    char x[10];
&lt;br/&gt;    int bound1, bound2;
&lt;br/&gt;    char ch;
&lt;br/&gt;    
&lt;br/&gt;    cout &amp;amp;lt;&amp;lt; "enter a nine letter word: " &amp;amp;lt;&amp;lt; endl;
&lt;br/&gt;    for( int i = 0; i &amp;lt; 10; i++ ){
&lt;br/&gt;        cin.get(ch);
&lt;br/&gt;        x[i] = ch;
&lt;br/&gt;    }
&lt;br/&gt;    cout &amp;amp;lt;&amp;lt; "enter the first bound: " &amp;amp;lt;&amp;lt; endl;
&lt;br/&gt;    cin &gt;&gt; bound1;
&lt;br/&gt;    cout &amp;amp;lt;&amp;lt; "enter the second bound: " &amp;amp;lt;&amp;lt; endl;
&lt;br/&gt;    cin &gt;&gt; bound2;
&lt;br/&gt;
&lt;br/&gt;    for( int j = 0; j &amp;lt; bound1; j++ )
&lt;br/&gt;        cout &amp;amp;lt;&amp;lt; x[j];
&lt;br/&gt;    reverseWithinBounds( x, bound1, bound2 );
&lt;br/&gt;    
&lt;br/&gt;    return 0;
&lt;br/&gt;    
&lt;br/&gt; } 
&lt;br/&gt;    
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt; /******************************************************************/
&lt;br/&gt; 
&lt;br/&gt; void reverseWithinBounds(         char x[], 
&lt;br/&gt;                             const int bound1,
&lt;br/&gt;                             const int bound2 )
&lt;br/&gt; {
&lt;br/&gt;
&lt;br/&gt;     int i = bound1;
&lt;br/&gt;     if( x[i] != '\n' ){
&lt;br/&gt;         reverseWithinBounds( x, bound1, bound2 );
&lt;br/&gt;         cout &amp;amp;lt;&amp;lt; x[i];
&lt;br/&gt;         i++;
&lt;br/&gt;     }
&lt;br/&gt; }
&lt;br/&gt;
&lt;br/&gt;it compiles fine, it gets the information fine, but when it gets to the reverseWithinBounds function, it just shuts down. I'm sure it's something obvious causing the problem, I have a tendency to not see obvious problems ( occam and i are not friends )
&lt;br/&gt;
&lt;br/&gt;greatly appreciate any help&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>blank</dc:creator>
    <dc:date>2004-07-23T00:44:15Z</dc:date>
  </entry>
  <entry>
    <title>sorry, more home work!</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/29136106-93ea-4d4d-b76d-7ce7de10f1d2" />
    <author>
      <name>theraz</name>
    </author>
    <id>http://CPP.tribe.net/thread/29136106-93ea-4d4d-b76d-7ce7de10f1d2</id>
    <updated>2004-05-31T20:34:51Z</updated>
    <published>2004-04-20T18:21:58Z</published>
    <summary type="html">&lt;div&gt;having issues with using the cin.getline funtion. Am i putting it in the wrong place or am i doing something else wrong?
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;cout&amp;amp;lt;&amp;amp;lt;"Enter Coordintates of polygon (seperated by commas) " &amp;amp;lt;&amp;lt; endl;
&lt;br/&gt;cin &gt;&gt; coor;
&lt;br/&gt;cin.getline (coor, 100);
&lt;br/&gt;strtok (coor, ",");
&lt;br/&gt;    while (tokenPtr != NULL)
&lt;br/&gt;      {cout &amp;amp;lt;&amp;lt; tokenPtr &amp;amp;lt;&amp;lt; '\n';
&lt;br/&gt;      tokenPtr = strtok (NULL, ",");
&lt;br/&gt;      cout&amp;amp;lt;&amp;amp;lt;coor;
&lt;br/&gt;      }
&lt;br/&gt;
&lt;br/&gt;Any help is appriciated...&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 7 replies
		&lt;/div&gt;</summary>
    <dc:creator>theraz</dc:creator>
    <dc:date>2004-04-20T18:21:58Z</dc:date>
  </entry>
  <entry>
    <title>C# Programmer for our Company</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/ebfc2271-ff81-49aa-a46d-205c73557e97" />
    <author>
      <name>Motion Picture Set Communications</name>
    </author>
    <id>http://CPP.tribe.net/thread/ebfc2271-ff81-49aa-a46d-205c73557e97</id>
    <updated>2004-05-28T07:10:10Z</updated>
    <published>2004-05-20T05:40:26Z</published>
    <summary type="html">&lt;div&gt;Pasadena CA. based company seeks a programmer  to write a small code for our development&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Motion Picture Set Communications</dc:creator>
    <dc:date>2004-05-20T05:40:26Z</dc:date>
  </entry>
  <entry>
    <title>Pointer-to-function casting</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/85245e28-a47f-4122-b03e-42791eca8a95" />
    <author>
      <name>Bartosz</name>
    </author>
    <id>http://CPP.tribe.net/thread/85245e28-a47f-4122-b03e-42791eca8a95</id>
    <updated>2004-05-09T07:19:01Z</updated>
    <published>2004-03-31T16:29:05Z</published>
    <summary type="html">&lt;div&gt;Do you thing the following is correct C++?
&lt;br/&gt;
&lt;br/&gt;int foo (char * str); // an arbitrary function
&lt;br/&gt;void * p = foo; // store PTF as void *
&lt;br/&gt;
&lt;br/&gt;There is an interesting discussion about this at http://www.relisoft.com/forum/toast.asp?sub=show&amp;amp;action=posts&amp;amp;fid=5&amp;amp;tid=2827 .&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator>Bartosz</dc:creator>
    <dc:date>2004-03-31T16:29:05Z</dc:date>
  </entry>
  <entry>
    <title>the newb says high</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/c3d10ec5-bc4b-4d08-9093-dda5bdbd8bca" />
    <author>
      <name>theraz</name>
    </author>
    <id>http://CPP.tribe.net/thread/c3d10ec5-bc4b-4d08-9093-dda5bdbd8bca</id>
    <updated>2004-04-13T17:59:43Z</updated>
    <published>2004-02-08T07:47:51Z</published>
    <summary type="html">&lt;div&gt;Hey all, i just started a C++ class at my college and found that even though the last time i took a programming clas was QBasic in 10th grade, it all seems to cross over between the two.
&lt;br/&gt;
&lt;br/&gt;Oh well, i guess all i really wanted to do was say hi and warn you guys that you may get a lot of simpleton questions sent your way to help with my homework. Just to let you know.
&lt;br/&gt;Thanks- Zack&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 6 replies
		&lt;/div&gt;</summary>
    <dc:creator>theraz</dc:creator>
    <dc:date>2004-02-08T07:47:51Z</dc:date>
  </entry>
  <entry>
    <title>New to C++</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/653832e7-b6b4-44f4-8554-c2fab2e94c6c" />
    <author>
      <name>Demosthenes</name>
    </author>
    <id>http://CPP.tribe.net/thread/653832e7-b6b4-44f4-8554-c2fab2e94c6c</id>
    <updated>2004-04-12T03:54:57Z</updated>
    <published>2004-04-09T04:39:58Z</published>
    <summary type="html">&lt;div&gt; I know some basic programming... I can write Java and HTML easy. I been really interested in the language. I would like to say Hello to everyone I am a new member and also I have a question.
&lt;br/&gt;
&lt;br/&gt;Where or how is the best way for me to learn C++? I have visual studio 6.0&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Demosthenes</dc:creator>
    <dc:date>2004-04-09T04:39:58Z</dc:date>
  </entry>
  <entry>
    <title>C++ implementations (virtual methods in constructor OK?)</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/301c4b47-8eb1-48c7-b265-e77bccb108ab" />
    <author>
      <name>genghis_don</name>
    </author>
    <id>http://CPP.tribe.net/thread/301c4b47-8eb1-48c7-b265-e77bccb108ab</id>
    <updated>2004-03-23T23:40:47Z</updated>
    <published>2004-03-15T17:34:09Z</published>
    <summary type="html">&lt;div&gt;A couple years ago, a friend of mine who's a fellow C++ geek mentioned that virtual methods should not be invoked from a constructor because it's unknown whether a given C++ implementation initializes a class's virtual table before or after its constructor is invoked.
&lt;br/&gt;
&lt;br/&gt;This isn't an issue with the C++ version I've worked with (Microsoft's Visual Studio C++) but I'm wondering whether anyone here has run into an implementation where it IS an issue.  I haven't checked g++ yet...
&lt;br/&gt;
&lt;br/&gt;Best, Don&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator>genghis_don</dc:creator>
    <dc:date>2004-03-15T17:34:09Z</dc:date>
  </entry>
  <entry>
    <title>Homework Help!</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/78170b9a-a4e7-4420-905b-05ca95363f55" />
    <author>
      <name>theraz</name>
    </author>
    <id>http://CPP.tribe.net/thread/78170b9a-a4e7-4420-905b-05ca95363f55</id>
    <updated>2004-03-23T22:54:45Z</updated>
    <published>2004-03-16T21:20:41Z</published>
    <summary type="html">&lt;div&gt;  Alright, i told y'all you'd be helpin me soon
&lt;br/&gt;
&lt;br/&gt;heres my first problem:
&lt;br/&gt;Why is this function telling me that i'm not using an array?
&lt;br/&gt;i passed it an array with the x and y floats but i keep geting the error, or should they not be floats?
&lt;br/&gt;
&lt;br/&gt;float segmentLength(float, float, float, float);
&lt;br/&gt;float polygonPerimeter (float x, float y, int pnts)
&lt;br/&gt;{
&lt;br/&gt;	float d;
&lt;br/&gt;	int i;
&lt;br/&gt;	for (i=0; i&amp;amp;lt;pnts; i++);
&lt;br/&gt;	
&lt;br/&gt;		d = segmentLength (x[i], x[i+1], y[i], y[i+1]);
&lt;br/&gt;
&lt;br/&gt;	return 0;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 6 replies
		&lt;/div&gt;</summary>
    <dc:creator>theraz</dc:creator>
    <dc:date>2004-03-16T21:20:41Z</dc:date>
  </entry>
  <entry>
    <title>Mastering C++</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/5eab0d7d-b93e-4a72-badd-5c1ecda6b390" />
    <author>
      <name>John</name>
    </author>
    <id>http://CPP.tribe.net/thread/5eab0d7d-b93e-4a72-badd-5c1ecda6b390</id>
    <updated>2004-03-17T14:44:58Z</updated>
    <published>2003-11-07T09:34:35Z</published>
    <summary type="html">&lt;div&gt;I don't know if I ever will master C++.  I've been working in it for going on 7 years, and I'm still frightening myself with new constructs.
&lt;br/&gt;
&lt;br/&gt;Take templates for example.  First I just used them, and they worked.  (cool)  Then I created abstract templates and inherited from them and that worked (frightening).  Then today, I was staring at two simple templates in one of my utility include files.  One was for singly linked lists, and the other for doubly linked lists; and I said to myself, these share a lot of common traits, I wonder if I could have a template that is built from another templatized class.  So I tried something like this:
&lt;br/&gt;
&lt;br/&gt;template &amp;amp;lt;class T&gt; class listbase { ... } ;
&lt;br/&gt;template &amp;amp;lt;class T&gt; class singlelist : public listbase&amp;amp;lt;T&gt; { ... } ;
&lt;br/&gt;template &amp;amp;lt;class T&gt; class doublelist : public listbase&amp;amp;lt;T&gt; { ... } ;
&lt;br/&gt;
&lt;br/&gt;and it worked.
&lt;br/&gt;and then I put in an internal class for iteration, but made a second version that returned a different type:
&lt;br/&gt;
&lt;br/&gt;template &amp;amp;lt;class T&gt; class listbase {
&lt;br/&gt;  template &amp;amp;lt;class Tpar&gt; class Titerator {
&lt;br/&gt;    iterator(T *) ;
&lt;br/&gt;
&lt;br/&gt;    Tpar *  getcurrent(void) const ;
&lt;br/&gt;    ...
&lt;br/&gt;  } ;
&lt;br/&gt;  ...
&lt;br/&gt;} ;
&lt;br/&gt;
&lt;br/&gt;And of course I used it from the child class:
&lt;br/&gt;
&lt;br/&gt;class myclass : public somebase {
&lt;br/&gt;  singlelist&amp;amp;lt;myclass&gt;::Titerator&amp;amp;lt;somebase&gt; ...
&lt;br/&gt;} ;
&lt;br/&gt;
&lt;br/&gt;And this all works.
&lt;br/&gt;
&lt;br/&gt;Worse, is I know I'm not even scratching the surface.  I've looked at the source code for the cross platform libraries from ObjectSpace (written by the guys that wrote the STL), and my mind bends just trying to follow what they're doing (generic algorithms, etc.)
&lt;br/&gt;
&lt;br/&gt;Anyways, if anyone wants to look at my list templates, let me know and I'll email you a copy (about 200 lines); and if anyone has other good references for mind expanding C++ stuff, please post it here or let me know.
&lt;br/&gt;
&lt;br/&gt;Derek&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 3 replies
		&lt;/div&gt;</summary>
    <dc:creator>John</dc:creator>
    <dc:date>2003-11-07T09:34:35Z</dc:date>
  </entry>
  <entry>
    <title>Improving the language.</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/ab0825a0-a6bf-479a-9d51-3cb83d7bfcc4" />
    <author>
      <name>John</name>
    </author>
    <id>http://CPP.tribe.net/thread/ab0825a0-a6bf-479a-9d51-3cb83d7bfcc4</id>
    <updated>2004-02-28T05:53:16Z</updated>
    <published>2004-02-28T05:53:16Z</published>
    <summary type="html">&lt;div&gt;So besides the obvious fixing of *p++ to not be horribly expensive, I was thinking today about invariant objects (borrowed technique from java).
&lt;br/&gt;
&lt;br/&gt;Usually I have something like:
&lt;br/&gt;
&lt;br/&gt;class simpledata {
&lt;br/&gt;  public:
&lt;br/&gt;    simpledata(int v1, int v2) : m_v1(v1), m_v2(v2) { }
&lt;br/&gt;
&lt;br/&gt;    const int m_v1, m_v2 ;
&lt;br/&gt;} ;
&lt;br/&gt;
&lt;br/&gt;This way I can let others see m_v1 &amp;amp; m_v2 and not worry about the values getting modified.  Unfortunately it doesn't work with char[].
&lt;br/&gt;
&lt;br/&gt;class simplestringdata {
&lt;br/&gt;  public:
&lt;br/&gt;    simplestringdata(int v1, char * s1) : m_v1(v1)
&lt;br/&gt;    {
&lt;br/&gt;      strcpy(m_s1, s1) ;	// XX - not allowed
&lt;br/&gt;    }
&lt;br/&gt;
&lt;br/&gt;    const int m_v1 ;
&lt;br/&gt;    const char * const m_s1[MAXSIZE] ;
&lt;br/&gt;} ;
&lt;br/&gt;
&lt;br/&gt;My solution is let const members be modified in the constructor.  It seems the right thing to do, after all you can do it in the initialization list, why not the constructor.  Maybe special case it to only allow it for const int members at the same level, ie you can't modify const members of your parent.  (Or maybe you could ...)
&lt;br/&gt;
&lt;br/&gt;And no, the answer is not to use the 'string' class.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>John</dc:creator>
    <dc:date>2004-02-28T05:53:16Z</dc:date>
  </entry>
  <entry>
    <title>silly pointer question</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/75e909fa-6739-4fab-9d0c-e94d683f77d4" />
    <author>
      <name>StFiend</name>
    </author>
    <id>http://CPP.tribe.net/thread/75e909fa-6739-4fab-9d0c-e94d683f77d4</id>
    <updated>2004-02-19T18:34:01Z</updated>
    <published>2004-02-18T23:05:03Z</published>
    <summary type="html">&lt;div&gt;What's this do? I assume it crashes the app, if not the whole system, but knowing very little about memory architecture I could see it doing something weird like wipe my BIOS. So I'm afraid to compile it and find out. Oh, and tribe doesn't like my indents, sorry.
&lt;br/&gt;
&lt;br/&gt;void main()
&lt;br/&gt;{
&lt;br/&gt; for (int x=0; 1; x++)
&lt;br/&gt;  *x=0;
&lt;br/&gt;}&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 12 replies
		&lt;/div&gt;</summary>
    <dc:creator>StFiend</dc:creator>
    <dc:date>2004-02-18T23:05:03Z</dc:date>
  </entry>
  <entry>
    <title>Darn it! Shucks!</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/81adc412-6be1-4826-9f8a-fad9d82d2172" />
    <author>
      <name>Bartosz</name>
    </author>
    <id>http://CPP.tribe.net/thread/81adc412-6be1-4826-9f8a-fad9d82d2172</id>
    <updated>2004-02-14T19:35:18Z</updated>
    <published>2004-02-14T19:35:18Z</published>
    <summary type="html">&lt;div&gt;News item: leaked Windows code contained profanities.
&lt;br/&gt;When I worked at Microsoft, there were indeed profanities in Windows NT code. However they were quickly removed once we created a searchable content index of the source code. The managers would play with the contex index by querying for all the standard cuss words. The funny thing is that they didn't realize we were logging all the queries. We would later go through the logs and chuckle at Dave Cutler's or Jim Allchin's queries. In a few weeks all the profanities disappeared.
&lt;br/&gt;So either Microsoft Systems turned off the content index or, more likely, the leakers added their own comments.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>Bartosz</dc:creator>
    <dc:date>2004-02-14T19:35:18Z</dc:date>
  </entry>
  <entry>
    <title>Three Languages</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/065fbf4f-a544-4ba5-b7f9-4c23909a59e3" />
    <author>
      <name>Bartosz</name>
    </author>
    <id>http://CPP.tribe.net/thread/065fbf4f-a544-4ba5-b7f9-4c23909a59e3</id>
    <updated>2004-02-12T22:29:25Z</updated>
    <published>2004-01-21T22:27:20Z</published>
    <summary type="html">&lt;div&gt;Surprisingly, I like the new programming model proposed by Microsoft for Longhorn. 
&lt;br/&gt;
&lt;br/&gt;The way I normally program interactive applications is by dividing my code into the trio: model, view, and controller. The view is responsible for displaying stuff; the controller, for processing user input; and the model, for the hard work. 
&lt;br/&gt;
&lt;br/&gt;In Longhorn (codename for next version of Windows), you'll be able to use three different languages for the three components. 
&lt;br/&gt;
&lt;br/&gt;The view in Longhorn is programmed a lot like a web page, using XAML (Extensible Application Markup Language) which is a lot like HTML. The simplest applications could be written entirely in XAML, just like most web pages are written in HTML. That's the view part.
&lt;br/&gt;
&lt;br/&gt;If you want to add more interaction with the user, you have to add a controller. You do it, for instance, in C#. The interactive elements in your view will have C# handlers. This is again very similar to how interactive web pages are made--using some kind of scripting language, like JavaScript or VB. 
&lt;br/&gt;
&lt;br/&gt;Finally, if you want your application to do some heavy work, you'd write the model--and here you may choose yet another language, for instance C++ -- for robustness and performance.
&lt;br/&gt;
&lt;br/&gt;I think it's a cool idea.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 10 replies
		&lt;/div&gt;</summary>
    <dc:creator>Bartosz</dc:creator>
    <dc:date>2004-01-21T22:27:20Z</dc:date>
  </entry>
  <entry>
    <title>windows graphics</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/30ab1e9f-89f2-467b-97ad-58a50063f702" />
    <author>
      <name>StFiend</name>
    </author>
    <id>http://CPP.tribe.net/thread/30ab1e9f-89f2-467b-97ad-58a50063f702</id>
    <updated>2004-02-02T02:15:36Z</updated>
    <published>2003-10-10T04:52:04Z</published>
    <summary type="html">&lt;div&gt;I'd love to get back into coding, but i get so bored if i don't have a project that i'm interested in, and that basically means games. Which pretty much means graphics, plus realtime keyboard input. But there's not all that much info out there that's helpful to someone new with the language; i don't even know which compiler i should use.
&lt;br/&gt;I should mention that i don't expect to start off doing 3d, particle systems, and all that... if i had the tools to make say, a tetris clone i'd be happy for now. So... any advice?&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 13 replies
		&lt;/div&gt;</summary>
    <dc:creator>StFiend</dc:creator>
    <dc:date>2003-10-10T04:52:04Z</dc:date>
  </entry>
  <entry>
    <title>C++ a dying art?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/3d8c2995-1fe1-4e76-822e-6fee11cfbe24" />
    <author>
      <name>adeh</name>
    </author>
    <id>http://CPP.tribe.net/thread/3d8c2995-1fe1-4e76-822e-6fee11cfbe24</id>
    <updated>2004-01-21T06:16:54Z</updated>
    <published>2003-10-29T03:01:09Z</published>
    <summary type="html">&lt;div&gt;Just an obervation,
&lt;br/&gt;
&lt;br/&gt;The C++ tribe here is languishing in relative obscurity compared to the PHP, Python, and Java tribes here at Tribe.net. I love C++, although the syntax can get a bit dense at times, but I am wondering: Are we just holding on to a dinosaur or is it the makeup of the Tribe.net community that creates this  dichotomy?
&lt;br/&gt;
&lt;br/&gt;Any ideas?&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 11 replies
		&lt;/div&gt;</summary>
    <dc:creator>adeh</dc:creator>
    <dc:date>2003-10-29T03:01:09Z</dc:date>
  </entry>
  <entry>
    <title>Future of C++</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/09ff0cd9-7594-4607-bc2a-49bacc31cd6f" />
    <author>
      <name>Bartosz</name>
    </author>
    <id>http://CPP.tribe.net/thread/09ff0cd9-7594-4607-bc2a-49bacc31cd6f</id>
    <updated>2004-01-09T23:24:58Z</updated>
    <published>2003-11-11T06:34:26Z</published>
    <summary type="html">&lt;div&gt;Scott Meyers, Adrei Alexandrescu, and Herb Sutter are not only top C++ experts but also very entertaining people. A must see next time they come to a panel discussion near you. Andrei the scientist, Scott the wise guru, and Herb the enthusiast shared some interesting insights. They were all worried (and righlty so) about the increasing complexity of the language. C++ is so difficult to parse that there are virtually no programming tools that require the analysis of a program. For instance, there is no decent C++ browser (don't even get me started on the MS VC++ browser). Teaching C++ is a nightmare. And, worst of all, people are being caught programming by trial and error (until it compiles). I'm afraid this is the fate of any language that is being designed by committee (the standarization committee). At this point C++ plays a very important role of a testbed for new features that hopefully in some near future will be implemented correctly in a completely new language. For now, we have to program in the language that even compilers cannot understand.
&lt;br/&gt;
&lt;br/&gt;Anyone disagreeing with me? I'd like to hear your thoughts.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 7 replies
		&lt;/div&gt;</summary>
    <dc:creator>Bartosz</dc:creator>
    <dc:date>2003-11-11T06:34:26Z</dc:date>
  </entry>
  <entry>
    <title>Needing help or an online source</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/b75043aa-50f6-4350-a100-25939d4d22b8" />
    <author>
      <name>HypnoToad</name>
    </author>
    <id>http://CPP.tribe.net/thread/b75043aa-50f6-4350-a100-25939d4d22b8</id>
    <updated>2003-12-27T07:12:03Z</updated>
    <published>2003-10-15T22:21:13Z</published>
    <summary type="html">&lt;div&gt;I wrote a console32 app on a PC a while back and I need to update it.  Basically, it converts an .avi to a series of .bmp's and custom formats.  Now I've got an .avi where the source asset is gone and it appears to be DivX (or MP42 which isn't really important).  Since I'm able to play it the codec is obviously installed.
&lt;br/&gt;
&lt;br/&gt;In the past I simply called AVIStreamOpenFromFile()and AVIStreamGetFrameOpen() which now returns an error.  I've since tried a variety of functions including ICLocate() which tell me no decompressor is installed.  Now I know it can be done but I also know it's not easy.  Most commercial software cannot handle the file, Premiere, TMPeg, etc.  But older Paint Shop Pro 6 can for some reason.  So they are obviously doing something the others and I are not.
&lt;br/&gt;
&lt;br/&gt;I also swear I decoded the same file 2 months ago, so either a change in the codec or a Windows Update media change broke it.
&lt;br/&gt;
&lt;br/&gt;So, I know asking here is a long shot, but does anyone know an online resource for Windows coding crap like this?
&lt;br/&gt;
&lt;br/&gt;Thanks,
&lt;br/&gt;
&lt;br/&gt;Hypno-Toad
&lt;br/&gt;expecting nothing but the sound of crickets
&lt;br/&gt;
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 5 replies
		&lt;/div&gt;</summary>
    <dc:creator>HypnoToad</dc:creator>
    <dc:date>2003-10-15T22:21:13Z</dc:date>
  </entry>
  <entry>
    <title>C++ has no equals in its domain</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/3ee6a756-14dd-4c6c-830c-4fb3466cc911" />
    <author>
      <name>Bartosz</name>
    </author>
    <id>http://CPP.tribe.net/thread/3ee6a756-14dd-4c6c-830c-4fb3466cc911</id>
    <updated>2003-12-02T00:00:38Z</updated>
    <published>2003-11-06T14:18:43Z</published>
    <summary type="html">&lt;div&gt;So far there is no competition for C++ in it domain. But you have to realize what C++ domain is. It's not writing small applets or web pages. C++ is specifically designed to deal with large complex programming tasks. Its power is in being able to express high level concepts by allowing the creation of multi-level abstractions. First you abstract your concepts into functions, then into classes, patterns, templates, etc. In no other language can you have such powerful tools as those in the C++ Standard Library. The power of the Standard Library is the way it abstracts common concepts--for instance iteration over the contenst of various containers (including low-level arrays). Try abstracting the iteration or searching behavior in Basic, Java, or C#.
&lt;br/&gt;Bartosz&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 4 replies
		&lt;/div&gt;</summary>
    <dc:creator>Bartosz</dc:creator>
    <dc:date>2003-11-06T14:18:43Z</dc:date>
  </entry>
  <entry>
    <title>SGI is having a contest....</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/aa0288c8-1a34-4bc4-8825-f106084876dc" />
    <author>
      <name>Mikey</name>
    </author>
    <id>http://CPP.tribe.net/thread/aa0288c8-1a34-4bc4-8825-f106084876dc</id>
    <updated>2003-11-07T09:22:33Z</updated>
    <published>2003-10-14T21:22:30Z</published>
    <summary type="html">&lt;div&gt;to make the best demo of Cg and HLSL tech for their ATI GL chipsets...
&lt;br/&gt;
&lt;br/&gt;Grand Prizes
&lt;br/&gt;2 winners will each receive one Onyx4 UltimateVision system -- the most powerful visualization system on the planet -- approximate retail value $40,000 each. 
&lt;br/&gt;First Prizes
&lt;br/&gt;5 winners will each receive one ATI FireGL X1-128 workstation graphics accelerator card, designed for professional engineering and digital content creation applications based on the OpenGL® API. 
&lt;br/&gt;
&lt;br/&gt;http://www.sgi.com/visualization/onyx4/challenge/overview.html
&lt;br/&gt;
&lt;br/&gt;-MAS&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Mikey</dc:creator>
    <dc:date>2003-10-14T21:22:30Z</dc:date>
  </entry>
  <entry>
    <title>Tokamak Physics library</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/bb981919-e59a-4f0a-a8e2-d78ba3520043" />
    <author>
      <name>Mikey</name>
    </author>
    <id>http://CPP.tribe.net/thread/bb981919-e59a-4f0a-a8e2-d78ba3520043</id>
    <updated>2003-10-14T08:10:43Z</updated>
    <published>2003-10-10T22:36:19Z</published>
    <summary type="html">&lt;div&gt;This is a rad C/CPP physics lib being developed by the guys at tokamakphysics.com ...
&lt;br/&gt;It is free free free and has great collision detection, joints, rigid body dynamics.. ragdoll physics etc..
&lt;br/&gt;Checkitout if yer into that kinda thang...&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>Mikey</dc:creator>
    <dc:date>2003-10-10T22:36:19Z</dc:date>
  </entry>
  <entry>
    <title>Online C++ Book</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/db2eb013-f8cc-4d2a-931e-bfd0f0f46dfb" />
    <author>
      <name>Bartosz</name>
    </author>
    <id>http://CPP.tribe.net/thread/db2eb013-f8cc-4d2a-931e-bfd0f0f46dfb</id>
    <updated>2003-10-08T03:31:03Z</updated>
    <published>2003-10-03T22:03:08Z</published>
    <summary type="html">&lt;div&gt;It's not self-promotion, just an attempt to start sharing C++ resources. My book "C++ In Action, Industrial Strength Programming in C++" (Addison-Wesley) is available online at my company's &lt;a href="http://www.relisoft.com/book"&gt; web site&lt;/a&gt;. There is also a discussion forum and a bunch of Windows API tutorials. Enjoy!&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://CPP.tribe.net"&gt;C++&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Bartosz</dc:creator>
    <dc:date>2003-10-03T22:03:08Z</dc:date>
  </entry>
</feed>



