Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRectangle Over An Image Pin
john56322-Jul-10 2:44
john56322-Jul-10 2:44 
AnswerRe: Rectangle Over An Image Pin
bob169722-Jul-10 3:12
bob169722-Jul-10 3:12 
AnswerRe: Rectangle Over An Image Pin
Rozis2-Jul-10 10:32
Rozis2-Jul-10 10:32 
QuestionIterating Vector Pin
T.RATHA KRISHNAN1-Jul-10 21:30
T.RATHA KRISHNAN1-Jul-10 21:30 
AnswerRe: Iterating Vector Pin
Cedric Moonen1-Jul-10 21:40
Cedric Moonen1-Jul-10 21:40 
AnswerRe: Iterating Vector Pin
Stephen Hewitt1-Jul-10 21:45
Stephen Hewitt1-Jul-10 21:45 
GeneralRe: Iterating Vector Pin
T.RATHA KRISHNAN1-Jul-10 22:14
T.RATHA KRISHNAN1-Jul-10 22:14 
AnswerRe: Iterating Vector Pin
Aescleal1-Jul-10 22:29
Aescleal1-Jul-10 22:29 
What's wrong with:

sets[ player_number ]


?

I'm not sure what you're trying to do but if you only want a single row don't read the entire file. If you want player N (and you're using zero based indexing) read and discard the first N and read the (N + 1)th into the string.

Another option is to fix the size of the fields in the file so you can seek to the start of a particular line before doing a read.

Yet another is to create a class that represents each line (presumably player) and implement a constructor that initialises itself from a stream or an overloaded extraction operator.

Cheers,

Ash
GeneralSolved Pin
T.RATHA KRISHNAN1-Jul-10 23:16
T.RATHA KRISHNAN1-Jul-10 23:16 
QuestionHelp for Printing? Pin
Le@rner1-Jul-10 20:56
Le@rner1-Jul-10 20:56 
Questiongetline throws exception Pin
T.RATHA KRISHNAN1-Jul-10 18:54
T.RATHA KRISHNAN1-Jul-10 18:54 
AnswerRe: getline throws exception PinPopular
Stephen Hewitt1-Jul-10 18:58
Stephen Hewitt1-Jul-10 18:58 
GeneralRe: getline throws exception Pin
T.RATHA KRISHNAN1-Jul-10 19:08
T.RATHA KRISHNAN1-Jul-10 19:08 
GeneralRe: getline throws exception Pin
Stephen Hewitt1-Jul-10 19:14
Stephen Hewitt1-Jul-10 19:14 
GeneralRe: getline throws exception Pin
T.RATHA KRISHNAN1-Jul-10 19:35
T.RATHA KRISHNAN1-Jul-10 19:35 
QuestionProblem with '&' character to dispaly in Static Text control. Pin
Le@rner1-Jul-10 18:16
Le@rner1-Jul-10 18:16 
AnswerRe: Problem with '&' character to dispaly in Static Text control. Pin
«_Superman_»1-Jul-10 18:22
professional«_Superman_»1-Jul-10 18:22 
AnswerRe: Problem with '&' character to dispaly in Static Text control. Pin
Stephen Hewitt1-Jul-10 18:23
Stephen Hewitt1-Jul-10 18:23 
GeneralRe: Problem with '&' character to dispaly in Static Text control. Pin
Le@rner1-Jul-10 18:27
Le@rner1-Jul-10 18:27 
GeneralRe: Problem with '&' character to dispaly in Static Text control. Pin
Stephen Hewitt1-Jul-10 18:39
Stephen Hewitt1-Jul-10 18:39 
GeneralRe: Problem with '&' character to dispaly in Static Text control. Pin
Le@rner1-Jul-10 18:58
Le@rner1-Jul-10 18:58 
GeneralRe: Problem with '&' character to dispaly in Static Text control. Pin
Stephen Hewitt1-Jul-10 19:05
Stephen Hewitt1-Jul-10 19:05 
GeneralRe: Problem with '&' character to dispaly in Static Text control. Pin
Le@rner1-Jul-10 20:11
Le@rner1-Jul-10 20:11 
GeneralRe: Problem with '&' character to dispaly in Static Text control. Pin
«_Superman_»1-Jul-10 19:21
professional«_Superman_»1-Jul-10 19:21 
Questionabout SetThreadContext Pin
rockago1-Jul-10 10:06
rockago1-Jul-10 10:06 

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.