<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Anfänger benötigt Hilfe bei IRC Bot]]></title><description><![CDATA[<p>Hi,</p>
<p>sitze momentan an der Erstellung eines IRC-Bots. Da ich ein C++-Anfänger bin, habe ich <a href="http://www.the-tech-tutorial.com/?p=1716" rel="nofollow">dieses</a> Tutorial als Grundlage genommen. Zur Übersicht im folgenden der Code:</p>
<pre><code>#include &quot;IrcBot.h&quot;
#include &lt;iostream&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
#include &lt;errno.h&gt;
#include &lt;string.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;netdb.h&gt;
#include &lt;arpa/inet.h&gt;
#include &lt;sys/wait.h&gt;
#include &lt;signal.h&gt;
#include &lt;time.h&gt;

using namespace std;

#define MAXDATASIZE 100

IrcBot::IrcBot(char * _nick, char * _usr)
{
	nick = _nick;
	usr = _usr;
}

IrcBot::~IrcBot()
{
	close (s);
}

void IrcBot::start()
{
	string connectserver;

	cout&lt;&lt;&quot;Type in Server:\n&quot;;
	cin&gt;&gt;connectserver;
	cout&lt;&lt;&quot;Connecting to server: &quot;&lt;&lt;connectserver&lt;&lt;&quot;\n&quot;;

	struct addrinfo hints, *servinfo;

	setup = true;

	port = &quot;6667&quot;;

	memset(&amp;hints, 0, sizeof hints);

	hints.ai_family = AF_UNSPEC;
	hints.ai_socktype = SOCK_STREAM;

	int res;
	if ((res = getaddrinfo(connectserver.c_str(),port,&amp;hints,&amp;servinfo)) != 0)
	{
		setup = false;
		fprintf(stderr,&quot;getaddrinfo: %s\n&quot;, gai_strerror(res));
	}

	if ((s = socket(servinfo-&gt;ai_family,servinfo-&gt;ai_socktype,servinfo-&gt;ai_protocol)) == -1)
	{
		perror(&quot;client: socket&quot;);
	}

	if (connect(s,servinfo-&gt;ai_addr, servinfo-&gt;ai_addrlen) == -1)
	{
		close (s);
		perror(&quot;Client Connect&quot;);
	}

	freeaddrinfo(servinfo);

	int numbytes;
	char buf[MAXDATASIZE];

	int count = 0;
	while (1)
	{
		count++;

		switch (count) {
			case 3:
					sendData(nick);
					sendData(usr);
				break;
			case 4:
				sendData(&quot;JOIN #ircbottest\r\n&quot;);
			default:
				break;
	}

		numbytes = recv(s,buf,MAXDATASIZE-1,0);
		buf[numbytes]='\0';
		cout &lt;&lt; buf;

		msgHandel(buf);

		if (charSearch(buf,&quot;PING&quot;))
		{
			sendPong(buf);
		}

		if (numbytes==0)
		{
			cout &lt;&lt; &quot;----------------------CONNECTION CLOSED---------------------------&quot;&lt;&lt; endl;
			cout &lt;&lt; timeNow() &lt;&lt; endl;

			break;
		}
	}
}

bool IrcBot::charSearch(char *toSearch, char *searchFor)
{
	int len = strlen(toSearch);
	int forLen = strlen(searchFor);

	for (int i = 0; i &lt; len;i++)
	{
		if (searchFor[0] == toSearch[i])
		{
			bool found = true;
			for (int x = 1; x &lt; forLen; x++)
			{
				if (toSearch[i+x]!=searchFor[x])
				{
					found = false;
				}
			}

			if (found == true)
				return true;
		}
	}

	return 0;
}

bool IrcBot::isConnected(char *buf)
{
	if (charSearch(buf,&quot;/MOTD&quot;) == true)
		return true;
	else
		return false;
}

char * IrcBot::timeNow()
{
	time_t rawtime;
	struct tm * timeinfo;

	time ( &amp;rawtime );
	timeinfo = localtime ( &amp;rawtime );

	return asctime (timeinfo);
}

bool IrcBot::sendData(char *msg)
{
	int len = strlen(msg);
	int bytes_sent = send(s,msg,len,0);

	if (bytes_sent == 0)
		return false;
	else
		return true;
}

void IrcBot::sendPong(char *buf)
{

	char * toSearch = &quot;PING &quot;;

	for (int i = 0; i &lt; strlen(buf);i++)
		{
			if (buf[i] == toSearch[0])
			{
				bool found = true;
				for (int x = 1; x &lt; 4; x++)
				{
					if (buf[i+x]!=toSearch[x])
					{
						found = false;
					}
				}

				if (found == true)
				{
					int count = 0;
					for (int x = (i+strlen(toSearch)); x &lt; strlen(buf);x++)
					{
						count++;
					}

					char returnHost[count + 5];
					returnHost[0]='P';
					returnHost[1]='O';
					returnHost[2]='N';
					returnHost[3]='G';
					returnHost[4]=' ';

					count = 0;
					for (int x = (i+strlen(toSearch)); x &lt; strlen(buf);x++)
					{
						returnHost[count+5]=buf[x];
						count++;
					}

					if (sendData(returnHost))
					{
						cout &lt;&lt; timeNow() &lt;&lt;&quot;  Ping Pong&quot; &lt;&lt; endl;
					}

					return;
				}
			}
		}

}

void IrcBot::msgHandel(char * buf)
{

	if (charSearch(buf,&quot;hi bot&quot;))
	{
		sendData(&quot;PRIVMSG #ircbottest :hi :)\r\n&quot;);
	}
}
</code></pre>
<p>Als erstes möchte ich natürlich sowohl Server als auch Channel variabel machen. Ersteres ist mir bereits gelungen. Allerdings schaffe ich es nicht, selbiges für den channel hinzubekommen. Folgende Zeile macht Probleme:</p>
<pre><code>sendData(&quot;JOIN #ircbottest\r\n&quot;);
</code></pre>
<p>Wie zu sehen, habe ich für das Wechseln des Servers per cout/cin die Variable connectserver erstellt, welche soweit auch funktioniert. Versuche ich das selbe mit einer connectchannel, welche ich in die aufgeführte Zeile einbinde, funktioniert mein Programm nicht mehr, da sendData vermutlich einen char anstatt string benötigt und darüber hinaus über zu viele Argumente meckert, da ich es mit %s einbinde.<br />
Würde mich über Hilfe zur Lösung meines Problemes freuen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>MfG<br />
VB_94</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/305053/anfänger-benötigt-hilfe-bei-irc-bot</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 06:02:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/305053.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Jun 2012 20:40:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anfänger benötigt Hilfe bei IRC Bot on Tue, 19 Jun 2012 20:40:53 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>sitze momentan an der Erstellung eines IRC-Bots. Da ich ein C++-Anfänger bin, habe ich <a href="http://www.the-tech-tutorial.com/?p=1716" rel="nofollow">dieses</a> Tutorial als Grundlage genommen. Zur Übersicht im folgenden der Code:</p>
<pre><code>#include &quot;IrcBot.h&quot;
#include &lt;iostream&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
#include &lt;errno.h&gt;
#include &lt;string.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;netdb.h&gt;
#include &lt;arpa/inet.h&gt;
#include &lt;sys/wait.h&gt;
#include &lt;signal.h&gt;
#include &lt;time.h&gt;

using namespace std;

#define MAXDATASIZE 100

IrcBot::IrcBot(char * _nick, char * _usr)
{
	nick = _nick;
	usr = _usr;
}

IrcBot::~IrcBot()
{
	close (s);
}

void IrcBot::start()
{
	string connectserver;

	cout&lt;&lt;&quot;Type in Server:\n&quot;;
	cin&gt;&gt;connectserver;
	cout&lt;&lt;&quot;Connecting to server: &quot;&lt;&lt;connectserver&lt;&lt;&quot;\n&quot;;

	struct addrinfo hints, *servinfo;

	setup = true;

	port = &quot;6667&quot;;

	memset(&amp;hints, 0, sizeof hints);

	hints.ai_family = AF_UNSPEC;
	hints.ai_socktype = SOCK_STREAM;

	int res;
	if ((res = getaddrinfo(connectserver.c_str(),port,&amp;hints,&amp;servinfo)) != 0)
	{
		setup = false;
		fprintf(stderr,&quot;getaddrinfo: %s\n&quot;, gai_strerror(res));
	}

	if ((s = socket(servinfo-&gt;ai_family,servinfo-&gt;ai_socktype,servinfo-&gt;ai_protocol)) == -1)
	{
		perror(&quot;client: socket&quot;);
	}

	if (connect(s,servinfo-&gt;ai_addr, servinfo-&gt;ai_addrlen) == -1)
	{
		close (s);
		perror(&quot;Client Connect&quot;);
	}

	freeaddrinfo(servinfo);

	int numbytes;
	char buf[MAXDATASIZE];

	int count = 0;
	while (1)
	{
		count++;

		switch (count) {
			case 3:
					sendData(nick);
					sendData(usr);
				break;
			case 4:
				sendData(&quot;JOIN #ircbottest\r\n&quot;);
			default:
				break;
	}

		numbytes = recv(s,buf,MAXDATASIZE-1,0);
		buf[numbytes]='\0';
		cout &lt;&lt; buf;

		msgHandel(buf);

		if (charSearch(buf,&quot;PING&quot;))
		{
			sendPong(buf);
		}

		if (numbytes==0)
		{
			cout &lt;&lt; &quot;----------------------CONNECTION CLOSED---------------------------&quot;&lt;&lt; endl;
			cout &lt;&lt; timeNow() &lt;&lt; endl;

			break;
		}
	}
}

bool IrcBot::charSearch(char *toSearch, char *searchFor)
{
	int len = strlen(toSearch);
	int forLen = strlen(searchFor);

	for (int i = 0; i &lt; len;i++)
	{
		if (searchFor[0] == toSearch[i])
		{
			bool found = true;
			for (int x = 1; x &lt; forLen; x++)
			{
				if (toSearch[i+x]!=searchFor[x])
				{
					found = false;
				}
			}

			if (found == true)
				return true;
		}
	}

	return 0;
}

bool IrcBot::isConnected(char *buf)
{
	if (charSearch(buf,&quot;/MOTD&quot;) == true)
		return true;
	else
		return false;
}

char * IrcBot::timeNow()
{
	time_t rawtime;
	struct tm * timeinfo;

	time ( &amp;rawtime );
	timeinfo = localtime ( &amp;rawtime );

	return asctime (timeinfo);
}

bool IrcBot::sendData(char *msg)
{
	int len = strlen(msg);
	int bytes_sent = send(s,msg,len,0);

	if (bytes_sent == 0)
		return false;
	else
		return true;
}

void IrcBot::sendPong(char *buf)
{

	char * toSearch = &quot;PING &quot;;

	for (int i = 0; i &lt; strlen(buf);i++)
		{
			if (buf[i] == toSearch[0])
			{
				bool found = true;
				for (int x = 1; x &lt; 4; x++)
				{
					if (buf[i+x]!=toSearch[x])
					{
						found = false;
					}
				}

				if (found == true)
				{
					int count = 0;
					for (int x = (i+strlen(toSearch)); x &lt; strlen(buf);x++)
					{
						count++;
					}

					char returnHost[count + 5];
					returnHost[0]='P';
					returnHost[1]='O';
					returnHost[2]='N';
					returnHost[3]='G';
					returnHost[4]=' ';

					count = 0;
					for (int x = (i+strlen(toSearch)); x &lt; strlen(buf);x++)
					{
						returnHost[count+5]=buf[x];
						count++;
					}

					if (sendData(returnHost))
					{
						cout &lt;&lt; timeNow() &lt;&lt;&quot;  Ping Pong&quot; &lt;&lt; endl;
					}

					return;
				}
			}
		}

}

void IrcBot::msgHandel(char * buf)
{

	if (charSearch(buf,&quot;hi bot&quot;))
	{
		sendData(&quot;PRIVMSG #ircbottest :hi :)\r\n&quot;);
	}
}
</code></pre>
<p>Als erstes möchte ich natürlich sowohl Server als auch Channel variabel machen. Ersteres ist mir bereits gelungen. Allerdings schaffe ich es nicht, selbiges für den channel hinzubekommen. Folgende Zeile macht Probleme:</p>
<pre><code>sendData(&quot;JOIN #ircbottest\r\n&quot;);
</code></pre>
<p>Wie zu sehen, habe ich für das Wechseln des Servers per cout/cin die Variable connectserver erstellt, welche soweit auch funktioniert. Versuche ich das selbe mit einer connectchannel, welche ich in die aufgeführte Zeile einbinde, funktioniert mein Programm nicht mehr, da sendData vermutlich einen char anstatt string benötigt und darüber hinaus über zu viele Argumente meckert, da ich es mit %s einbinde.<br />
Würde mich über Hilfe zur Lösung meines Problemes freuen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>MfG<br />
VB_94</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225190</guid><dc:creator><![CDATA[VB_94]]></dc:creator><pubDate>Tue, 19 Jun 2012 20:40:53 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger benötigt Hilfe bei IRC Bot on Tue, 19 Jun 2012 21:15:21 GMT]]></title><description><![CDATA[<p>Wenn ich es richtig verstanden habe, willst du wissen, wie man an deine sendData-Funktion, welche einen char-Pointer erwartet, einen std::string übergibt.</p>
<p>Such bei Google mal nach &quot;const correctness&quot;. Wenn du das durchgelesen hast, änder den Parameter von sendData von char * zu const char *. Anschließend kannst du mit der c_str()-Methode der std::string-Klasse den String an die Funktion übergeben. Sieht dann ungefähr so aus:</p>
<pre><code class="language-cpp">bool sendData(const char *buff)
{
    ...
}

...

std::string foo = &quot;irgendwas&quot;;

sendData(foo.c_str());
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2225202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225202</guid><dc:creator><![CDATA[Versteher]]></dc:creator><pubDate>Tue, 19 Jun 2012 21:15:21 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger benötigt Hilfe bei IRC Bot on Wed, 20 Jun 2012 08:02:04 GMT]]></title><description><![CDATA[<p>Lern erstmal C++ bevor du einen IRC-Bot schreibst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225273</guid><dc:creator><![CDATA[Kellerautomat]]></dc:creator><pubDate>Wed, 20 Jun 2012 08:02:04 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger benötigt Hilfe bei IRC Bot on Wed, 20 Jun 2012 08:40:03 GMT]]></title><description><![CDATA[<p>VB_94 schrieb:</p>
<blockquote>
<pre><code>int count = 0;
    for (int x = (i+strlen(toSearch)); x &lt; strlen(buf);x++)
    {
	    count++;
    }
</code></pre>
</blockquote>
<p>Nicht zu fassen, das steht so tatsaechlich in dem Tutorial drin.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225281</guid><dc:creator><![CDATA[wollewausfander]]></dc:creator><pubDate>Wed, 20 Jun 2012 08:40:03 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger benötigt Hilfe bei IRC Bot on Wed, 20 Jun 2012 14:22:44 GMT]]></title><description><![CDATA[<p>Habe jetzt zum besseren Verständnis den Code so umformuliert, wie ich ihn gerne hätte (kompiliert jetzt logischerweise nicht mehr, da ich ja irgendwie einen Fehler mache):</p>
<pre><code>#include &quot;IrcBot.h&quot;
#include &lt;iostream&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
#include &lt;errno.h&gt;
#include &lt;string.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;netdb.h&gt;
#include &lt;arpa/inet.h&gt;
#include &lt;sys/wait.h&gt;
#include &lt;signal.h&gt;
#include &lt;time.h&gt;

using namespace std;

#define MAXDATASIZE 100

IrcBot::IrcBot(char * _nick, char * _usr)
{
	nick = _nick;
	usr = _usr;
}

IrcBot::~IrcBot()
{
	close (s);
}

void IrcBot::start()
{
	string connectserver;

	cout&lt;&lt;&quot;Type in Server:\n&quot;;
	cin&gt;&gt;connectserver;
	cout&lt;&lt;&quot;Type in Channel/s:\n&quot;;
	cin&gt;&gt;connectchannel;
	cout&lt;&lt;&quot;Connecting to server: &quot;&lt;&lt;connectserver&lt;&lt;&quot;\n&quot;;

	struct addrinfo hints, *servinfo;

	setup = true;

	port = &quot;6667&quot;;

	memset(&amp;hints, 0, sizeof hints);

	hints.ai_family = AF_UNSPEC;
	hints.ai_socktype = SOCK_STREAM;

	int res;
	if ((res = getaddrinfo(connectserver.c_str(),port,&amp;hints,&amp;servinfo)) != 0)
	{
		setup = false;
		fprintf(stderr,&quot;getaddrinfo: %s\n&quot;, gai_strerror(res));
	}

	if ((s = socket(servinfo-&gt;ai_family,servinfo-&gt;ai_socktype,servinfo-&gt;ai_protocol)) == -1)
	{
		perror(&quot;client: socket&quot;);
	}

	if (connect(s,servinfo-&gt;ai_addr, servinfo-&gt;ai_addrlen) == -1)
	{
		close (s);
		perror(&quot;Client Connect&quot;);
	}

	freeaddrinfo(servinfo);

	int numbytes;
	char buf[MAXDATASIZE];

	int count = 0;
	while (1)
	{
		count++;

		switch (count) {
			case 3:
					sendData(nick);
					sendData(usr);
				break;
			case 4:
				sendData(&quot;JOIN %s\r\n&quot;, connectserver.c_str());
			default:
				break;
	}

		numbytes = recv(s,buf,MAXDATASIZE-1,0);
		buf[numbytes]='\0';
		cout &lt;&lt; buf;

		msgHandel(buf);

		if (charSearch(buf,&quot;PING&quot;))
		{
			sendPong(buf);
		}

		if (numbytes==0)
		{
			cout &lt;&lt; &quot;----------------------CONNECTION CLOSED---------------------------&quot;&lt;&lt; endl;
			cout &lt;&lt; timeNow() &lt;&lt; endl;

			break;
		}
	}
}

bool IrcBot::charSearch(char *toSearch, char *searchFor)
{
	int len = strlen(toSearch);
	int forLen = strlen(searchFor);

	for (int i = 0; i &lt; len;i++)
	{
		if (searchFor[0] == toSearch[i])
		{
			bool found = true;
			for (int x = 1; x &lt; forLen; x++)
			{
				if (toSearch[i+x]!=searchFor[x])
				{
					found = false;
				}
			}

			if (found == true)
				return true;
		}
	}

	return 0;
}

bool IrcBot::isConnected(char *buf)
{
	if (charSearch(buf,&quot;/MOTD&quot;) == true)
		return true;
	else
		return false;
}

char * IrcBot::timeNow()
{
	time_t rawtime;
	struct tm * timeinfo;

	time ( &amp;rawtime );
	timeinfo = localtime ( &amp;rawtime );

	return asctime (timeinfo);
}

bool IrcBot::sendData(char *msg)
{
	int len = strlen(msg);
	int bytes_sent = send(s,msg,len,0);

	if (bytes_sent == 0)
		return false;
	else
		return true;
}

void IrcBot::sendPong(char *buf)
{

	char * toSearch = &quot;PING &quot;;

	for (int i = 0; i &lt; strlen(buf);i++)
		{
			if (buf[i] == toSearch[0])
			{
				bool found = true;
				for (int x = 1; x &lt; 4; x++)
				{
					if (buf[i+x]!=toSearch[x])
					{
						found = false;
					}
				}

				if (found == true)
				{
					int count = 0;
					for (int x = (i+strlen(toSearch)); x &lt; strlen(buf);x++)
					{
						count++;
					}

					char returnHost[count + 5];
					returnHost[0]='P';
					returnHost[1]='O';
					returnHost[2]='N';
					returnHost[3]='G';
					returnHost[4]=' ';

					count = 0;
					for (int x = (i+strlen(toSearch)); x &lt; strlen(buf);x++)
					{
						returnHost[count+5]=buf[x];
						count++;
					}

					if (sendData(returnHost))
					{
						cout &lt;&lt; timeNow() &lt;&lt;&quot;  Ping Pong&quot; &lt;&lt; endl;
					}

					return;
				}
			}
		}

}

void IrcBot::msgHandel(char * buf)
{

	if (charSearch(buf,&quot;hi bot&quot;))
	{
		sendData(&quot;PRIVMSG #ircbottest :hi :)\r\n&quot;);
	}
}
</code></pre>
<p>Bei der Abfrage nach Server/Channel wird nun die Variable connectchannel erstellt, welche ich in der folgenden Zeile verwenden möchte:</p>
<pre><code>sendData(&quot;JOIN %s\r\n&quot;, connectserver.c_str());
</code></pre>
<p>Genau für diese Zeile bekomme ich auch eine Fehlermeldung. Wie kann ich die Variable hier richtig einbinden?</p>
<p>PS: Ich weiß nicht, ob es nicht genügend rüberkam, dass ich ANFÄNGER!!! bin. Seit ich mich mit C++ beschäftige, bekomme ich, sobald ich online Hilfe suche, zu 90% Antworten im Sinne von &quot;dein code ist schlecht&quot;, &quot;würde ich viel besser machen&quot; etc. Wenn ihr nicht helfen wollt, ignoriert den Thread doch einfach. Sind alle C++-Entwickler so elitär?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225420</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225420</guid><dc:creator><![CDATA[VB_94]]></dc:creator><pubDate>Wed, 20 Jun 2012 14:22:44 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger benötigt Hilfe bei IRC Bot on Wed, 20 Jun 2012 15:00:56 GMT]]></title><description><![CDATA[<blockquote>
<p>Sind alle C++-Entwickler so elitär?</p>
</blockquote>
<p>Sind denn alle C++ Anfänger so überheblich? ._.</p>
<blockquote>
<p>Ich weiß nicht, ob es nicht genügend rüberkam, dass ich ANFÄNGER!!! bin.</p>
</blockquote>
<p>...und da ist es natürlich genau das richtige, wenn du mit einem IRC-Bot anfängst!</p>
<p>Leg dir ein gutes! Buch zu, direkt hier im Unterforum einer der ersten gepinnten Threads mit Buchtipps.</p>
<p>Außerdem ist das wohl mal wieder so ein Typisches &quot;C++ ist C mit cout&quot;-Tutorial. Ein Tutorial bzw. so ein Beispiel solltest du erst zu verstehen versuchen, wenn du es verstehen kannst und bei dir hapert es wohl schon an Grundbegriffen, denn ein &quot;Tutorial&quot; über einen IRC-Bot dazu gedacht ist, dir die Grundsematik von C++ beizubringen. Mal ganz davon abgesehen, dass das Beispiel Rotz ist.<br />
Für die Zukunft hier im Forum: Wenn ein Fehler kommt, ist das natürlich schön, wenn du uns das sagst, nützt allerdings nichts, wenn du net sagst, WAS für ein Fehler kommt.</p>
<p>Einen schönen Nachmittag.<br />
Tobi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225438</guid><dc:creator><![CDATA[Ich bin Matrix...]]></dc:creator><pubDate>Wed, 20 Jun 2012 15:00:56 GMT</pubDate></item></channel></rss>