Click here to Skip to main content
15,920,628 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: holding more than one decimal Pin
Cedric Moonen28-Oct-05 5:14
Cedric Moonen28-Oct-05 5:14 
AnswerRe: holding more than one decimal Pin
Bob Flynn28-Oct-05 6:07
Bob Flynn28-Oct-05 6:07 
GeneralRe: holding more than one decimal Pin
David Crow28-Oct-05 6:50
David Crow28-Oct-05 6:50 
GeneralRe: holding more than one decimal Pin
Bob Flynn28-Oct-05 7:05
Bob Flynn28-Oct-05 7:05 
GeneralRe: holding more than one decimal Pin
David Crow28-Oct-05 7:30
David Crow28-Oct-05 7:30 
GeneralRe: holding more than one decimal Pin
Bob Flynn28-Oct-05 7:51
Bob Flynn28-Oct-05 7:51 
GeneralRe: holding more than one decimal Pin
mtucker678428-Oct-05 9:22
mtucker678428-Oct-05 9:22 
GeneralRe: holding more than one decimal Pin
David Crow28-Oct-05 9:55
David Crow28-Oct-05 9:55 
mtucker6784 wrote:
I'm not sure what an fscan function is


It's called fscanf(). It allows reading formatted data from a stream. To read formatted data from the keyboard, you could use scanf(), like:

char a[4], b[4], c[4], d[4];
scanf("%[0-9].%[0-9].%[0-9].%[0-9]", a, b, c, d);
I would not recommend this, however, as there is no way to check for bad input.

SInce IP addresses are strings, even though they happen to contain dots, what you are using will work if you change ipad to a string type rather than a float.


"Take only what you need and leave the land as you found it." - Native American Proverb


QuestionCEdit : GetLine Pin
DanYELL28-Oct-05 4:52
DanYELL28-Oct-05 4:52 
AnswerRe: CEdit : GetLine Pin
PJ Arends28-Oct-05 10:21
professionalPJ Arends28-Oct-05 10:21 
QuestionLink list Using STL Pin
itkid28-Oct-05 3:54
itkid28-Oct-05 3:54 
AnswerRe: Link list Using STL Pin
toxcct28-Oct-05 4:08
toxcct28-Oct-05 4:08 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 4:23
itkid28-Oct-05 4:23 
GeneralRe: Link list Using STL Pin
toxcct28-Oct-05 4:31
toxcct28-Oct-05 4:31 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 6:02
itkid28-Oct-05 6:02 
AnswerRe: Link list Using STL Pin
Eytukan28-Oct-05 4:41
Eytukan28-Oct-05 4:41 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 5:34
itkid28-Oct-05 5:34 
GeneralRe: Link list Using STL Pin
Eytukan28-Oct-05 5:57
Eytukan28-Oct-05 5:57 
AnswerRe: Link list Using STL Pin
Maximilien28-Oct-05 4:45
Maximilien28-Oct-05 4:45 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 6:46
itkid28-Oct-05 6:46 
QuestionAssertion in ctlreg.cpp (OLE Registration) Pin
SatyaDY28-Oct-05 3:50
SatyaDY28-Oct-05 3:50 
QuestionInternet Explorer Toolbar Pin
Mircea Grelus28-Oct-05 3:03
Mircea Grelus28-Oct-05 3:03 
QuestionForcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
ja100128-Oct-05 2:48
ja100128-Oct-05 2:48 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
David Crow28-Oct-05 3:04
David Crow28-Oct-05 3:04 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
Cedric Moonen28-Oct-05 3:13
Cedric Moonen28-Oct-05 3: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.