Click here to Skip to main content
15,928,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ forward reference Pin
vividtang16-May-04 13:43
vividtang16-May-04 13:43 
GeneralMargin of error Pin
Muad-Dib16-May-04 4:25
Muad-Dib16-May-04 4:25 
GeneralWindow focus in MFC Pin
Anonymous16-May-04 3:04
Anonymous16-May-04 3:04 
GeneralRe: Window focus in MFC Pin
valikac16-May-04 5:32
valikac16-May-04 5:32 
QuestionHow to load exe and dll from memory, not disk Pin
MiCROHARD16-May-04 1:39
MiCROHARD16-May-04 1:39 
AnswerRe: How to load exe and dll from memory, not disk Pin
alex.barylski16-May-04 2:56
alex.barylski16-May-04 2:56 
AnswerRe: How to load exe and dll from memory, not disk Pin
vividtang16-May-04 13:29
vividtang16-May-04 13:29 
General#include <fstream> Pin
Muad-Dib16-May-04 1:23
Muad-Dib16-May-04 1:23 
Hi !!

Please help me, i have the following problem with "read data from txt"

First of all I have #include <fstream> and there is also : using namespace std;

typedef int Pont[3]; // 3D (x,y,z) co-ordinates

 <code>int Pointloader()
  {  const int PontNum= 5;    //I wanna 5 Points read from the file 
     int load[3]= {0};
     Pont RendPoints[PontNum];
     ifstream my_file("d:\\prog2004\\my_file.txt");      
     my_file >> (int)load[0] >> (int)load[1]>> ' ' >> (int)load[2] >> ' ' >> '\n';

/*in the file are the integer numbers so : 
12 134 43
45 13 75
... per each line
*/
     my_file.close();
 }</code>


DEBUG:
error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'const char' (or there is no acceptable conversion)


Muad-Dib
mailto:adamo_piar@freemail.hu
Made in Hungary
GeneralRe: #include &lt;fstream&gt; Pin
Kamyar Souri16-May-04 2:09
Kamyar Souri16-May-04 2:09 
GeneralRe: #include &lt;fstream&gt; Pin
vividtang16-May-04 13:17
vividtang16-May-04 13:17 
GeneralRe: #include &lt;fstream&gt; Pin
Bob Stanneveld16-May-04 13:31
Bob Stanneveld16-May-04 13:31 
GeneralRe: #include &lt;fstream&gt; Pin
vividtang16-May-04 13:55
vividtang16-May-04 13:55 
GeneralRe: #include &lt;fstream&gt; Pin
Bob Stanneveld16-May-04 20:56
Bob Stanneveld16-May-04 20:56 
GeneralRegistry Pin
mmfried16-May-04 1:09
mmfried16-May-04 1:09 
GeneralRe: Registry Pin
Alexander M.,16-May-04 1:19
Alexander M.,16-May-04 1:19 
GeneralRe: Registry Pin
mmfried16-May-04 1:36
mmfried16-May-04 1:36 
GeneralRe: Registry Pin
cmk16-May-04 10:18
cmk16-May-04 10:18 
GeneralSend data to Multiple objects Pin
Stan the man16-May-04 0:25
Stan the man16-May-04 0:25 
GeneralRe: Send data to Multiple objects Pin
Garth J Lancaster16-May-04 1:28
professionalGarth J Lancaster16-May-04 1:28 
GeneralRe: Send data to Multiple objects Pin
Kamyar Souri16-May-04 2:17
Kamyar Souri16-May-04 2:17 
GeneralRelational and Equality Operators Pin
Anonymous16-May-04 0:18
Anonymous16-May-04 0:18 
GeneralRe: Relational and Equality Operators Pin
toxcct16-May-04 0:45
toxcct16-May-04 0:45 
GeneralRe: Relational and Equality Operators Pin
Anonymous16-May-04 0:57
Anonymous16-May-04 0:57 
GeneralRe: Relational and Equality Operators Pin
toxcct16-May-04 1:04
toxcct16-May-04 1:04 
GeneralRe: Relational and Equality Operators Pin
Kamyar Souri16-May-04 2:21
Kamyar Souri16-May-04 2:21 

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.