Adblock breaks this site

C++ Code...

Discussion in 'Programming General' started by DarkZero, Apr 5, 2007.

  1. DarkZero

    DarkZero Guest

    Referrals:
    0
    C++ Code...

    Does anyone know the C++ code used to list the contents of a directory? I looked everywhere and can't find it...
     
  2. SVXX

    SVXX Guest

    Referrals:
    0
    C++ Code...

    Well..if your C++ code compiles the exe to DOS,you could use a system command?

    Code:
    #include <iostream>
    #include <cstdlib>
    using namespace std;
    
    int main()
    {
    system("dir/p");
    system("PAUSE");
    return 0;
    }
    
     
< .net Lib Updates and Sample | [Question]Dnload VB.NET Location? >


 
 
Adblock breaks this site