<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: c +  + ,C</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Une boucle décrémentale</title>
        <link>http://www.posteet.com/view/500</link>
        <description>
        <![CDATA[<pre>/* pour parcourir une string (ou tout autre conteneur indicé) dans l'ordre inverse */
for (size_t ind = Str.size(); i--;);</pre> <a href="http://www.posteet.com/tags/c">[c]</a>  <a href="http://www.posteet.com/tags/c++">[c++]</a> ]]>        </description>
        <dc:creator>yoko</dc:creator>
        <pubDate>Wed, 21 Nov 2007 21:18:01 +0000</pubDate>

            <category>c</category>
            <category>c++</category>
    
    </item>

  
    <item>
        <title>Compiler un programme C avec vim</title>
        <link>http://www.posteet.com/view/462</link>
        <description>
        <![CDATA[<pre>Dans un des fichiers c de votre projet :

:make          Lance la compilation du programme et positionne le curseur sur la première erreur s'il y en a une.
:cnext          Positionne le curseur sur l'erreur suivante.
:cprevious    Positionne le curseur sur l'erreur précédente.</pre> <a href="http://www.posteet.com/tags/c">[c]</a>  <a href="http://www.posteet.com/tags/c++">[c++]</a>  <a href="http://www.posteet.com/tags/vim">[vim]</a> ]]>        </description>
        <dc:creator>sebclick</dc:creator>
        <pubDate>Fri, 16 Nov 2007 11:26:52 +0000</pubDate>

            <category>c</category>
            <category>c++</category>
            <category>vim</category>
    
    </item>

  
    <item>
        <title>Indenter automatiquement du code source avec vim</title>
        <link>http://www.posteet.com/view/461</link>
        <description>
        <![CDATA[<pre>Vim peut indenter automatiquement du code source (c, java, ...)

Sélectionner la partie du code source à traiter en mode visuel (v)
Appuyer sur la touche =</pre> <a href="http://www.posteet.com/tags/c">[c]</a>  <a href="http://www.posteet.com/tags/c++">[c++]</a>  <a href="http://www.posteet.com/tags/java">[java]</a>  <a href="http://www.posteet.com/tags/perl">[perl]</a>  <a href="http://www.posteet.com/tags/vim">[vim]</a> ]]>        </description>
        <dc:creator>sebclick</dc:creator>
        <pubDate>Fri, 16 Nov 2007 11:23:57 +0000</pubDate>

            <category>c</category>
            <category>c++</category>
            <category>java</category>
            <category>perl</category>
            <category>vim</category>
    
    </item>

  
    <item>
        <title>Manipulation des sockets en C et C++</title>
        <link>http://www.posteet.com/view/392</link>
        <description>
        <![CDATA[<pre>// Declaration socket
WSADATA WSAData;
SOCKET sock;
SOCKADDR_IN sin;	

// Initialisation socket
WSAStartup(MAKEWORD(2,0), &amp;WSAData);

sin.sin_addr.s_addr= inet_addr(&quot;127.0.0.1&quot;); // Adresse IP
sin.sin_family= AF_INET;
sin.sin_port= htons(4001);  // Port
sock = socket(AF_INET,SOCK_STREAM,0);
bind(sock, (SOCKADDR *)&amp;sin, sizeof(sin));

// Si connection etablie
if (connect(sock, (SOCKADDR *)&amp;sin, sizeof(sin)) == 0)
{
// Declaration socket
WSADATA WSAData;
SOCKET sock;
SOCKADDR_IN sin;	

// Initialisation socket
WSAStartup(MAKEWORD(2,0), &amp;WSAData);

sin.sin_addr.s_addr	= inet_addr(&quot;127.0.0.1&quot;); // Adresse IP
sin.sin_family		= AF_INET;
sin.sin_port		= htons(4001);  // Port
sock = socket(AF_INET,SOCK_STREAM,0);
bind(sock, (SOCKADDR *)&amp;sin, sizeof(sin));

// Si connection etablie
if (connect(sock, (SOCKADDR *)&amp;sin, sizeof(sin)) == 0)
else

// Fin
closesocket(sock);
WSACleanup();</pre> <a href="http://www.posteet.com/tags/C">[C]</a>  <a href="http://www.posteet.com/tags/C++">[C++]</a>  <a href="http://www.posteet.com/tags/MFC">[MFC]</a>  <a href="http://www.posteet.com/tags/socket">[socket]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>moifort</dc:creator>
        <pubDate>Mon, 12 Nov 2007 14:17:39 +0000</pubDate>

            <category>C</category>
            <category>C++</category>
            <category>MFC</category>
            <category>socket</category>
            <category>windows</category>
    
    </item>

  
    <item>
        <title>MFC redemarrer Windows</title>
        <link>http://www.posteet.com/view/377</link>
        <description>
        <![CDATA[<pre>// Fonction pour redemarrer Windows avec les MFC

void RestartWindows(void)
{
	// Declaration
	HANDLE hToken; 
	TOKEN_PRIVILEGES tkp; 

	// Get a token for this process. 
	OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &amp;hToken);


	// Get the LUID for the shutdown privilege.  
	LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME,&amp;tkp.Privileges[0].Luid); 

	tkp.PrivilegeCount = 1;  // one privilege to set    
	tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; 

	// Get the shutdown privilege for this process.  
	AdjustTokenPrivileges(hToken, FALSE, &amp;tkp, 0, (PTOKEN_PRIVILEGES)NULL, 0); 


	// Shut down the system and force all applications to close.  
	ExitWindowsEx(EWX_REBOOT| EWX_FORCE, 0); 
}</pre> <a href="http://www.posteet.com/tags/C">[C]</a>  <a href="http://www.posteet.com/tags/C++">[C++]</a>  <a href="http://www.posteet.com/tags/MFC">[MFC]</a>  <a href="http://www.posteet.com/tags/redemarrer">[redemarrer]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>moifort</dc:creator>
        <pubDate>Mon, 12 Nov 2007 12:57:16 +0000</pubDate>

            <category>C</category>
            <category>C++</category>
            <category>MFC</category>
            <category>redemarrer</category>
            <category>windows</category>
    
    </item>


</channel>
</rss>
