.resize

This is a discussion on .resize within the C++ Programming forums, part of the General Programming Boards category; Using the ".resize" command on a two demensional array like this "tri.resize[size][size]" where size is a variable passed by value ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    3

    .resize

    Using the ".resize" command on a two demensional array like this "tri.resize[size][size]" where size is a variable passed by value into the function. The error i am recieving is:

    "syntax error : missing ';' before '.' "
    on the line in which the resize code has been place. Am i stupid and should know u cant do a resize on a two-dim array or is it something else? Thanks for ur time.

    P.S. MSVC++

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    3
    actually the code is like this "tri.resize[size][size];"

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    3
    sorry i guess i keep forgetting things, here's another error i get for it :

    left of '.resize' must have class/struct/union type

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21