<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=20856&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / programmation C]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=20856</link>
		<description><![CDATA[Les sujets les plus récents dans programmation C.]]></description>
		<lastBuildDate>Tue, 20 Dec 2005 08:23:39 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  programmation C]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=150831#p150831</link>
			<description><![CDATA[<p>Si tu ne veux pas te taper toute la gestion (création/libération de la mémoire), je te conseille les fonctions de la GLib (<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Pointer-Arrays.html">http://developer.gnome.org/doc/API/2.0/ … rrays.html</a>).</p><p>Mais je pense qu&#039;il vaut toujours mieux, avant d&#039;utiliser une bibliothèque, savoir coder «à la manière forte» : sans aide d&#039;une bibliothèque. Une fois qu&#039;on a bien acquis les concepts de base, on peut utiliser une bibliothèque.</p>]]></description>
			<author><![CDATA[dummy@example.com (thx1138)]]></author>
			<pubDate>Tue, 20 Dec 2005 08:23:39 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=150831#p150831</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  programmation C]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=143858#p143858</link>
			<description><![CDATA[<p>Le truc, il faut allouer en premier un tableau de pointeurs, puis un tableau de données pour chacun des pointeurs</p><div class="codebox"><pre><code>int** getdata(int n, int m)
{
  int** data = malloc(n*sizeof(int*));
  int i;
  for( i = 0; i &lt; n; i++)
    data[i] = malloc(m*sizeof(int));
  return data;
}

void releasedata(int** data, int n)
{
  int i;
  for( i = 0; i &lt; n; i++)
    free(data[i]);
  free(data);
}</code></pre></div><p>et voilà</p>]]></description>
			<author><![CDATA[dummy@example.com (m+rh-e)]]></author>
			<pubDate>Fri, 09 Dec 2005 18:38:53 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=143858#p143858</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  programmation C]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=143635#p143635</link>
			<description><![CDATA[<p>En fait c&#039;est un tableau de type **tab qu&#039;il me faut ( oui il y a bien 2 etoiles ) c&#039;est un pointeur de pointeur</p>]]></description>
			<author><![CDATA[dummy@example.com (Pak)]]></author>
			<pubDate>Fri, 09 Dec 2005 13:00:32 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=143635#p143635</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  programmation C]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=143633#p143633</link>
			<description><![CDATA[<div class="codebox"><pre><code>// Pour un tableau de 10 par 10
int *p = malloc(10 * 10 * sizeof(int));</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (max63)]]></author>
			<pubDate>Fri, 09 Dec 2005 12:58:47 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=143633#p143633</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  programmation C]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=143630#p143630</link>
			<description><![CDATA[<p>Salut,<br />tu auras peut-être plus de réponses là : http://c.developpez.com/<br />et là : http://www.developpez.net/forums/index.php?c=11</p>]]></description>
			<author><![CDATA[dummy@example.com (kwakosaure)]]></author>
			<pubDate>Fri, 09 Dec 2005 12:55:11 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=143630#p143630</guid>
		</item>
		<item>
			<title><![CDATA[programmation C]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=143626#p143626</link>
			<description><![CDATA[<p>Bonjour,<br />Je voudrais savoir comment on alloue dynamiquement un tableau d&#039;entiers a deux dimensions ( fournir le code si possible car l&#039;exemple de mon prof ne marche pas....) merci</p>]]></description>
			<author><![CDATA[dummy@example.com (Pak)]]></author>
			<pubDate>Fri, 09 Dec 2005 12:52:01 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=143626#p143626</guid>
		</item>
	</channel>
</rss>
