CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 16

Threaded View

  1. #11

    Re: Having trouble with a readin. Can't read in a matrix into vector of vector of int

    This is an assignment but this isn't a C++ class. It's more an operating systems class.

    Also, I've never heard of istringstream before. I was able to read in one line as I said, but it can't figure out a line break. That was my problem.

    How to get it to make sure that in

    1 2 3 4
    5 6 7 8
    9 10 11 12

    that it puts

    1 2 3 4 in the first vector
    5 6 7 8 in the another vector
    9 10 11 12 in yet another vector

    and not putting

    1-12 in the same vector.

    Or worse yet, not putting anything in the vectors at all.
    Last edited by jedipenguin; March 24th, 2012 at 10:28 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured