C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28630
Number of posts: 94612

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Hungarian notation for std::vector Posted by zeolite on 5 Mar 2006 at 5:30 AM
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:
#include <vector>
using namesapce std;

vector<int> lstMyInts;

Any thoughts guys?
Report
Re: Hungarian notation for std::vector Posted by homerocda on 5 Mar 2006 at 6:06 AM
: 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:
#include <vector>
: using namesapce std;
: 
: vector<int> lstMyInts;

: 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

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.

Report
Re: Hungarian notation for std::vector Posted by szaboi on 14 Nov 2012 at 4:58 AM
Hungarian notation is bullshit, duse it pls. :D Im hungarian lol

Best regards,




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.