Click here to Skip to main content
15,918,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionChange font of MessageBox ? Pin
_skidrow_vn_4-Aug-03 11:38
_skidrow_vn_4-Aug-03 11:38 
GeneralSockets - How to display ONLY the network servers.. Pin
IrishSonic4-Aug-03 11:38
IrishSonic4-Aug-03 11:38 
GeneralRe: Sockets - How to display ONLY the network servers.. Pin
Anders Molin4-Aug-03 12:25
professionalAnders Molin4-Aug-03 12:25 
GeneralSystem Management Bus Access Pin
Zero_divide_14-Aug-03 10:39
Zero_divide_14-Aug-03 10:39 
GeneralChanging Title of MFC Window Pin
Tadpole4-Aug-03 10:17
Tadpole4-Aug-03 10:17 
GeneralRe: Changing Title of MFC Window Pin
Wes Aday4-Aug-03 12:01
professionalWes Aday4-Aug-03 12:01 
GeneralRe: Changing Title of MFC Window Pin
Bob Stanneveld4-Aug-03 21:49
Bob Stanneveld4-Aug-03 21:49 
GeneralString operations Pin
Cpudood4-Aug-03 10:15
Cpudood4-Aug-03 10:15 
I have tried this code segment on two different compilers receiving two different results. Using MSVC++6, the console reports that the file was not opened. C++.NET reports that the file was opened but none of the input data was displayed. What string operation do I need to use to output the contents of the file to the console?


#include iostream
#include fstream
#include string

using namespace std;

string line1;
string line2;
string line3;
string line4;

ifstream inData;


int main()
{
inData.open("data.dat");
if ( !inData) // Was file opened
{
cout<<"Could not open input file.";
return 1;
}
else
{
cout<<"File was succesfully opened"<
GeneralRe: String operations Pin
Michael Dunn4-Aug-03 10:24
sitebuilderMichael Dunn4-Aug-03 10:24 
GeneralRe: String operations Pin
Cpudood4-Aug-03 10:35
Cpudood4-Aug-03 10:35 
GeneralRe: String operations Pin
PJ Arends4-Aug-03 17:22
professionalPJ Arends4-Aug-03 17:22 
GeneralRe: String operations Pin
PJ Arends4-Aug-03 17:30
professionalPJ Arends4-Aug-03 17:30 
GeneralRe: String operations Pin
Terry O'Nolley5-Aug-03 4:27
Terry O'Nolley5-Aug-03 4:27 
QuestionCenter MDIChildWnd in MDIFrameWnd ??? Pin
_skidrow_vn_4-Aug-03 9:33
_skidrow_vn_4-Aug-03 9:33 
GeneralGrpahics in Visual C++ : Please Help Pin
help_me_pleeze4-Aug-03 9:20
help_me_pleeze4-Aug-03 9:20 
GeneralRe: Grpahics in Visual C++ : Please Help Pin
Nemanja Trifunovic4-Aug-03 9:25
Nemanja Trifunovic4-Aug-03 9:25 
GeneralRe: Grpahics in Visual C++ : Please Help Pin
John M. Drescher4-Aug-03 9:25
John M. Drescher4-Aug-03 9:25 
GeneralTemplates - - - (desperate) Pin
The_Server4-Aug-03 9:18
The_Server4-Aug-03 9:18 
GeneralRe: Templates - - - (desperate) Pin
Nemanja Trifunovic4-Aug-03 9:20
Nemanja Trifunovic4-Aug-03 9:20 
GeneralRe: Templates - - - (desperate) Pin
The_Server4-Aug-03 11:37
The_Server4-Aug-03 11:37 
GeneralRe: Templates - - - (desperate) Pin
Michael Dunn4-Aug-03 10:25
sitebuilderMichael Dunn4-Aug-03 10:25 
GeneralUsing a function everytime Pin
kurnaziso4-Aug-03 9:00
kurnaziso4-Aug-03 9:00 
GeneralRe: Using a function everytime Pin
David Crow5-Aug-03 2:41
David Crow5-Aug-03 2:41 
GeneralCFileDialog problems Pin
Gandilf4-Aug-03 8:27
Gandilf4-Aug-03 8:27 
GeneralRe: CFileDialog problems Pin
David Crow5-Aug-03 2:30
David Crow5-Aug-03 2:30 

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.