All pastes #437008 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-12 20:33 UTC
rendered paste body
#include <cstdlib>
#include <iostream>
#include <windows.h>
#include <vector>
#include <fstream>

using namespace std;

int datei();

HANDLE fHandle;
WIN32_FIND_DATA wfd;

int main(int argc, char *argv[])
{
   
    
    while (FindNextFile(fHandle,&wfd)) {
          if(datei()) {
                      cout<<"ja";
                      }
                      
                      else {
                           cout<<"lol";
                           }
          }  
    FindClose(fHandle);  
    system("PAUSE");
    return EXIT_SUCCESS;
}

 int datei() {
     if ((wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
                               return false;
                               }
                               else {
                                     return true;
                                    }  
 }