Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: When I change large arrays from 'float' to 'double' I got problem Pin
David Crow26-Apr-06 3:35
David Crow26-Apr-06 3:35 
QuestionSetWindowText Question Pin
JBAK_CP25-Apr-06 16:02
JBAK_CP25-Apr-06 16:02 
QuestionRe: SetWindowText Question Pin
Nibu babu thomas25-Apr-06 16:42
Nibu babu thomas25-Apr-06 16:42 
QuestionHow to make a .OLB file? Pin
hdj831125-Apr-06 15:30
hdj831125-Apr-06 15:30 
Questionifstream question Pin
etm12425-Apr-06 13:44
etm12425-Apr-06 13:44 
AnswerRe: ifstream question Pin
Stephen Hewitt25-Apr-06 13:52
Stephen Hewitt25-Apr-06 13:52 
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 
I was wrong about the fact that reading a char doesn't skip white space. I used the following test program and was able to read in data like yours however:
-----
// Console.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <fstream>
#include <iostream>
using namespace std;

int main(int argc, char* argv[])
{
ifstream in("C:\\a.txt");
char n, a, b, c;
while (in >> n >> a >> b >> c)
{
cout << n << " " << a << " " << b << " " << c << endl;
}

return 0;
}



Steve
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 
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 

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.