Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ifstream question Pin
etm12425-Apr-06 13:56
etm12425-Apr-06 13:56 
GeneralRe: ifstream question Pin
Stephen Hewitt25-Apr-06 14:05
Stephen Hewitt25-Apr-06 14:05 
GeneralRe: ifstream question Pin
etm12425-Apr-06 14:09
etm12425-Apr-06 14:09 
GeneralRe: ifstream question Pin
etm12425-Apr-06 14:13
etm12425-Apr-06 14:13 
GeneralRe: ifstream question Pin
Stephen Hewitt25-Apr-06 14:20
Stephen Hewitt25-Apr-06 14:20 
GeneralRe: ifstream question Pin
etm12425-Apr-06 14:22
etm12425-Apr-06 14:22 
GeneralRe: ifstream question Pin
Stephen Hewitt25-Apr-06 14:26
Stephen Hewitt25-Apr-06 14:26 
GeneralRe: ifstream question Pin
etm12425-Apr-06 14:28
etm12425-Apr-06 14:28 
im messing with that right now, but I can show you what I have so far...

int main(int argc, char* argv[])
{

ifstream inf;
ofstream outf1;
ofstream outf2;

inf.open("input.txt", ios::in);
outf1.open("output.txt", ios::in);
outf1.close();
outf2.open("output.txt", ios::out);

char n, x, y, z, n2, x2, y2, z2;
while(!inf.eof())
inf >> n >> x >> y >> z >> n2 >> x2 >> y2 >> z2;

Point p0;
Point p1(x,y,n);
Point3D p1(z);
p1.printP();

Point p2(x2,y2,n2);
Point3D p2(z3);
p2.printP();


system("pause");

/* inf.close();
outf2.close();
return 0;*/

}


I am working on a piece that exhibits inheritance. Basically Point class is already defined. I am inheriting it into Point3D class. I am getting my values from the input file, computing the distance between the points, then outputing to an output file.


GeneralRe: ifstream question Pin
etm12425-Apr-06 14:36
etm12425-Apr-06 14:36 
GeneralRe: ifstream question Pin
Stephen Hewitt25-Apr-06 14:47
Stephen Hewitt25-Apr-06 14:47 
GeneralRe: ifstream question Pin
etm12425-Apr-06 14:55
etm12425-Apr-06 14:55 
QuestionFavorites Icon using IWebBrowser2 control Pin
achimera25-Apr-06 13:08
achimera25-Apr-06 13:08 
AnswerRe: Favorites Icon using IWebBrowser2 control [modified] Pin
code-frog25-Apr-06 17:09
professionalcode-frog25-Apr-06 17:09 
GeneralRe: Favorites Icon using IWebBrowser2 control Pin
achimera25-Apr-06 17:32
achimera25-Apr-06 17:32 
GeneralRe: Favorites Icon using IWebBrowser2 control Pin
code-frog25-Apr-06 17:41
professionalcode-frog25-Apr-06 17:41 
GeneralRe: Favorites Icon using IWebBrowser2 control Pin
achimera25-Apr-06 18:05
achimera25-Apr-06 18:05 
GeneralRe: Favorites Icon using IWebBrowser2 control Pin
code-frog25-Apr-06 18:13
professionalcode-frog25-Apr-06 18:13 
GeneralRe: Favorites Icon using IWebBrowser2 control Pin
Russell Morris25-Apr-06 18:08
Russell Morris25-Apr-06 18:08 
GeneralRe: Favorites Icon using IWebBrowser2 control Pin
achimera25-Apr-06 18:13
achimera25-Apr-06 18:13 
AnswerRe: Favorites Icon using IWebBrowser2 control Pin
Mike Dimmick26-Apr-06 2:22
Mike Dimmick26-Apr-06 2:22 
GeneralRe: Favorites Icon using IWebBrowser2 control Pin
achimera26-Apr-06 9:44
achimera26-Apr-06 9:44 
Questionbit shifting Pin
Waldermort25-Apr-06 11:46
Waldermort25-Apr-06 11:46 
AnswerRe: bit shifting Pin
Michael Dunn25-Apr-06 12:58
sitebuilderMichael Dunn25-Apr-06 12:58 
GeneralRe: bit shifting Pin
Waldermort25-Apr-06 19:51
Waldermort25-Apr-06 19:51 
GeneralRe: bit shifting Pin
Michael Dunn25-Apr-06 20:41
sitebuilderMichael Dunn25-Apr-06 20:41 

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.