Click here to Skip to main content
16,011,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetFileSecurity Pin
Tomasz Sowinski27-Aug-02 11:10
Tomasz Sowinski27-Aug-02 11:10 
GeneralAnother Error..... Pin
Nick Parker27-Aug-02 10:44
protectorNick Parker27-Aug-02 10:44 
GeneralRe: Another Error..... Pin
jmkhael27-Aug-02 10:49
jmkhael27-Aug-02 10:49 
GeneralRe: Another Error..... Pin
Nick Parker27-Aug-02 10:51
protectorNick Parker27-Aug-02 10:51 
GeneralRe: Another Error..... Pin
jmkhael27-Aug-02 10:58
jmkhael27-Aug-02 10:58 
GeneralRe: Another Error..... Pin
Nick Parker27-Aug-02 11:04
protectorNick Parker27-Aug-02 11:04 
GeneralRe: Another Error..... Pin
Anonymous27-Aug-02 10:59
Anonymous27-Aug-02 10:59 
GeneralRe: Another Error..... Pin
Chris Losinger27-Aug-02 11:38
professionalChris Losinger27-Aug-02 11:38 
if i copy your code into an empty app and add the appropriate headers (and a fake DriverInfo struct), it compiles fine.

#include "stdafx.h"
#include <iomanip.h>
#include <fstream.h>

struct Diver_Info
{
   char Diver_Name[26];
   int Total_Score;
};

void Create_Report(Diver_Info theDivers[])
{     
   int Best_Divers = 0;

   ofstream OutputFile; 
   OutputFile.open("c:\\temp\\ofs.txt", ios::out);    
   OutputFile << setiosflags(ios::fixed|ios::showpoint) << setprecision(2);   
   OutputFile << setiosflags(ios::left) << setw(6) << "Place" << setw(26) << "Name"       << setw(8) << "Score" << endl << endl;    
   for(int i = 0; i < Best_Divers; i++)   
   {     
      OutputFile << setw(6) << (i + 1) << setw(26) << theDivers[i].Diver_Name          << setw(8) << theDivers[i].Total_Score << endl;       
   }     
   OutputFile.close();
}

int main(int argc, char* argv[])
{
   Diver_Info d[2];
   Create_Report(d);
   printf("Hello World!\n");
   return 0;
}



Aiei i ea eio aoa i e eio e aigoa
GeneralRe: Another Error..... Pin
Nick Parker27-Aug-02 11:42
protectorNick Parker27-Aug-02 11:42 
GeneralRe: Another Error..... Pin
Todd Smith27-Aug-02 20:23
Todd Smith27-Aug-02 20:23 
GeneralRe: Another Error..... Pin
Christian Graus27-Aug-02 12:28
protectorChristian Graus27-Aug-02 12:28 
QuestionIs MFC really as bad as it seems? Pin
Anonymous27-Aug-02 10:26
Anonymous27-Aug-02 10:26 
AnswerRe: Is MFC really as bad as it seems? Pin
Chris Losinger27-Aug-02 10:35
professionalChris Losinger27-Aug-02 10:35 
GeneralRe: Is MFC really as bad as it seems? Pin
pankajdaga27-Aug-02 11:30
pankajdaga27-Aug-02 11:30 
AnswerRe: Is MFC really as bad as it seems? Pin
Michael P Butler27-Aug-02 22:50
Michael P Butler27-Aug-02 22:50 
Generaltime string? newbie Pin
Anonymous27-Aug-02 10:18
Anonymous27-Aug-02 10:18 
GeneralRe: time string? newbie Pin
fiznicker27-Aug-02 10:25
fiznicker27-Aug-02 10:25 
GeneralRe: time string? newbie Pin
Tomasz Sowinski27-Aug-02 10:39
Tomasz Sowinski27-Aug-02 10:39 
GeneralRe: time string? newbie Pin
Ravi Bhavnani27-Aug-02 10:41
professionalRavi Bhavnani27-Aug-02 10:41 
GeneralRe: time string? newbie Pin
jmkhael27-Aug-02 10:42
jmkhael27-Aug-02 10:42 
GeneralRe: time string? newbie Pin
valikac27-Aug-02 15:08
valikac27-Aug-02 15:08 
GeneralRe: time string? newbie Pin
Michael Dunn27-Aug-02 16:52
sitebuilderMichael Dunn27-Aug-02 16:52 
GeneralTracking source of Invalid Page Fault Pin
fiznicker27-Aug-02 10:15
fiznicker27-Aug-02 10:15 
GeneralRe: Tracking source of Invalid Page Fault Pin
Andreas Saurwein27-Aug-02 13:03
Andreas Saurwein27-Aug-02 13:03 
Generalsubclassing and messages Pin
RK_200027-Aug-02 9:38
RK_200027-Aug-02 9:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.