Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Hungarian notation for std::vector

zeolitezeolite Posts: 78Member
I was just wondering what was the standard way of denoting that a variable is of type std::vector. I currently use the prefix "lst" (as in "list"), like so:[CODE]#include
using namesapce std;

vector lstMyInts;[/CODE]
Any thoughts guys?

Comments

  • homerocdahomerocda Posts: 87Member
    : I was just wondering what was the standard way of denoting that a variable is of type std::vector. I currently use the prefix "lst" (as in "list"), like so:[CODE]#include
    : using namesapce std;
    :
    : vector lstMyInts;[/CODE]
    : Any thoughts guys?
    :

    Well... I don't like hungarian notation (it's useful on weak typed langages, though) but I wouldn't use a "lst" prefix. A vector is not a list (there is already a list type in the STL), a vector is a vector.
    I would use a "vec" prefix.

    Homero C. de Almeida

    [italic]There's no dishonour in failure. For we aren't allowed to know wheter we'll achieve success or not. There is only one final shame, the cowardice of not trying.[/italic]

  • szaboiszaboi Posts: 1Member
    Hungarian notation is bullshit, duse it pls. :D Im hungarian lol

    Best regards,

Sign In or Register to comment.