<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Tutorialshare - All Forums]]></title>
		<link>http://tutorialshare.daman371designs.com/community/</link>
		<description><![CDATA[Tutorialshare - http://tutorialshare.daman371designs.com/community]]></description>
		<pubDate>Fri, 21 Nov 2008 00:52:10 -0800</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[New Features]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=28</link>
			<pubDate>Mon, 28 Jul 2008 11:18:29 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=28</guid>
			<description><![CDATA[Tutorialshare will have a new feature coming in the next few months. Also the tutorial indexing system is being built.]]></description>
			<content:encoded><![CDATA[Tutorialshare will have a new feature coming in the next few months. Also the tutorial indexing system is being built.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to Setup a Network]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=18</link>
			<pubDate>Fri, 01 Jun 2007 17:44:42 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=18</guid>
			<description><![CDATA[<span style="font-weight: bold;">Requirements</span><br />
1. a router which can be either wired or wireless. Wireless is recommended for homes to allow other computers easy access<br />
2. a network adapter for the wired computer to setup the network<br />
3. ethernet or wireless adapters for each computer that will use the network<br />
4. a modem which is compatible with the router and usually uses ethernet<br />
<br />
<span style="font-weight: bold;">Installing the network adapter</span><br />
<br />
Shutdown the computer and remove the power cable. Make sure all electricity from the computer is discharged by pressing the reset switch or power button. Unplug all peripherals and open the case. Locate an open PCI slot and insert the network adapter into the slot. Fasten the screw on the side of the card to hold it in place and put the case back together.<br />
<br />
<span style="font-weight: bold;">Connecting the cables</span><br />
<br />
First, connect the cables of the modem to the router by plugging one end into the modem and the other end into the router where the router says WAN. Now, take another ethernet cable and connect one end to the computer and one end to the router where it says port 1, 2, 3, or 4. They should be right next to each other and separate from the WAN. Now plug in the modem and the router and turn on the computer.<br />
<br />
<span style="font-weight: bold;">Router setup</span><br />
<br />
The computer should start detecting the new network adapter and install it. The CD that came with the network adapter may have to be inserted to install the drivers for the network adapter. Follow the new hardware installation wizard until it says the driver has been installed. A new icon in the system tray should appear (Windows XP) or new hardware appearing in the device manager under network adapters (Windows 9X). Now the network connection has to be setup for the wired connection.<br />
<br />
<span style="font-weight: bold;">Windows XP Network Connection</span><br />
Go to My Network Places and run the Setup a home or small office network wizard. Click Next and then click Next again since the hardware has all been plugged in an turned on. Click the radio button that says This computer connects through a residential gateway or another computer on my network and Click Next. Enter a Computer Name which will be used to distinguish the computers. Each Computer Name must be unique. Click Next. Choose a Workgroup Name or use the default MSHOME and Click Next. Choose an option for printer and file sharing over the network. Turning this option on is recommended. Click Next. Check to make sure settings are correct and Click Next. Choose an option to finish the wizard. The network is now setup. Check to make sure by going to My Network Places and then View Network Connections. Right click the adapter and make sure it is receiving data.<br />
<br />
<span style="font-weight: bold;">Windows 9X Network Connection</span><br />
Windows 9X configuration can vary depending on the router. The configuration consists of right clicking on My Network Places and going to Properties. Then installing Client for Microsoft Networks, TCP/IP, and File and Printer Sharing (optional). The configuration for TCP/IP usually can be automatic (DHCP) but can be configured manually.<br />
<br />
<span style="font-weight: bold;">Test the Connection</span><br />
Make sure the connection is functioning by opening up a browser and trying to navigate to a url. Also try connecting to other computers on the network by going to My Network Places in Windows 9X or by going to My Network Places and View Workgroup Computers in Windows XP.]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;">Requirements</span><br />
1. a router which can be either wired or wireless. Wireless is recommended for homes to allow other computers easy access<br />
2. a network adapter for the wired computer to setup the network<br />
3. ethernet or wireless adapters for each computer that will use the network<br />
4. a modem which is compatible with the router and usually uses ethernet<br />
<br />
<span style="font-weight: bold;">Installing the network adapter</span><br />
<br />
Shutdown the computer and remove the power cable. Make sure all electricity from the computer is discharged by pressing the reset switch or power button. Unplug all peripherals and open the case. Locate an open PCI slot and insert the network adapter into the slot. Fasten the screw on the side of the card to hold it in place and put the case back together.<br />
<br />
<span style="font-weight: bold;">Connecting the cables</span><br />
<br />
First, connect the cables of the modem to the router by plugging one end into the modem and the other end into the router where the router says WAN. Now, take another ethernet cable and connect one end to the computer and one end to the router where it says port 1, 2, 3, or 4. They should be right next to each other and separate from the WAN. Now plug in the modem and the router and turn on the computer.<br />
<br />
<span style="font-weight: bold;">Router setup</span><br />
<br />
The computer should start detecting the new network adapter and install it. The CD that came with the network adapter may have to be inserted to install the drivers for the network adapter. Follow the new hardware installation wizard until it says the driver has been installed. A new icon in the system tray should appear (Windows XP) or new hardware appearing in the device manager under network adapters (Windows 9X). Now the network connection has to be setup for the wired connection.<br />
<br />
<span style="font-weight: bold;">Windows XP Network Connection</span><br />
Go to My Network Places and run the Setup a home or small office network wizard. Click Next and then click Next again since the hardware has all been plugged in an turned on. Click the radio button that says This computer connects through a residential gateway or another computer on my network and Click Next. Enter a Computer Name which will be used to distinguish the computers. Each Computer Name must be unique. Click Next. Choose a Workgroup Name or use the default MSHOME and Click Next. Choose an option for printer and file sharing over the network. Turning this option on is recommended. Click Next. Check to make sure settings are correct and Click Next. Choose an option to finish the wizard. The network is now setup. Check to make sure by going to My Network Places and then View Network Connections. Right click the adapter and make sure it is receiving data.<br />
<br />
<span style="font-weight: bold;">Windows 9X Network Connection</span><br />
Windows 9X configuration can vary depending on the router. The configuration consists of right clicking on My Network Places and going to Properties. Then installing Client for Microsoft Networks, TCP/IP, and File and Printer Sharing (optional). The configuration for TCP/IP usually can be automatic (DHCP) but can be configured manually.<br />
<br />
<span style="font-weight: bold;">Test the Connection</span><br />
Make sure the connection is functioning by opening up a browser and trying to navigate to a url. Also try connecting to other computers on the network by going to My Network Places in Windows 9X or by going to My Network Places and View Workgroup Computers in Windows XP.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Tutorial Share Skins]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=25</link>
			<pubDate>Mon, 19 Feb 2007 11:09:53 -0800</pubDate>
			<dc:creator>draygonia</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=25</guid>
			<description><![CDATA[Do you think there will be a version where we can just import tutorial share skins instead of having to customize them ourselves?]]></description>
			<content:encoded><![CDATA[Do you think there will be a version where we can just import tutorial share skins instead of having to customize them ourselves?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Updates]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=24</link>
			<pubDate>Sun, 10 Dec 2006 10:58:56 -0800</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=24</guid>
			<description><![CDATA[I am working on some updates for Tutorialshare. Tutorialshare will begin providing a tutorial indexing service. Tutorials can be submitted for review and then appear in the appropriate category and latest tutorials. Please check back for further progress on this new service.<br />
<br />
<div style="text-align: center;">Thanks daman371.</div>]]></description>
			<content:encoded><![CDATA[I am working on some updates for Tutorialshare. Tutorialshare will begin providing a tutorial indexing service. Tutorials can be submitted for review and then appear in the appropriate category and latest tutorials. Please check back for further progress on this new service.<br />
<br />
<div style="text-align: center;">Thanks daman371.</div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to Burn DVDs]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=19</link>
			<pubDate>Mon, 04 Sep 2006 10:25:46 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=19</guid>
			<description><![CDATA[1. Go File&gt;Export<br />
2. Select Options<br />
3. Export as: AVI<br />
4. Save the file<br />
5. Open <a href="http://www.videotools.net/bin/bbmpg12418.zip" target="_blank">bbmpg</a><br />
Alternately: <a href="http://www.avisynth.org/" target="_blank">Avisynth</a> and <a href="http://nic.dnsalias.com/QuEnc.html" target="_blank">QuEnc</a> can be used<br />
6. Hit add and select the avi file created by Avid<br />
7. Hit start encoding and select settings<br />
8. Select video stream settings and select MPEG-2 video type. Click OK<br />
9. Click start and wait for the video to be encoded and close bbmpg when done<br />
10. Open TMPGEnc <a href="http://www.tmpgenc.net/e_main.html" target="_blank">TMPGEnc</a><br />
11. Go File&gt;MPEG Tools<br />
12. Select Simple De-multiplex<br />
13. Hit Browse next to Input and select the mpg file that was created earlier in TMPGEnc<br />
14. Hit run<br />
15. Open <a href="http://www.videohelp.com/~liquid217/dvdauthorgui.pl" target="_blank">DVDAuthorGUI</a><br />
16. Click add title<br />
17. Browse to the folder with the files that were De-multiplexed in TMPGEnc<br />
18. Select the m2v file and click open<br />
19. Select the mp2 file and click open<br />
20. Add chapters and titlesets (Optional)<br />
21. Go File&amp;gt;Create iso after authoring<br />
22. Select Author DVD and select a folder to output all of the files<br />
23. Burn the iso using a burning program or burn the VIDEO_TS and AUDIO_TS folders using a burning program.*<br />
<br />
* Note: Using a DVD playback program is advised before burning to ensure that DVD menus will work. Free DVD playback programs are available such as <a href="http://www.videolan.org/vlc/" target="_blank">VLC media player</a>.<br />
<br />
More resources:<br />
<a href="http://www.coujo.de/ib2/index.php?act=module&amp;module=include&amp;incl_name=download" target="_blank">Imgtool</a> Free burning program<br />
<a href="http://www.videohelp.com/forum/userguides/152875.php" target="_blank">DVD burning tutorial</a><br />
<br />
<br />
Coming Soon...<br />
<br />
This tutorial <span style="color: red;">does not</span> in any way, shape, or form constitute piracy. Tutorialshare is <span style="color: red;">not</span> in any way responsible for its misuse. Tutorialshare is <span style="color: red;">not</span> affiliated with any of the links provided. The content of the links are copyrighted by their author.]]></description>
			<content:encoded><![CDATA[1. Go File&gt;Export<br />
2. Select Options<br />
3. Export as: AVI<br />
4. Save the file<br />
5. Open <a href="http://www.videotools.net/bin/bbmpg12418.zip" target="_blank">bbmpg</a><br />
Alternately: <a href="http://www.avisynth.org/" target="_blank">Avisynth</a> and <a href="http://nic.dnsalias.com/QuEnc.html" target="_blank">QuEnc</a> can be used<br />
6. Hit add and select the avi file created by Avid<br />
7. Hit start encoding and select settings<br />
8. Select video stream settings and select MPEG-2 video type. Click OK<br />
9. Click start and wait for the video to be encoded and close bbmpg when done<br />
10. Open TMPGEnc <a href="http://www.tmpgenc.net/e_main.html" target="_blank">TMPGEnc</a><br />
11. Go File&gt;MPEG Tools<br />
12. Select Simple De-multiplex<br />
13. Hit Browse next to Input and select the mpg file that was created earlier in TMPGEnc<br />
14. Hit run<br />
15. Open <a href="http://www.videohelp.com/~liquid217/dvdauthorgui.pl" target="_blank">DVDAuthorGUI</a><br />
16. Click add title<br />
17. Browse to the folder with the files that were De-multiplexed in TMPGEnc<br />
18. Select the m2v file and click open<br />
19. Select the mp2 file and click open<br />
20. Add chapters and titlesets (Optional)<br />
21. Go File&amp;gt;Create iso after authoring<br />
22. Select Author DVD and select a folder to output all of the files<br />
23. Burn the iso using a burning program or burn the VIDEO_TS and AUDIO_TS folders using a burning program.*<br />
<br />
* Note: Using a DVD playback program is advised before burning to ensure that DVD menus will work. Free DVD playback programs are available such as <a href="http://www.videolan.org/vlc/" target="_blank">VLC media player</a>.<br />
<br />
More resources:<br />
<a href="http://www.coujo.de/ib2/index.php?act=module&amp;module=include&amp;incl_name=download" target="_blank">Imgtool</a> Free burning program<br />
<a href="http://www.videohelp.com/forum/userguides/152875.php" target="_blank">DVD burning tutorial</a><br />
<br />
<br />
Coming Soon...<br />
<br />
This tutorial <span style="color: red;">does not</span> in any way, shape, or form constitute piracy. Tutorialshare is <span style="color: red;">not</span> in any way responsible for its misuse. Tutorialshare is <span style="color: red;">not</span> affiliated with any of the links provided. The content of the links are copyrighted by their author.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to capture video from your Xbox or 360]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=20</link>
			<pubDate>Mon, 04 Sep 2006 10:23:57 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=20</guid>
			<description><![CDATA[Requirements:<br />
<br />
1. a graphics card with tv tuner (I prefer Ati but Nvidia cards at most a year<br />
old will work as long as it has a tv tuner)<br />
2. ram for the computer that will be capturing (512MB minimum but more may<br />
be needed so either go for at least 1GB or raise the virtual memory setting)<br />
3. software to capture (Ati comes with Ati Multimedia center that captures<br />
from the tv tuner, audio and video)<br />
4. a splitter for cable wires, coaxial cable, to split the signal of one cable wire to two cable wires (optional for tv and computer output)<br />
<br />
<span style="font-weight: bold;">Connecting the cables to the computer and tv</span><br />
<br />
<span style="font-weight: bold;">Splitter Method</span><br />
The first step is to connect the coaxial cable, black cable that screws into tv, to the graphics card. Take and unplug the cable wire from the tv and plug it into a cable splitter. Then take and plug two cable wires into the splitter. Finally connect one of the cables from the splitter into the tv and the other into the computer so the video and audio can go to both the tv and computer.<br />
<br />
<span style="font-weight: bold;">Single Cable Method</span><br />
For direct capturing to the computer without seeing the output on a tv just plug the coaxial cable into the computer's graphics card.<br />
<br />
<span style="font-weight: bold;">Capturing</span><br />
<br />
The computer should receive the same signals that go to the tv. First do a test capture by opening up the capture software, for Ati graphics cards Ati Multimedia Center, and press the capture button sometimes located under the File menu. Video shown on the tv is captured if done correctly. Now capturing can be used to capture video from a video game on the Xbox 360 or any other console that is connected to the tv.<br />
<br />
This tutorial <span style="color: red;">does not</span> in any way, shape, or form constitute piracy. Tutorialshare is <span style="color: red;">not</span> in any way responsible for its misuse.]]></description>
			<content:encoded><![CDATA[Requirements:<br />
<br />
1. a graphics card with tv tuner (I prefer Ati but Nvidia cards at most a year<br />
old will work as long as it has a tv tuner)<br />
2. ram for the computer that will be capturing (512MB minimum but more may<br />
be needed so either go for at least 1GB or raise the virtual memory setting)<br />
3. software to capture (Ati comes with Ati Multimedia center that captures<br />
from the tv tuner, audio and video)<br />
4. a splitter for cable wires, coaxial cable, to split the signal of one cable wire to two cable wires (optional for tv and computer output)<br />
<br />
<span style="font-weight: bold;">Connecting the cables to the computer and tv</span><br />
<br />
<span style="font-weight: bold;">Splitter Method</span><br />
The first step is to connect the coaxial cable, black cable that screws into tv, to the graphics card. Take and unplug the cable wire from the tv and plug it into a cable splitter. Then take and plug two cable wires into the splitter. Finally connect one of the cables from the splitter into the tv and the other into the computer so the video and audio can go to both the tv and computer.<br />
<br />
<span style="font-weight: bold;">Single Cable Method</span><br />
For direct capturing to the computer without seeing the output on a tv just plug the coaxial cable into the computer's graphics card.<br />
<br />
<span style="font-weight: bold;">Capturing</span><br />
<br />
The computer should receive the same signals that go to the tv. First do a test capture by opening up the capture software, for Ati graphics cards Ati Multimedia Center, and press the capture button sometimes located under the File menu. Video shown on the tv is captured if done correctly. Now capturing can be used to capture video from a video game on the Xbox 360 or any other console that is connected to the tv.<br />
<br />
This tutorial <span style="color: red;">does not</span> in any way, shape, or form constitute piracy. Tutorialshare is <span style="color: red;">not</span> in any way responsible for its misuse.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Operators and Operands]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=23</link>
			<pubDate>Sat, 02 Sep 2006 21:45:21 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=23</guid>
			<description><![CDATA[I will now cover the most used operators. I will tell about operands or the variable, constant, string, etc that is taking the operation.<br />
<br />
First I'm sure everyone is familiar with math operators on numbers.<br />
The math operators are + for addition, - for subtraction, * for multiply, / for divide, and %, modulus, for the remainder after division. Parentheses are an operator also and are explained later. I will show an example of each one being used so I will pull out the magic template for console programs, for use with <a href="http://www.bloodshed.net/devcpp.html" target="_blank">dev-cpp</a> of course but MS Visual C++ can use it with some modifications. Two additional operators are also available to to increment, ++, or decrement, --, a variable by one value for example a variable has a value of 1 is incremented to 2 or decremented to 0. Note: using ++ or -- before a variable increments or decrements before using it and after increments or decrements after using it.  A sizeof operator is also available on all types of variables to tell how much memory a variable of that type takes up. <br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;iostream&gt;<br />
#include &lt;stdlib.h&gt;<br />
<br />
using namespace std;<br />
<br />
int main(int argc, char *argv[&#93;)<br />
{<br />
&nbsp;&nbsp;//let's give n a value of 0.3<br />
&nbsp;&nbsp;int n = 0.3;<br />
<br />
&nbsp;&nbsp;//let's give a a value of 100<br />
&nbsp;&nbsp;int a = 100;<br />
<br />
&nbsp;&nbsp;//add a and 2 and store the value to b<br />
&nbsp;&nbsp;int b = a + 2;<br />
<br />
&nbsp;&nbsp;//add n and 1000 and store to o<br />
&nbsp;&nbsp;float o = n + 1000.2;<br />
<br />
&nbsp;&nbsp;//let's output the value of b<br />
&nbsp;&nbsp;//"&#92;n" or endl can be used to output to a newline<br />
&nbsp;&nbsp;cout&lt;&lt;b&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;//let's output the value of o<br />
&nbsp;&nbsp;cout&lt;&lt;o&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;//let's give c a value of .1<br />
&nbsp;&nbsp;float c = .1;<br />
<br />
&nbsp;&nbsp;//subtract c from o<br />
&nbsp;&nbsp;float p = o - c;<br />
<br />
&nbsp;&nbsp;//let's output the value of p<br />
&nbsp;&nbsp;cout&lt;&lt;p&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;//multiply p times .4<br />
&nbsp;&nbsp;p = p * .4;<br />
<br />
&nbsp;&nbsp;//let's output the value of p<br />
&nbsp;&nbsp;cout&lt;&lt;p&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;//divide p by 3<br />
&nbsp;&nbsp;p = p / 3;<br />
<br />
&nbsp;&nbsp;//let's output the value of p<br />
&nbsp;&nbsp;cout&lt;&lt;p&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;system("PAUSE");<br />
&nbsp;&nbsp;return 0;<br />
}</code></div></div>
Parentheses are used just like in math to indicate an operation you want done first. Like if you want to add two values before multiplying them by another.<br />
<br />
Alright that takes care of the math operators. Now let's try some operators on strings.<br />
Operators on strings are same as some math operators but be careful. Strings and numbers can not have an operator in between them unless the number is converted to a string. Other common operators are little more advanced such as braces, {}, and brackets, [&#93;.<br />
<br />
That concludes the basic operators and operands of C++.]]></description>
			<content:encoded><![CDATA[I will now cover the most used operators. I will tell about operands or the variable, constant, string, etc that is taking the operation.<br />
<br />
First I'm sure everyone is familiar with math operators on numbers.<br />
The math operators are + for addition, - for subtraction, * for multiply, / for divide, and %, modulus, for the remainder after division. Parentheses are an operator also and are explained later. I will show an example of each one being used so I will pull out the magic template for console programs, for use with <a href="http://www.bloodshed.net/devcpp.html" target="_blank">dev-cpp</a> of course but MS Visual C++ can use it with some modifications. Two additional operators are also available to to increment, ++, or decrement, --, a variable by one value for example a variable has a value of 1 is incremented to 2 or decremented to 0. Note: using ++ or -- before a variable increments or decrements before using it and after increments or decrements after using it.  A sizeof operator is also available on all types of variables to tell how much memory a variable of that type takes up. <br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;iostream&gt;<br />
#include &lt;stdlib.h&gt;<br />
<br />
using namespace std;<br />
<br />
int main(int argc, char *argv[])<br />
{<br />
&nbsp;&nbsp;//let's give n a value of 0.3<br />
&nbsp;&nbsp;int n = 0.3;<br />
<br />
&nbsp;&nbsp;//let's give a a value of 100<br />
&nbsp;&nbsp;int a = 100;<br />
<br />
&nbsp;&nbsp;//add a and 2 and store the value to b<br />
&nbsp;&nbsp;int b = a + 2;<br />
<br />
&nbsp;&nbsp;//add n and 1000 and store to o<br />
&nbsp;&nbsp;float o = n + 1000.2;<br />
<br />
&nbsp;&nbsp;//let's output the value of b<br />
&nbsp;&nbsp;//"&#92;n" or endl can be used to output to a newline<br />
&nbsp;&nbsp;cout&lt;&lt;b&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;//let's output the value of o<br />
&nbsp;&nbsp;cout&lt;&lt;o&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;//let's give c a value of .1<br />
&nbsp;&nbsp;float c = .1;<br />
<br />
&nbsp;&nbsp;//subtract c from o<br />
&nbsp;&nbsp;float p = o - c;<br />
<br />
&nbsp;&nbsp;//let's output the value of p<br />
&nbsp;&nbsp;cout&lt;&lt;p&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;//multiply p times .4<br />
&nbsp;&nbsp;p = p * .4;<br />
<br />
&nbsp;&nbsp;//let's output the value of p<br />
&nbsp;&nbsp;cout&lt;&lt;p&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;//divide p by 3<br />
&nbsp;&nbsp;p = p / 3;<br />
<br />
&nbsp;&nbsp;//let's output the value of p<br />
&nbsp;&nbsp;cout&lt;&lt;p&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;system("PAUSE");<br />
&nbsp;&nbsp;return 0;<br />
}</code></div></div>
Parentheses are used just like in math to indicate an operation you want done first. Like if you want to add two values before multiplying them by another.<br />
<br />
Alright that takes care of the math operators. Now let's try some operators on strings.<br />
Operators on strings are same as some math operators but be careful. Strings and numbers can not have an operator in between them unless the number is converted to a string. Other common operators are little more advanced such as braces, {}, and brackets, [].<br />
<br />
That concludes the basic operators and operands of C++.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Grungy Pixel Stretch]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=21</link>
			<pubDate>Fri, 18 Aug 2006 15:20:32 -0700</pubDate>
			<dc:creator>SAFC</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=21</guid>
			<description><![CDATA[A basic but informative sig tut which should be of some use to beginners in particular, it was made using photoshop CS2 although you could make this sig using anything from version 7 and up. <br />
<br />
<img src="http://img238.imageshack.us/img238/8931/tutorial0aj.jpg" border="0" alt="[Image: tutorial0aj.jpg&#93;" />]]></description>
			<content:encoded><![CDATA[A basic but informative sig tut which should be of some use to beginners in particular, it was made using photoshop CS2 although you could make this sig using anything from version 7 and up. <br />
<br />
<img src="http://img238.imageshack.us/img238/8931/tutorial0aj.jpg" border="0" alt="[Image: tutorial0aj.jpg]" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Require_once and include_once]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=12</link>
			<pubDate>Sat, 05 Aug 2006 09:40:17 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=12</guid>
			<description><![CDATA[The include and require functions are handy for using files that contain other variables, functions, etc. What happens when you have a collision between function names though? Well quite simply you get an error.<br />
<br />
Say you have a function called name in a file called functions.php.<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">()<br />{<br /></span><span style="color: #FF8000">//do&nbsp;something&nbsp;or&nbsp;return&nbsp;a&nbsp;variable<br /></span><span style="color: #007700">}&nbsp;<br /></span></code></div></div></div>
<br />
Now say you have file 1.php 2.php and 3.php and they all use this function and share some variables.<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<br />
Finally we have file named index.php which uses the values.<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">include&nbsp;(</span><span style="color: #DD0000">"1.php"</span><span style="color: #007700">);<br />include&nbsp;(</span><span style="color: #DD0000">"2.php"</span><span style="color: #007700">);<br />include&nbsp;(</span><span style="color: #DD0000">"3.php"</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
<br />
Well index.php will cause an error that the function name has be redeclared. How do we fix it? Very easily. require_once is a function similar to the require that was used yet it only requires the file to be required one time. Therefore there is only one function called name. include_once works similarly except that is including the file and the file isn’t required.<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require_once&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require_once&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require_once&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<br />
Now when including the files in index.php we don’t get the error.]]></description>
			<content:encoded><![CDATA[The include and require functions are handy for using files that contain other variables, functions, etc. What happens when you have a collision between function names though? Well quite simply you get an error.<br />
<br />
Say you have a function called name in a file called functions.php.<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">()<br />{<br /></span><span style="color: #FF8000">//do&nbsp;something&nbsp;or&nbsp;return&nbsp;a&nbsp;variable<br /></span><span style="color: #007700">}&nbsp;<br /></span></code></div></div></div>
<br />
Now say you have file 1.php 2.php and 3.php and they all use this function and share some variables.<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<br />
Finally we have file named index.php which uses the values.<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">include&nbsp;(</span><span style="color: #DD0000">"1.php"</span><span style="color: #007700">);<br />include&nbsp;(</span><span style="color: #DD0000">"2.php"</span><span style="color: #007700">);<br />include&nbsp;(</span><span style="color: #DD0000">"3.php"</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
<br />
Well index.php will cause an error that the function name has be redeclared. How do we fix it? Very easily. require_once is a function similar to the require that was used yet it only requires the file to be required one time. Therefore there is only one function called name. include_once works similarly except that is including the file and the file isn’t required.<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require_once&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require_once&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">require_once&nbsp;(</span><span style="color: #DD0000">"functions.php"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">name</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//some&nbsp;variables&nbsp;<br /></span></code></div></div></div>
<br />
Now when including the files in index.php we don’t get the error.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Progress]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=11</link>
			<pubDate>Sat, 15 Jul 2006 21:43:02 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=11</guid>
			<description><![CDATA[This thread is where I will post the progress of Tutorialshare.<br />
<br />
Forum <span style="font-weight: bold;">DONE</span><br />
Links <span style="font-weight: bold;">DONE</span><br />
Support <span style="font-weight: bold;">DONE</span><br />
Home page <span style="font-weight: bold;">DONE</span><br />
Submit Tutorials]]></description>
			<content:encoded><![CDATA[This thread is where I will post the progress of Tutorialshare.<br />
<br />
Forum <span style="font-weight: bold;">DONE</span><br />
Links <span style="font-weight: bold;">DONE</span><br />
Support <span style="font-weight: bold;">DONE</span><br />
Home page <span style="font-weight: bold;">DONE</span><br />
Submit Tutorials]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Posting Tutorials]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=10</link>
			<pubDate>Sat, 15 Jul 2006 21:37:01 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=10</guid>
			<description><![CDATA[<span style="font-weight: bold;">Tutorials Condoning Illicit Activities</span><br />
Tutorials that condone <span style="color: red;">illegal</span> activities of any kind are <span style="color: red;">not</span> allowed. Tutorials that are very helpful but have the potential of helping someone commit an illegal activity are allowed but must  provide a disclaimer.<br />
<br />
<span style="font-weight: bold;">Images</span><br />
If your tutorial has images associated with it please attach them to your post. This way the images are hosted on tutorialshare.<br />
<br />
<span style="font-weight: bold;">Ripping Tutorials</span><br />
Ripping tutorials is <span style="color: red;">forbidden</span> on our site. If you come here and post a tutorial from somewhere else that isn't your own or go somewhere else and post a tutorial from this site that is not your own you will be <span style="color: red;">banned</span>.<br />
<br />
<span style="font-weight: bold;">Post after tutorial</span><br />
When posting tutorials please include the following code at the end of the tutorial to encourage users to register.<br />
<br />
<blockquote><cite>Quote:</cite>If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.</blockquote>
<br />
Thanks daman371.]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;">Tutorials Condoning Illicit Activities</span><br />
Tutorials that condone <span style="color: red;">illegal</span> activities of any kind are <span style="color: red;">not</span> allowed. Tutorials that are very helpful but have the potential of helping someone commit an illegal activity are allowed but must  provide a disclaimer.<br />
<br />
<span style="font-weight: bold;">Images</span><br />
If your tutorial has images associated with it please attach them to your post. This way the images are hosted on tutorialshare.<br />
<br />
<span style="font-weight: bold;">Ripping Tutorials</span><br />
Ripping tutorials is <span style="color: red;">forbidden</span> on our site. If you come here and post a tutorial from somewhere else that isn't your own or go somewhere else and post a tutorial from this site that is not your own you will be <span style="color: red;">banned</span>.<br />
<br />
<span style="font-weight: bold;">Post after tutorial</span><br />
When posting tutorials please include the following code at the end of the tutorial to encourage users to register.<br />
<br />
<blockquote><cite>Quote:</cite>If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.</blockquote>
<br />
Thanks daman371.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[VB6: Read and Write to Files]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=9</link>
			<pubDate>Wed, 12 Jul 2006 12:01:37 -0700</pubDate>
			<dc:creator>eRott</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=9</guid>
			<description><![CDATA[<span style="text-decoration: underline;"><span style="color: blue;"><span style="font-size: medium;"><span style="font-weight: bold;">Reading and Writing to Text Files Using Microsoft Visual Basic 6</span></span></span></span><br />
<br />
In Visual Basic, the ability to read and write to files can be a great value. You can use this to store High Scores for a game, or even write your own simple messaging system! The possibilites are endless. Just follow along with with tutorial and you will be reading and writing to files in no time.<br />
<span style="color: red;"><span style="font-weight: bold;">Note:</span> lines of code that are green are my comments. They explain what that section of coding does. They will not affect the code inside Visual Basic. Visual Basic will disregard any lines with a <span style="font-weight: bold;"> ' </span> in front and show them as comments. Not run it with the coding.</span><br />
<br />
The first step is to create your work folder. Keeping everything in one folder makes writing your code all that much easier. So create a folder, naming it whatever you want. Next open up Visual Basic 6 and create a new project, make sure to select "Standard EXE".<br />
<br />
Our next step is to create the files we want to read and write to. Because we are using text files in this tutorial, inside the folder you created, create a new text file. Making the name simple will help to ensure a more organized program. I will name my text file "age.txt"<br />
<br />
Lets assume at this point we are making a program that will record a persons age. So all we need is (2) text boxes, (2) labels, (3) command buttons, and (1) list box. So first lets gather all our necessary items. To add them to your form, just double click the icons in your toolbar to add them.<br />
<br />
<img src="http://www.erott.retect.com/resources/tutorials/vb/vb_001.jpg" border="0" alt="[Image: vb_001.jpg&#93;" /><br />
<br />
Next we will need to name them. For each of the objects, in the properties window, enter this information:<br />
<br />
<span style="font-weight: bold;">Label1</span><br />
  (Name):     lblName<br />
  Caption:    What is your name? //you will most likely have to make the label bigger<br />
  BackStyle:  0 - Transparent<br />
  TabIndex:   6<br />
<br />
<span style="font-weight: bold;">Label2</span><br />
  (Name):     lblAge<br />
  Caption:    What is your age? //you will most likely have to make the label bigger<br />
  BackStyle:  0 - Transparent<br />
  TabIndex:   7<br />
<br />
<span style="font-weight: bold;">Text1</span><br />
  (Name):    txtName<br />
  Text:      (delete the text inside of here to make the text box blank)<br />
  TabIndex:  0<br />
<br />
<span style="font-weight: bold;">Text2</span><br />
  (Name):    txtAge<br />
  Text:      (delete the text inside of here to make the text box blank)<br />
  TabIndex:  1<br />
<br />
<span style="font-weight: bold;">Command1</span><br />
  (Name):    cmdSubmit<br />
  Caption:   Submit<br />
  TabIndex:  2<br />
<br />
<span style="font-weight: bold;">Command2</span><br />
  (Name):    cmdView<br />
  Caption:   View<br />
  TabIndex:  3<br />
<br />
<span style="font-weight: bold;">Command3</span><br />
  (Name):    cmdExit<br />
  Caption:   Exit<br />
  TabIndex:  4<br />
<br />
<span style="font-weight: bold;">List1</span><br />
  (Name):    lstView<br />
  Visible: False<br />
  TabIndex:  5<br />
<br />
<img src="http://www.erott.retect.com/resources/tutorials/vb/vb_002.jpg" border="0" alt="[Image: vb_002.jpg&#93;" />&lt;--Before____After--&gt;<img src="http://www.erott.retect.com/resources/tutorials/vb/vb_003.jpg" border="0" alt="[Image: vb_003.jpg&#93;" /><br />
<br />
Now that we have our form created we can now begin to code it. First, double click on the "Submit" button; the one you created. A new window should pop open and you should see the section:<br />
<br />
[quote[<br />
Private Sub cmdSubmit_Click()<br />
<br />
End Sub<br />
[/quote&#93;<br />
<br />
That is the command buttons code section where everything we want the Submit button to do will go. Inside that section enter the following code so it will look like:<br />
<br />
<blockquote><cite>Quote:</cite>Private Sub cmdSubmit_Click()<br />
Dim intMessageFile As Integer <span style="color: green;">'declare variable</span><br />
Dim Age As String <span style="color: green;">'declare variable</span><br />
Dim Name As String <span style="color: green;">'declare variable</span><br />
<br />
Age = txtAge.Text <span style="color: green;">'give value to age variable</span><br />
lstView.Visible = False<br />
<br />
intMessageFile = FreeFile<br />
Open "age.txt" For Append As #intMessageFile <span style="color: green;">'open the text file</span><br />
Name = txtName.Text <span style="color: green;">'Give value to name variable</span><br />
Write #intMessageFile, Name; Age <span style="color: green;">'write the name and age to age.txt</span><br />
Close #intMessageFile <span style="color: green;">'close the text file</span><br />
End Sub</blockquote>
<br />
Next we must write the code that will allow us to read the contents of the text file. In addition, as a precaution, we are going to add a horizontal scroll bar to the list box in case the content is very long. So we will also have to be adding a module to our project. There is automatically a vertical scroll bar, so we do not need to add one. Double click on the View button you created and inside that section enter the following code so it would look like:<br />
<br />
<blockquote><cite>Quote:</cite>Private Sub cmdView_Click()<br />
lstView.Visible = True<br />
<br />
Dim Content As String<br />
Dim Message As String<br />
intMessageFile = FreeFile<br />
Open "age.txt" For Input As #intMessageFile<br />
Do<br />
If Not EOF(intMessageFile) Then<br />
Input #intMessageFile, Message<br />
Content = Message<br />
lstMsgBox.AddItem Content<br />
Else<br />
Close #intMessageFile<br />
<span style="color: green;">'if you were not to include the below lines of code,<br />
'Visual Basic would only read and display the first<br />
'line of the text file. To overcome this, we tell the program<br />
'to keep "looping"; reading everyline of the text file until it<br />
'does not encounter anymore lines. Therefor reading and<br />
'showing every line.</span><br />
GoTo LoopEnd<br />
End If<br />
Loop<br />
LoopEnd:<br />
<br />
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''<br />
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''<br />
''''''''BEGIN ADDITION OF HORIZONTAL SCROLL BAR''''''''<br />
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''<br />
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''<br />
<br />
Dim c As Long<br />
Dim rcText As RECT<br />
Dim newWidth As Long<br />
Dim itemWidth As Long<br />
Dim sysScrollWidth As Long<br />
   <br />
<span style="color: green;">'assure that the form font is the same as the</span><br />
<span style="color: green;">'list font to assure the DrawText method</span><br />
<span style="color: green;">'calculates the width correctly.</span><br />
    Form1.Font.Name = lstView.Font.Name<br />
    Form1.Font.Bold = lstView.Font.Bold<br />
    Form1.Font.Size = lstView.Font.Size<br />
   <br />
<span style="color: green;">'get the width of the system scrollbar</span><br />
    sysScrollWidth = GetSystemMetrics(SM_CXVSCROLL)<br />
   <br />
<span style="color: green;">'loop through the list items, using DrawText</span><br />
<span style="color: green;">'with DT_CALCRECT to determine the longest item.</span><br />
    For c = 0 To lstView.ListCount - 1<br />
    Call DrawText(Form1.hDC, (lstView.List&copy;), -1&amp;, rcText, DT_CALCRECT)<br />
      <br />
<span style="color: green;">'calc the required width to display the</span><br />
<span style="color: green;">'widest list item by adding the rect</span><br />
<span style="color: green;">'width needed to display the item</span><br />
<span style="color: green;">'with the width of the system scroll bar</span><br />
    itemWidth = rcText.Right + sysScrollWidth<br />
         <br />
<span style="color: green;">'if this width is wider than a previous</span><br />
<span style="color: green;">'value, save the longer width</span><br />
    If itemWidth &gt;= newWidth Then<br />
        newWidth = itemWidth<br />
    End If<br />
    Next<br />
   <br />
<span style="color: green;">'add a horizontal scrollbar wide enough</span><br />
<span style="color: green;">'to display the longest list item. If the</span><br />
<span style="color: green;">'scrollbar is not needed, its not shown.</span><br />
    Call SendMessage(lstView.hwnd, LB_SETHORIZONTALEXTENT, newWidth, ByVal 0&#x26;amp<img src="http://tutorialshare.daman371designs.com/community/images/smilies/wink.gif" style="vertical-align: middle;" border="0" alt="Wink" title="Wink" /><br />
End Sub</blockquote>
<br />
As for the module, will will have to first create one in our project. Under the Porject tab at the top of the page, click Add a Module. You can name the module whatever you like, it does not matter. Now, double click the module, and enter this code exactly:<br />
<br />
<blockquote><cite>Quote:</cite>Public Const LB_GETHORIZONTALEXTENT = &amp;H193<br />
Public Const LB_SETHORIZONTALEXTENT = &amp;H194<br />
Public Const DT_CALCRECT = &amp;H400<br />
Public Const SM_CXVSCROLL = 2<br />
<br />
Public Type RECT<br />
   Left As Long<br />
   Top As Long<br />
   Right As Long<br />
   Bottom As Long<br />
End Type<br />
<br />
Public Declare Function DrawText Lib "user32" _<br />
   Alias "DrawTextA" _<br />
  (ByVal hDC As Long, _<br />
   ByVal lpStr As String, _<br />
   ByVal nCount As Long, _<br />
   lpRect As RECT, ByVal _<br />
   wFormat As Long) As Long<br />
   <br />
Public Declare Function GetSystemMetrics Lib "user32" _<br />
  (ByVal nIndex As Long) As Long<br />
<br />
Public Declare Function SendMessage Lib "user32" _<br />
   Alias "SendMessageA" _<br />
  (ByVal hwnd As Long, _<br />
   ByVal wMsg As Long, _<br />
   ByVal wParam As Long, _<br />
   lParam As Any) As Long</blockquote>
<br />
Now we want to allow a user to safely exit the program. For this we use the Exit button. A simple word will end the program; that being "End". Double click the Exit button you created and enter this code so it will look like:<br />
<br />
<blockquote><cite>Quote:</cite>Private Sub cmdExit_Click()<br />
End<br />
End Sub</blockquote>
<br />
And that is all it takes to read from and write to text files using Visual Basic 6. Now that you've complete the tutotial yourself, if you are having trouble you can download the project from <a href="http://www.erott.retect.com/resources/tutorials/vb/read_write_to_text_file_vb6.zip" target="_blank"><span style="font-weight: bold;">here</span></a>. Or you can email me if you have any questions.<br />
<br />
Author: Brendon LaRusic<br />
Email: loosesniper@gmail.com<br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></description>
			<content:encoded><![CDATA[<span style="text-decoration: underline;"><span style="color: blue;"><span style="font-size: medium;"><span style="font-weight: bold;">Reading and Writing to Text Files Using Microsoft Visual Basic 6</span></span></span></span><br />
<br />
In Visual Basic, the ability to read and write to files can be a great value. You can use this to store High Scores for a game, or even write your own simple messaging system! The possibilites are endless. Just follow along with with tutorial and you will be reading and writing to files in no time.<br />
<span style="color: red;"><span style="font-weight: bold;">Note:</span> lines of code that are green are my comments. They explain what that section of coding does. They will not affect the code inside Visual Basic. Visual Basic will disregard any lines with a <span style="font-weight: bold;"> ' </span> in front and show them as comments. Not run it with the coding.</span><br />
<br />
The first step is to create your work folder. Keeping everything in one folder makes writing your code all that much easier. So create a folder, naming it whatever you want. Next open up Visual Basic 6 and create a new project, make sure to select "Standard EXE".<br />
<br />
Our next step is to create the files we want to read and write to. Because we are using text files in this tutorial, inside the folder you created, create a new text file. Making the name simple will help to ensure a more organized program. I will name my text file "age.txt"<br />
<br />
Lets assume at this point we are making a program that will record a persons age. So all we need is (2) text boxes, (2) labels, (3) command buttons, and (1) list box. So first lets gather all our necessary items. To add them to your form, just double click the icons in your toolbar to add them.<br />
<br />
<img src="http://www.erott.retect.com/resources/tutorials/vb/vb_001.jpg" border="0" alt="[Image: vb_001.jpg]" /><br />
<br />
Next we will need to name them. For each of the objects, in the properties window, enter this information:<br />
<br />
<span style="font-weight: bold;">Label1</span><br />
  (Name):     lblName<br />
  Caption:    What is your name? //you will most likely have to make the label bigger<br />
  BackStyle:  0 - Transparent<br />
  TabIndex:   6<br />
<br />
<span style="font-weight: bold;">Label2</span><br />
  (Name):     lblAge<br />
  Caption:    What is your age? //you will most likely have to make the label bigger<br />
  BackStyle:  0 - Transparent<br />
  TabIndex:   7<br />
<br />
<span style="font-weight: bold;">Text1</span><br />
  (Name):    txtName<br />
  Text:      (delete the text inside of here to make the text box blank)<br />
  TabIndex:  0<br />
<br />
<span style="font-weight: bold;">Text2</span><br />
  (Name):    txtAge<br />
  Text:      (delete the text inside of here to make the text box blank)<br />
  TabIndex:  1<br />
<br />
<span style="font-weight: bold;">Command1</span><br />
  (Name):    cmdSubmit<br />
  Caption:   Submit<br />
  TabIndex:  2<br />
<br />
<span style="font-weight: bold;">Command2</span><br />
  (Name):    cmdView<br />
  Caption:   View<br />
  TabIndex:  3<br />
<br />
<span style="font-weight: bold;">Command3</span><br />
  (Name):    cmdExit<br />
  Caption:   Exit<br />
  TabIndex:  4<br />
<br />
<span style="font-weight: bold;">List1</span><br />
  (Name):    lstView<br />
  Visible: False<br />
  TabIndex:  5<br />
<br />
<img src="http://www.erott.retect.com/resources/tutorials/vb/vb_002.jpg" border="0" alt="[Image: vb_002.jpg]" />&lt;--Before____After--&gt;<img src="http://www.erott.retect.com/resources/tutorials/vb/vb_003.jpg" border="0" alt="[Image: vb_003.jpg]" /><br />
<br />
Now that we have our form created we can now begin to code it. First, double click on the "Submit" button; the one you created. A new window should pop open and you should see the section:<br />
<br />
[quote[<br />
Private Sub cmdSubmit_Click()<br />
<br />
End Sub<br />
[/quote]<br />
<br />
That is the command buttons code section where everything we want the Submit button to do will go. Inside that section enter the following code so it will look like:<br />
<br />
<blockquote><cite>Quote:</cite>Private Sub cmdSubmit_Click()<br />
Dim intMessageFile As Integer <span style="color: green;">'declare variable</span><br />
Dim Age As String <span style="color: green;">'declare variable</span><br />
Dim Name As String <span style="color: green;">'declare variable</span><br />
<br />
Age = txtAge.Text <span style="color: green;">'give value to age variable</span><br />
lstView.Visible = False<br />
<br />
intMessageFile = FreeFile<br />
Open "age.txt" For Append As #intMessageFile <span style="color: green;">'open the text file</span><br />
Name = txtName.Text <span style="color: green;">'Give value to name variable</span><br />
Write #intMessageFile, Name; Age <span style="color: green;">'write the name and age to age.txt</span><br />
Close #intMessageFile <span style="color: green;">'close the text file</span><br />
End Sub</blockquote>
<br />
Next we must write the code that will allow us to read the contents of the text file. In addition, as a precaution, we are going to add a horizontal scroll bar to the list box in case the content is very long. So we will also have to be adding a module to our project. There is automatically a vertical scroll bar, so we do not need to add one. Double click on the View button you created and inside that section enter the following code so it would look like:<br />
<br />
<blockquote><cite>Quote:</cite>Private Sub cmdView_Click()<br />
lstView.Visible = True<br />
<br />
Dim Content As String<br />
Dim Message As String<br />
intMessageFile = FreeFile<br />
Open "age.txt" For Input As #intMessageFile<br />
Do<br />
If Not EOF(intMessageFile) Then<br />
Input #intMessageFile, Message<br />
Content = Message<br />
lstMsgBox.AddItem Content<br />
Else<br />
Close #intMessageFile<br />
<span style="color: green;">'if you were not to include the below lines of code,<br />
'Visual Basic would only read and display the first<br />
'line of the text file. To overcome this, we tell the program<br />
'to keep "looping"; reading everyline of the text file until it<br />
'does not encounter anymore lines. Therefor reading and<br />
'showing every line.</span><br />
GoTo LoopEnd<br />
End If<br />
Loop<br />
LoopEnd:<br />
<br />
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''<br />
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''<br />
''''''''BEGIN ADDITION OF HORIZONTAL SCROLL BAR''''''''<br />
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''<br />
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''<br />
<br />
Dim c As Long<br />
Dim rcText As RECT<br />
Dim newWidth As Long<br />
Dim itemWidth As Long<br />
Dim sysScrollWidth As Long<br />
   <br />
<span style="color: green;">'assure that the form font is the same as the</span><br />
<span style="color: green;">'list font to assure the DrawText method</span><br />
<span style="color: green;">'calculates the width correctly.</span><br />
    Form1.Font.Name = lstView.Font.Name<br />
    Form1.Font.Bold = lstView.Font.Bold<br />
    Form1.Font.Size = lstView.Font.Size<br />
   <br />
<span style="color: green;">'get the width of the system scrollbar</span><br />
    sysScrollWidth = GetSystemMetrics(SM_CXVSCROLL)<br />
   <br />
<span style="color: green;">'loop through the list items, using DrawText</span><br />
<span style="color: green;">'with DT_CALCRECT to determine the longest item.</span><br />
    For c = 0 To lstView.ListCount - 1<br />
    Call DrawText(Form1.hDC, (lstView.List&copy;), -1&amp;, rcText, DT_CALCRECT)<br />
      <br />
<span style="color: green;">'calc the required width to display the</span><br />
<span style="color: green;">'widest list item by adding the rect</span><br />
<span style="color: green;">'width needed to display the item</span><br />
<span style="color: green;">'with the width of the system scroll bar</span><br />
    itemWidth = rcText.Right + sysScrollWidth<br />
         <br />
<span style="color: green;">'if this width is wider than a previous</span><br />
<span style="color: green;">'value, save the longer width</span><br />
    If itemWidth &gt;= newWidth Then<br />
        newWidth = itemWidth<br />
    End If<br />
    Next<br />
   <br />
<span style="color: green;">'add a horizontal scrollbar wide enough</span><br />
<span style="color: green;">'to display the longest list item. If the</span><br />
<span style="color: green;">'scrollbar is not needed, its not shown.</span><br />
    Call SendMessage(lstView.hwnd, LB_SETHORIZONTALEXTENT, newWidth, ByVal 0&amp<img src="http://tutorialshare.daman371designs.com/community/images/smilies/wink.gif" style="vertical-align: middle;" border="0" alt="Wink" title="Wink" /><br />
End Sub</blockquote>
<br />
As for the module, will will have to first create one in our project. Under the Porject tab at the top of the page, click Add a Module. You can name the module whatever you like, it does not matter. Now, double click the module, and enter this code exactly:<br />
<br />
<blockquote><cite>Quote:</cite>Public Const LB_GETHORIZONTALEXTENT = &amp;H193<br />
Public Const LB_SETHORIZONTALEXTENT = &amp;H194<br />
Public Const DT_CALCRECT = &amp;H400<br />
Public Const SM_CXVSCROLL = 2<br />
<br />
Public Type RECT<br />
   Left As Long<br />
   Top As Long<br />
   Right As Long<br />
   Bottom As Long<br />
End Type<br />
<br />
Public Declare Function DrawText Lib "user32" _<br />
   Alias "DrawTextA" _<br />
  (ByVal hDC As Long, _<br />
   ByVal lpStr As String, _<br />
   ByVal nCount As Long, _<br />
   lpRect As RECT, ByVal _<br />
   wFormat As Long) As Long<br />
   <br />
Public Declare Function GetSystemMetrics Lib "user32" _<br />
  (ByVal nIndex As Long) As Long<br />
<br />
Public Declare Function SendMessage Lib "user32" _<br />
   Alias "SendMessageA" _<br />
  (ByVal hwnd As Long, _<br />
   ByVal wMsg As Long, _<br />
   ByVal wParam As Long, _<br />
   lParam As Any) As Long</blockquote>
<br />
Now we want to allow a user to safely exit the program. For this we use the Exit button. A simple word will end the program; that being "End". Double click the Exit button you created and enter this code so it will look like:<br />
<br />
<blockquote><cite>Quote:</cite>Private Sub cmdExit_Click()<br />
End<br />
End Sub</blockquote>
<br />
And that is all it takes to read from and write to text files using Visual Basic 6. Now that you've complete the tutotial yourself, if you are having trouble you can download the project from <a href="http://www.erott.retect.com/resources/tutorials/vb/read_write_to_text_file_vb6.zip" target="_blank"><span style="font-weight: bold;">here</span></a>. Or you can email me if you have any questions.<br />
<br />
Author: Brendon LaRusic<br />
Email: loosesniper@gmail.com<br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[C++ Introduction]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=7</link>
			<pubDate>Tue, 11 Jul 2006 12:22:09 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=7</guid>
			<description><![CDATA[C++ is an extreme language and the one of the most difficult. C++ like PHP derives from C so C functions can be called when programming in C++. I will tell about the very basics to get started into the C++ programming world. So get ready and grab <a href="http://www.bloodshed.net/devcpp.html" target="_blank">Dev-CPP</a> since it is free.<br />
<br />
Below you see the very least for a C++ console program just to run and be empty. I have commented on the main points.<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>// contains basic input and output functions like<br />
// cerr, clog, cout, and cin and basic operators<br />
#include &lt;iostream&gt;<br />
// contains other basic functions and operators<br />
// more headers are available in Dev-CPP's include directory.<br />
// These include math.h (C header) for math functions sin, cos, tan,<br />
// sqrt, fstream that contains functions for reading and writing files in<br />
// C++ (see file input and output tutorial), iomanip which contains <br />
// input and output manipulation functions and one that is very useful<br />
// string (string.h is C header) which contains string manipulation<br />
// manipulation functions such as erase and replace.<br />
#include &lt;stdlib.h&gt;<br />
<br />
// this means that you want to use the namespace std which contains<br />
// basic input and output functions otherwise you would have to call<br />
// functions, operators, etc in a manner of namespace::functionname<br />
// like std::cout<br />
using namespace std;<br />
<br />
// main function in console program<br />
// where everything goes that needs to be<br />
// done. This is a custom function and can also be seen as taking<br />
// no arguments, int main()<br />
int main(int argc, char *argv[&#93;)<br />
{<br />
<br />
&nbsp;&nbsp;// the system function. Whatever you put between the quotes<br />
&nbsp;&nbsp;// is what you want to be sent to the command line.<br />
&nbsp;&nbsp;// In this case PAUSE tells the program to wait and let the user see<br />
&nbsp;&nbsp;// the results<br />
&nbsp;&nbsp;system("PAUSE");<br />
<br />
&nbsp;&nbsp;// return value of 0 because the function's return value is int<br />
&nbsp;&nbsp;return 0;<br />
}</code></div></div>
<br />
Now that the structure of a basic console program has been explained now variables. First, what is a variable? A variable is sort of like a variable in math. Variables hold values and can be outputted. These variables can consist of letters, numbers and some symbols. Variables can not have the same name as another variable in C++. For example the first set of code outputs an error on compilation and the second compiles with no errors. Note: The code takes into consideration that the variables are declared in the main functions in the above template.<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>int i;<br />
i = 0;<br />
char i;//variable already used and declared as variable type int<br />
i = 'a';//variable is type int and cannot hold a character</code></div></div>
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>int i;//perfect<br />
i = 0;//perfect<br />
char a;//perfect<br />
a = 'a';//perfect</code></div></div>
<br />
Now for the variable types. A variable type decides what that variable can hold. A type of int can only hold whole numbers for example -1, 0, 1, etc. A type of char can only hold a single character or symbol (unless character array, or pointer). A type of string can hold letters, numbers, and symbols. A type of float can hold a single precision value (decimal, fraction) accurate to 7 decimal places. A type of double can hold double precision values (decimals, fractions) accurate to 15 decimal places.<br />
<br />
I have given enough information to write a very simple program. Good Luck.<br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></description>
			<content:encoded><![CDATA[C++ is an extreme language and the one of the most difficult. C++ like PHP derives from C so C functions can be called when programming in C++. I will tell about the very basics to get started into the C++ programming world. So get ready and grab <a href="http://www.bloodshed.net/devcpp.html" target="_blank">Dev-CPP</a> since it is free.<br />
<br />
Below you see the very least for a C++ console program just to run and be empty. I have commented on the main points.<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>// contains basic input and output functions like<br />
// cerr, clog, cout, and cin and basic operators<br />
#include &lt;iostream&gt;<br />
// contains other basic functions and operators<br />
// more headers are available in Dev-CPP's include directory.<br />
// These include math.h (C header) for math functions sin, cos, tan,<br />
// sqrt, fstream that contains functions for reading and writing files in<br />
// C++ (see file input and output tutorial), iomanip which contains <br />
// input and output manipulation functions and one that is very useful<br />
// string (string.h is C header) which contains string manipulation<br />
// manipulation functions such as erase and replace.<br />
#include &lt;stdlib.h&gt;<br />
<br />
// this means that you want to use the namespace std which contains<br />
// basic input and output functions otherwise you would have to call<br />
// functions, operators, etc in a manner of namespace::functionname<br />
// like std::cout<br />
using namespace std;<br />
<br />
// main function in console program<br />
// where everything goes that needs to be<br />
// done. This is a custom function and can also be seen as taking<br />
// no arguments, int main()<br />
int main(int argc, char *argv[])<br />
{<br />
<br />
&nbsp;&nbsp;// the system function. Whatever you put between the quotes<br />
&nbsp;&nbsp;// is what you want to be sent to the command line.<br />
&nbsp;&nbsp;// In this case PAUSE tells the program to wait and let the user see<br />
&nbsp;&nbsp;// the results<br />
&nbsp;&nbsp;system("PAUSE");<br />
<br />
&nbsp;&nbsp;// return value of 0 because the function's return value is int<br />
&nbsp;&nbsp;return 0;<br />
}</code></div></div>
<br />
Now that the structure of a basic console program has been explained now variables. First, what is a variable? A variable is sort of like a variable in math. Variables hold values and can be outputted. These variables can consist of letters, numbers and some symbols. Variables can not have the same name as another variable in C++. For example the first set of code outputs an error on compilation and the second compiles with no errors. Note: The code takes into consideration that the variables are declared in the main functions in the above template.<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>int i;<br />
i = 0;<br />
char i;//variable already used and declared as variable type int<br />
i = 'a';//variable is type int and cannot hold a character</code></div></div>
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>int i;//perfect<br />
i = 0;//perfect<br />
char a;//perfect<br />
a = 'a';//perfect</code></div></div>
<br />
Now for the variable types. A variable type decides what that variable can hold. A type of int can only hold whole numbers for example -1, 0, 1, etc. A type of char can only hold a single character or symbol (unless character array, or pointer). A type of string can hold letters, numbers, and symbols. A type of float can hold a single precision value (decimal, fraction) accurate to 7 decimal places. A type of double can hold double precision values (decimals, fractions) accurate to 15 decimal places.<br />
<br />
I have given enough information to write a very simple program. Good Luck.<br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[C++ Console Program Arguments]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=6</link>
			<pubDate>Tue, 11 Jul 2006 12:15:31 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=6</guid>
			<description><![CDATA[This is a tutorial I wrote about making a console program that accepts commandline arguments. I am using the standard format of<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>int argc, char *argv[&#93;</code></div></div>
but you can use different datatypes if necessary. The first argument argc is the number of parameters and the second is an array holding the values inputted into the arguments. Here is an example program I made that adds the value of two arguments and outputs their sum.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;iostream&gt;<br />
<br />
using namespace std;<br />
<br />
int main (int argc, char *argv[&#93;)<br />
{<br />
&nbsp;&nbsp;if (argc != 3)//3 arguments should be used<br />
&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // We print argv[0&#93; assuming it is the program name<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //output the usage of the program (program aguments)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout&lt;&lt;"usage: "&lt;&lt; argv[0&#93; &lt;&lt;" &lt;first number&gt; &lt;second number&gt;&#92;n";<br />
&nbsp;&nbsp; }<br />
&nbsp;&nbsp; else<br />
&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //convert first parameter to int<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int firstparam = atoi(argv[1&#93;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //convert second argument to int<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int secondparam = atoi(argv[2&#93;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //add the two together<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int add = firstparam + secondparam;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //output their sum<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout&lt;&lt;add&lt;&lt;"&#92;n";<br />
&nbsp;&nbsp; }<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp; //wait until key is pressed<br />
&nbsp;&nbsp; system("PAUSE");<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp; //return the value for the function, in this case int<br />
&nbsp;&nbsp; return 0;<br />
}</code></div></div>
<br />
I find this useful because when using Microsoft Visual Studio you can use a program that takes command line arguments and does something like write to a file.<br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></description>
			<content:encoded><![CDATA[This is a tutorial I wrote about making a console program that accepts commandline arguments. I am using the standard format of<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>int argc, char *argv[]</code></div></div>
but you can use different datatypes if necessary. The first argument argc is the number of parameters and the second is an array holding the values inputted into the arguments. Here is an example program I made that adds the value of two arguments and outputs their sum.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;iostream&gt;<br />
<br />
using namespace std;<br />
<br />
int main (int argc, char *argv[])<br />
{<br />
&nbsp;&nbsp;if (argc != 3)//3 arguments should be used<br />
&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // We print argv[0] assuming it is the program name<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //output the usage of the program (program aguments)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout&lt;&lt;"usage: "&lt;&lt; argv[0] &lt;&lt;" &lt;first number&gt; &lt;second number&gt;&#92;n";<br />
&nbsp;&nbsp; }<br />
&nbsp;&nbsp; else<br />
&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //convert first parameter to int<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int firstparam = atoi(argv[1]);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //convert second argument to int<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int secondparam = atoi(argv[2]);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //add the two together<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int add = firstparam + secondparam;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //output their sum<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout&lt;&lt;add&lt;&lt;"&#92;n";<br />
&nbsp;&nbsp; }<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp; //wait until key is pressed<br />
&nbsp;&nbsp; system("PAUSE");<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp; //return the value for the function, in this case int<br />
&nbsp;&nbsp; return 0;<br />
}</code></div></div>
<br />
I find this useful because when using Microsoft Visual Studio you can use a program that takes command line arguments and does something like write to a file.<br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[C++ String Tutorial]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=5</link>
			<pubDate>Tue, 11 Jul 2006 12:07:43 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=5</guid>
			<description><![CDATA[This tutorial will explain the various functions in C and C++ for string operations. I will give some examples but due to the overwelming amount of functions and their variations I can't give you an example for each but most of them are the same. I will start with C string functions which can also be used in C++.<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;string&gt;<br />
//compare string a to string b and see if they are an exact match<br />
if(strcmp(a,b)==0)<br />
{<br />
cout&lt;&lt;"Match";<br />
//strings are an exact match<br />
}<br />
else<br />
{<br />
cout&lt;&lt;"No Match";<br />
//strings are not an exact match<br />
}</code></div></div>
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;string&gt;<br />
string c = "Hello";<br />
//c = 5<br />
c = strlen(a);</code></div></div>
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;string&gt;<br />
char str = "now # is the time for all # good men to come to the # aid of their country";<br />
&nbsp;&nbsp; char delims = "#";<br />
&nbsp;&nbsp; char *result = NULL;<br />
&nbsp;&nbsp; result = strtok( str, delims );<br />
&nbsp;&nbsp; while( result != NULL ) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf( "result is &#92;"%s&#92;"&#92;n", result );<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result = strtok( NULL, delims );<br />
&nbsp;&nbsp; }</code></div></div>
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;string&gt;<br />
strcpy(a, b);<br />
//copies string a to string b</code></div></div>
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;string&gt;<br />
strcat (a, b);<br />
//adds contents of string b to string a also called concatenating</code></div></div>
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>void&nbsp;&nbsp;&nbsp;&nbsp;*memccpy(void *, const void *, int, size_t);<br />
void&nbsp;&nbsp;&nbsp;&nbsp;*memchr(const void *, int, size_t);<br />
int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcmp(const void *, const void *, size_t);<br />
void&nbsp;&nbsp;&nbsp;&nbsp;*memcpy(void *, const void *, size_t);<br />
void&nbsp;&nbsp;&nbsp;&nbsp;*memmove(void *, const void *, size_t);<br />
void&nbsp;&nbsp;&nbsp;&nbsp;*memset(void *, int, size_t);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strcat(char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strchr(const char *, int);<br />
int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcmp(const char *, const char *);<br />
int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcoll(const char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strcpy(char *, const char *);<br />
size_t&nbsp;&nbsp; strcspn(const char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strdup(const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strerror(int);<br />
size_t&nbsp;&nbsp; strlen(const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strncat(char *, const char *, size_t);<br />
int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strncmp(const char *, const char *, size_t);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strncpy(char *, const char *, size_t);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strpbrk(const char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strrchr(const char *, int);<br />
size_t&nbsp;&nbsp; strspn(const char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strstr(const char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strtok(char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strtok_r(char *, const char *, char **);<br />
size_t&nbsp;&nbsp; strxfrm(char *, const char *, size_t);<br />
<br />
memchr Search buffer for a character <br />
memcmp Compare two buffers <br />
memcpy Copy bytes to buffer from buffer <br />
memmove Copy bytes to buffer from buffer <br />
memset Fill buffer with specified character <br />
strcat Append string <br />
strchr Find character in string <br />
strcmp Compare two strings <br />
strcoll Compare two strings using locale settings <br />
strcpy Copy string <br />
strcspn Search string for occurrence of charcter set <br />
strerror Get pointer to error message string <br />
strlen Return string length <br />
strncat Append substring to string <br />
strncmp Compare some characters of two strings <br />
strncpy Copy characters from one string to another <br />
strpbrk Scan string for specified characters <br />
strrchr Find last occurrence of character in string <br />
strspn Get length of substring composed of given characters <br />
strstr Find substring <br />
strtok Sequentially truncate string if delimiter is found <br />
strxfrm Transform string using locale settings</code></div></div>
<br />
Now for the C++ string functions. Note: C++ string functions can't be used with C but C functions may be used with C++.<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>string();<br />
&nbsp;&nbsp;string( const string&amp; s );//empty string<br />
&nbsp;&nbsp;string( size_type length, const char&amp; ch );//see str1<br />
&nbsp;&nbsp;string( const char* str );//see str2<br />
&nbsp;&nbsp;string( const char* str, size_type length );//same as str2 except allows specifying the number of characters<br />
&nbsp;&nbsp;string( const string&amp; str, size_type index, size_type length );//see str3<br />
&nbsp;&nbsp;string( input_iterator start, input_iterator end );//a string of characters denoted by start and end<br />
&nbsp;&nbsp;~string();<br />
<br />
examples<br />
string str1( 5, '1' );//Produces 5 copies of 1 in a row 11111<br />
&nbsp;&nbsp; string str2( "Hello World" );//str2 a constant string of Hello<br />
&nbsp;&nbsp; string str3( str2, 6, 5 );//creates a substring by going forward 6 characters on str2 and then stores the next 5 in str3 producing World<br />
<br />
string&amp; append( const string&amp; str );<br />
&nbsp;&nbsp;string&amp; append( const char* str );<br />
&nbsp;&nbsp;string&amp; append( const string&amp; str, size_type index, size_type len );//goes to index specified and appends the len of characters to string<br />
&nbsp;&nbsp;string&amp; append( const char* str, size_type num );//appends a string to a string a specified number of times <br />
&nbsp;&nbsp;string&amp; append( size_type num, char ch );//same as appending a string to string except this time a char is appended to a string a specified number of times see append example<br />
&nbsp;&nbsp;string&amp; append( input_iterator start, input_iterator end );//same as constructor except it appends the sequence<br />
<br />
append example<br />
string hello = "The story continues";<br />
name.append(3, '.');</code></div></div>
<br />
Now I will list only the important C++ string functions and what they do.<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>String constructors create strings from arrays of characters and other strings <br />
String operators concatenate strings, assign strings, use strings for I/O, compare strings <br />
append append characters and strings onto a string <br />
assign give a string values from strings of characters and other C++ strings<br />
capacity returns the number of elements that the string can hold<br />
clear removes all elements from the string <br />
compare compares two strings <br />
copy copies characters from a string into an array <br />
empty true if the string has no elements&nbsp;&nbsp;<br />
erase removes elements from a string <br />
find find characters in the string <br />
find_first_not_of find first absence of characters <br />
find_first_of find first occurrence of characters <br />
find_last_not_of find last absence of characters <br />
find_last_of find last occurrence of characters <br />
getline read data from an I/O stream into a string <br />
insert insert characters into a string <br />
length returns the length of the string <br />
max_size returns the maximum number of elements that the string can hold <br />
push_back add an element to the end of the string&nbsp;&nbsp;<br />
replace replace characters in the string <br />
reserve sets the minimum capacity of the string <br />
resize change the size of the string <br />
rfind find the last occurrence of a substring <br />
size returns the number of items in the string <br />
substr returns a certain substring <br />
swap swap the contents of a string with another</code></div></div>
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></description>
			<content:encoded><![CDATA[This tutorial will explain the various functions in C and C++ for string operations. I will give some examples but due to the overwelming amount of functions and their variations I can't give you an example for each but most of them are the same. I will start with C string functions which can also be used in C++.<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;string&gt;<br />
//compare string a to string b and see if they are an exact match<br />
if(strcmp(a,b)==0)<br />
{<br />
cout&lt;&lt;"Match";<br />
//strings are an exact match<br />
}<br />
else<br />
{<br />
cout&lt;&lt;"No Match";<br />
//strings are not an exact match<br />
}</code></div></div>
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;string&gt;<br />
string c = "Hello";<br />
//c = 5<br />
c = strlen(a);</code></div></div>
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;string&gt;<br />
char str = "now # is the time for all # good men to come to the # aid of their country";<br />
&nbsp;&nbsp; char delims = "#";<br />
&nbsp;&nbsp; char *result = NULL;<br />
&nbsp;&nbsp; result = strtok( str, delims );<br />
&nbsp;&nbsp; while( result != NULL ) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf( "result is &#92;"%s&#92;"&#92;n", result );<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result = strtok( NULL, delims );<br />
&nbsp;&nbsp; }</code></div></div>
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;string&gt;<br />
strcpy(a, b);<br />
//copies string a to string b</code></div></div>
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;string&gt;<br />
strcat (a, b);<br />
//adds contents of string b to string a also called concatenating</code></div></div>
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>void&nbsp;&nbsp;&nbsp;&nbsp;*memccpy(void *, const void *, int, size_t);<br />
void&nbsp;&nbsp;&nbsp;&nbsp;*memchr(const void *, int, size_t);<br />
int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcmp(const void *, const void *, size_t);<br />
void&nbsp;&nbsp;&nbsp;&nbsp;*memcpy(void *, const void *, size_t);<br />
void&nbsp;&nbsp;&nbsp;&nbsp;*memmove(void *, const void *, size_t);<br />
void&nbsp;&nbsp;&nbsp;&nbsp;*memset(void *, int, size_t);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strcat(char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strchr(const char *, int);<br />
int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcmp(const char *, const char *);<br />
int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcoll(const char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strcpy(char *, const char *);<br />
size_t&nbsp;&nbsp; strcspn(const char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strdup(const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strerror(int);<br />
size_t&nbsp;&nbsp; strlen(const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strncat(char *, const char *, size_t);<br />
int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strncmp(const char *, const char *, size_t);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strncpy(char *, const char *, size_t);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strpbrk(const char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strrchr(const char *, int);<br />
size_t&nbsp;&nbsp; strspn(const char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strstr(const char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strtok(char *, const char *);<br />
char&nbsp;&nbsp;&nbsp;&nbsp;*strtok_r(char *, const char *, char **);<br />
size_t&nbsp;&nbsp; strxfrm(char *, const char *, size_t);<br />
<br />
memchr Search buffer for a character <br />
memcmp Compare two buffers <br />
memcpy Copy bytes to buffer from buffer <br />
memmove Copy bytes to buffer from buffer <br />
memset Fill buffer with specified character <br />
strcat Append string <br />
strchr Find character in string <br />
strcmp Compare two strings <br />
strcoll Compare two strings using locale settings <br />
strcpy Copy string <br />
strcspn Search string for occurrence of charcter set <br />
strerror Get pointer to error message string <br />
strlen Return string length <br />
strncat Append substring to string <br />
strncmp Compare some characters of two strings <br />
strncpy Copy characters from one string to another <br />
strpbrk Scan string for specified characters <br />
strrchr Find last occurrence of character in string <br />
strspn Get length of substring composed of given characters <br />
strstr Find substring <br />
strtok Sequentially truncate string if delimiter is found <br />
strxfrm Transform string using locale settings</code></div></div>
<br />
Now for the C++ string functions. Note: C++ string functions can't be used with C but C functions may be used with C++.<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>string();<br />
&nbsp;&nbsp;string( const string&amp; s );//empty string<br />
&nbsp;&nbsp;string( size_type length, const char&amp; ch );//see str1<br />
&nbsp;&nbsp;string( const char* str );//see str2<br />
&nbsp;&nbsp;string( const char* str, size_type length );//same as str2 except allows specifying the number of characters<br />
&nbsp;&nbsp;string( const string&amp; str, size_type index, size_type length );//see str3<br />
&nbsp;&nbsp;string( input_iterator start, input_iterator end );//a string of characters denoted by start and end<br />
&nbsp;&nbsp;~string();<br />
<br />
examples<br />
string str1( 5, '1' );//Produces 5 copies of 1 in a row 11111<br />
&nbsp;&nbsp; string str2( "Hello World" );//str2 a constant string of Hello<br />
&nbsp;&nbsp; string str3( str2, 6, 5 );//creates a substring by going forward 6 characters on str2 and then stores the next 5 in str3 producing World<br />
<br />
string&amp; append( const string&amp; str );<br />
&nbsp;&nbsp;string&amp; append( const char* str );<br />
&nbsp;&nbsp;string&amp; append( const string&amp; str, size_type index, size_type len );//goes to index specified and appends the len of characters to string<br />
&nbsp;&nbsp;string&amp; append( const char* str, size_type num );//appends a string to a string a specified number of times <br />
&nbsp;&nbsp;string&amp; append( size_type num, char ch );//same as appending a string to string except this time a char is appended to a string a specified number of times see append example<br />
&nbsp;&nbsp;string&amp; append( input_iterator start, input_iterator end );//same as constructor except it appends the sequence<br />
<br />
append example<br />
string hello = "The story continues";<br />
name.append(3, '.');</code></div></div>
<br />
Now I will list only the important C++ string functions and what they do.<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>String constructors create strings from arrays of characters and other strings <br />
String operators concatenate strings, assign strings, use strings for I/O, compare strings <br />
append append characters and strings onto a string <br />
assign give a string values from strings of characters and other C++ strings<br />
capacity returns the number of elements that the string can hold<br />
clear removes all elements from the string <br />
compare compares two strings <br />
copy copies characters from a string into an array <br />
empty true if the string has no elements&nbsp;&nbsp;<br />
erase removes elements from a string <br />
find find characters in the string <br />
find_first_not_of find first absence of characters <br />
find_first_of find first occurrence of characters <br />
find_last_not_of find last absence of characters <br />
find_last_of find last occurrence of characters <br />
getline read data from an I/O stream into a string <br />
insert insert characters into a string <br />
length returns the length of the string <br />
max_size returns the maximum number of elements that the string can hold <br />
push_back add an element to the end of the string&nbsp;&nbsp;<br />
replace replace characters in the string <br />
reserve sets the minimum capacity of the string <br />
resize change the size of the string <br />
rfind find the last occurrence of a substring <br />
size returns the number of items in the string <br />
substr returns a certain substring <br />
swap swap the contents of a string with another</code></div></div>
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[C++ File Input/Output]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=4</link>
			<pubDate>Tue, 11 Jul 2006 11:57:37 -0700</pubDate>
			<dc:creator>daman371</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=4</guid>
			<description><![CDATA[There are two methods of file input/output as far as headers go. The first way is using the old c way using fopen and other c functions.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;iostream&gt;<br />
using namespace std;<br />
<br />
int main()<br />
{<br />
&nbsp;&nbsp; char examplewrite[20&#93;;<br />
&nbsp;&nbsp; char exampleread[20&#93;;<br />
&nbsp;&nbsp; //Writing Starts here<br />
<br />
&nbsp;&nbsp; //opens the stream<br />
&nbsp;&nbsp; FILE *filewrite = fopen("file.txt", "w"//*);<br />
<br />
&nbsp;&nbsp; //prompt to enter a word to write to file<br />
&nbsp;&nbsp; printf("Enter a word: ");<br />
&nbsp;&nbsp; scanf("%s", &amp;examplewrite);<br />
<br />
&nbsp;&nbsp; //puts info from examplewrite into file<br />
&nbsp;&nbsp; fprintf(filewrite, "%s&#92;n", examplewrite);<br />
<br />
&nbsp;&nbsp; //closes the stream<br />
&nbsp;&nbsp; fclose(filewrite);<br />
<br />
&nbsp;&nbsp; //Reading Starts here<br />
<br />
&nbsp;&nbsp; //opens the stream<br />
&nbsp;&nbsp; FILE *fileread = fopen("file.txt", "r"//*);<br />
<br />
&nbsp;&nbsp; //gets info from file and puts it into example variable&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp; fscanf(fileread, "%s&#92;n", example);<br />
<br />
&nbsp;&nbsp; //print to screen<br />
&nbsp;&nbsp; printf("%s&#92;n",example);<br />
<br />
&nbsp;&nbsp; //closes the stream<br />
&nbsp;&nbsp; fclose(fileread);<br />
<br />
&nbsp;&nbsp; //wait for key to be pressed so output is shown<br />
&nbsp;&nbsp; //may also call system("PAUSE"); on some compilers<br />
&nbsp;&nbsp; getch();<br />
<br />
&nbsp;&nbsp; //return value for main returns, in this case int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp; return 0;<br />
}</code></div></div>
*This is the mode. Available modes are r(reading can't be modified), w(writing contents deleted and replaced), a(appending add new info to end of file), r+(reading and contents can be modified or updated), w+(writing contents deleted and replaced), a+(contents can be updated and new information added to end of file)<br />
<br />
The second way is using c++ functions in fstream.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;fstream&gt;<br />
using namespace std;<br />
int main()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;char sample[30&#93;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //data to write to file<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; data[30&#93;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//data read from file<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sample = 0;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Writing starts here<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//filewrite is the name of the stream<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ofstream filewrite("file.txt");<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//prompt user to enter number<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;"Enter a number";<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//gets user input and puts into sample variable. <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//note: 30 is number characters to read<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cin.getline(sample, 30);<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//writes info from sample to file<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filewrite&lt;&lt;sample;//writes info from sample to file<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Reading Start here<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//fileread is the name of the stream<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Note: Replace file.txt with the name of the file you want to read<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Note: File must exist<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifstream fileread("file.txt");<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//check for file existence or file read error<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(fileread.fail())<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//File error if file was not found<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cerr &lt;&lt; "File Not Found!"&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//close stream <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileread.close();<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//wait until character is pressed<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//same as system("PAUSE") on some compilers<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//exit code for failure<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(file)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Inputs whole file to variable data until end of file<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileread&gt;&gt;data;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//output data read from file to screen<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;data;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//closes the stream<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileread.close();<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//wait until character is pressed<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//system("PAUSE") can be called on some compilers<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//return data type that main returns, in this case int<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 0;<br />
}</code></div></div>
The modes for the fstream differ from iostream in fact they are called mode flags. When you say ifstream and name the stream ifstream automatically opens file for input (ios:in) and ofstream automatically opens file for writing (ios: out) by default in some compilers. Additionally ios:binary (input binary file for example data.dat), ios:hex for inputting hex from a file, ios:app for appending to a file, ios:trunc to overwrite the file, and ios:ate to go to the end of the file when opened.<br />
<br />
Both ways are acceptable in C++ however fstream may not be used in C.<br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></description>
			<content:encoded><![CDATA[There are two methods of file input/output as far as headers go. The first way is using the old c way using fopen and other c functions.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;iostream&gt;<br />
using namespace std;<br />
<br />
int main()<br />
{<br />
&nbsp;&nbsp; char examplewrite[20];<br />
&nbsp;&nbsp; char exampleread[20];<br />
&nbsp;&nbsp; //Writing Starts here<br />
<br />
&nbsp;&nbsp; //opens the stream<br />
&nbsp;&nbsp; FILE *filewrite = fopen("file.txt", "w"//*);<br />
<br />
&nbsp;&nbsp; //prompt to enter a word to write to file<br />
&nbsp;&nbsp; printf("Enter a word: ");<br />
&nbsp;&nbsp; scanf("%s", &amp;examplewrite);<br />
<br />
&nbsp;&nbsp; //puts info from examplewrite into file<br />
&nbsp;&nbsp; fprintf(filewrite, "%s&#92;n", examplewrite);<br />
<br />
&nbsp;&nbsp; //closes the stream<br />
&nbsp;&nbsp; fclose(filewrite);<br />
<br />
&nbsp;&nbsp; //Reading Starts here<br />
<br />
&nbsp;&nbsp; //opens the stream<br />
&nbsp;&nbsp; FILE *fileread = fopen("file.txt", "r"//*);<br />
<br />
&nbsp;&nbsp; //gets info from file and puts it into example variable&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp; fscanf(fileread, "%s&#92;n", example);<br />
<br />
&nbsp;&nbsp; //print to screen<br />
&nbsp;&nbsp; printf("%s&#92;n",example);<br />
<br />
&nbsp;&nbsp; //closes the stream<br />
&nbsp;&nbsp; fclose(fileread);<br />
<br />
&nbsp;&nbsp; //wait for key to be pressed so output is shown<br />
&nbsp;&nbsp; //may also call system("PAUSE"); on some compilers<br />
&nbsp;&nbsp; getch();<br />
<br />
&nbsp;&nbsp; //return value for main returns, in this case int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp; return 0;<br />
}</code></div></div>
*This is the mode. Available modes are r(reading can't be modified), w(writing contents deleted and replaced), a(appending add new info to end of file), r+(reading and contents can be modified or updated), w+(writing contents deleted and replaced), a+(contents can be updated and new information added to end of file)<br />
<br />
The second way is using c++ functions in fstream.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>#include &lt;fstream&gt;<br />
using namespace std;<br />
int main()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;char sample[30],&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //data to write to file<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; data[30];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//data read from file<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sample = 0;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Writing starts here<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//filewrite is the name of the stream<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ofstream filewrite("file.txt");<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//prompt user to enter number<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;"Enter a number";<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//gets user input and puts into sample variable. <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//note: 30 is number characters to read<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cin.getline(sample, 30);<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//writes info from sample to file<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filewrite&lt;&lt;sample;//writes info from sample to file<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Reading Start here<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//fileread is the name of the stream<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Note: Replace file.txt with the name of the file you want to read<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Note: File must exist<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifstream fileread("file.txt");<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//check for file existence or file read error<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(fileread.fail())<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//File error if file was not found<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cerr &lt;&lt; "File Not Found!"&lt;&lt;"&#92;n";<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//close stream <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileread.close();<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//wait until character is pressed<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//same as system("PAUSE") on some compilers<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//exit code for failure<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(file)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Inputs whole file to variable data until end of file<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileread&gt;&gt;data;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//output data read from file to screen<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;data;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//closes the stream<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileread.close();<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//wait until character is pressed<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//system("PAUSE") can be called on some compilers<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//return data type that main returns, in this case int<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 0;<br />
}</code></div></div>
The modes for the fstream differ from iostream in fact they are called mode flags. When you say ifstream and name the stream ifstream automatically opens file for input (ios:in) and ofstream automatically opens file for writing (ios: out) by default in some compilers. Additionally ios:binary (input binary file for example data.dat), ios:hex for inputting hex from a file, ios:app for appending to a file, ios:trunc to overwrite the file, and ios:ate to go to the end of the file when opened.<br />
<br />
Both ways are acceptable in C++ however fstream may not be used in C.<br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Full Sig Tut]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=3</link>
			<pubDate>Sat, 08 Jul 2006 20:27:53 -0700</pubDate>
			<dc:creator>SAFC</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=3</guid>
			<description><![CDATA[Made using photoshop CS2, although you could make this sig using version 7 and above...<br />
<br />
<a href="http://img459.imageshack.us/img459/9872/2ndtut3yo.jpg" target="_blank">original tutorial</a><br />
<br />
<img src="http://tutorialshare.net/community/uploads/2ndtut3yo.jpg" border="0" alt="[Image: 2ndtut3yo.jpg&#93;" /><br />
<br />
Other outcomes...<br />
<br />
<img src="http://tutorialshare.net/community/uploads/Lawrencesigsafc.png" border="0" alt="[Image: Lawrencesigsafc.png&#93;" /><br />
<br />
<img src="http://tutorialshare.net/community/uploads/world-cup-sig.png" border="0" alt="[Image: world-cup-sig.png&#93;" /><br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></description>
			<content:encoded><![CDATA[Made using photoshop CS2, although you could make this sig using version 7 and above...<br />
<br />
<a href="http://img459.imageshack.us/img459/9872/2ndtut3yo.jpg" target="_blank">original tutorial</a><br />
<br />
<img src="http://tutorialshare.net/community/uploads/2ndtut3yo.jpg" border="0" alt="[Image: 2ndtut3yo.jpg]" /><br />
<br />
Other outcomes...<br />
<br />
<img src="http://tutorialshare.net/community/uploads/Lawrencesigsafc.png" border="0" alt="[Image: Lawrencesigsafc.png]" /><br />
<br />
<img src="http://tutorialshare.net/community/uploads/world-cup-sig.png" border="0" alt="[Image: world-cup-sig.png]" /><br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Watercolour Photo Manip Tut]]></title>
			<link>http://tutorialshare.daman371designs.com/community/showthread.php?tid=2</link>
			<pubDate>Sat, 08 Jul 2006 20:25:53 -0700</pubDate>
			<dc:creator>SAFC</dc:creator>
			<guid isPermaLink="false">http://tutorialshare.daman371designs.com/community/showthread.php?tid=2</guid>
			<description><![CDATA[Made using photoshop CS2...<br />
<br />
<a href="http://img429.imageshack.us/img429/5967/watercolourtut8ai.jpg" target="_blank">original tutorial</a><br />
<img src="http://tutorialshare.net/community/uploads/watercolourtut8ai.jpg" border="0" alt="[Image: watercolourtut8ai.jpg&#93;" /><br />
<br />
Manhattan Skyline (used in this tut):- <a href="http://img61.imageshack.us/img61/3233/skylineog3wh.jpg" target="_blank">Original</a>, <a href="http://img61.imageshack.us/img61/7033/skyline1pc.jpg" target="_blank">Manip</a>.<br />
<br />
Other outcomes...<br />
<br />
Kilchurn castle, Scotland:- <a href="http://img69.imageshack.us/img69/3884/kilchurncastle43pg.jpg" target="_blank">Original</a>, <a href="http://img125.imageshack.us/img125/7489/kilchurncastle4highres1yw.jpg" target="_blank">Manip</a>.<br />
<br />
Portoventere, Italian Riviera:- <a href="http://img96.imageshack.us/img96/5559/scenicog3pz.jpg" target="_blank">Original</a>, <a href="http://img299.imageshack.us/img299/1204/scenic4mm.jpg" target="_blank">Manip</a>.<br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></description>
			<content:encoded><![CDATA[Made using photoshop CS2...<br />
<br />
<a href="http://img429.imageshack.us/img429/5967/watercolourtut8ai.jpg" target="_blank">original tutorial</a><br />
<img src="http://tutorialshare.net/community/uploads/watercolourtut8ai.jpg" border="0" alt="[Image: watercolourtut8ai.jpg]" /><br />
<br />
Manhattan Skyline (used in this tut):- <a href="http://img61.imageshack.us/img61/3233/skylineog3wh.jpg" target="_blank">Original</a>, <a href="http://img61.imageshack.us/img61/7033/skyline1pc.jpg" target="_blank">Manip</a>.<br />
<br />
Other outcomes...<br />
<br />
Kilchurn castle, Scotland:- <a href="http://img69.imageshack.us/img69/3884/kilchurncastle43pg.jpg" target="_blank">Original</a>, <a href="http://img125.imageshack.us/img125/7489/kilchurncastle4highres1yw.jpg" target="_blank">Manip</a>.<br />
<br />
Portoventere, Italian Riviera:- <a href="http://img96.imageshack.us/img96/5559/scenicog3pz.jpg" target="_blank">Original</a>, <a href="http://img299.imageshack.us/img299/1204/scenic4mm.jpg" target="_blank">Manip</a>.<br />
<br />
If you like this tutorial please <a href="http://tutorialshare.net/community/member.php?action=register" target="_blank">register</a>.]]></content:encoded>
		</item>
	</channel>
</rss>