Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 18th, 2005, 1:12 PM   #1
Josef_Stalin
Programmer
 
Join Date: Apr 2005
Posts: 77
Rep Power: 4 Josef_Stalin is on a distinguished road
Organization of the standard library? (solved)

I am just curious how people navigate through the standard library to find the functions they want when it is so big. Is there any rhyme or reason to the way it is organized, or a way of viewing it taxonomically?

Last edited by Josef_Stalin; Apr 19th, 2005 at 12:05 PM.
Josef_Stalin is offline   Reply With Quote
Old Apr 18th, 2005, 1:39 PM   #2
BaroN NighT
Programmer
 
BaroN NighT's Avatar
 
Join Date: Mar 2005
Location: Lexington, Ky
Posts: 58
Rep Power: 4 BaroN NighT is on a distinguished road
Usually, they just look at what library the functions they are looking for are located from a book or other sources. We, don't usually memorize it because its too much, but some standard functions are worth memorizing because we use it a lot, or eventually we get to memorize it anyway. http://www.cplusplus.com is a nice web you can visit to see which functions are located where.
BaroN NighT is offline   Reply With Quote
Old Apr 18th, 2005, 2:13 PM   #3
ZenMasterJG
Hobbyist Programmer
 
ZenMasterJG's Avatar
 
Join Date: Nov 2004
Location: Boston, MA
Posts: 148
Rep Power: 4 ZenMasterJG is on a distinguished road
Send a message via AIM to ZenMasterJG
Pick up O'Reilly's "STL Pocket Reference"
It's pretty handy, and a steal for 9.95 +S&H
http://www.oreilly.com/catalog/stlpr/
(Yes, i know i push O'Reilly products all the time. No, i do not work for O'Reilly. But i wish i did )
ZenMasterJG is offline   Reply With Quote
Old Apr 18th, 2005, 7:13 PM   #4
Eggbert
Professional Programmer
 
Eggbert's Avatar
 
Join Date: Nov 2004
Posts: 250
Rep Power: 4 Eggbert is on a distinguished road
Rather than try to memorize everything, simply check a good reference when you find yourself hand writing code to do a common operation. Chances are good that the standard library already does it for you. www.dinkumware.com is a good reference.
Eggbert is offline   Reply With Quote
Old Apr 19th, 2005, 12:10 AM   #5
Josef_Stalin
Programmer
 
Join Date: Apr 2005
Posts: 77
Rep Power: 4 Josef_Stalin is on a distinguished road
So what I'm getting here is that there is no way to break it down like for instance you can organize a list of cars. Like you have pics-ups, and suvs, and all different types which are organized based on similarities. There is no system of true organization here, you just have to have a reference?

Last edited by Josef_Stalin; Apr 19th, 2005 at 12:12 AM.
Josef_Stalin is offline   Reply With Quote
Old Apr 19th, 2005, 12:01 PM   #6
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
Well, they are organized... you have Vectors, Lists, Strings, Maps, etc. They all have functions, many interchangeable, that can be used on them. They're all separated and organized into different headers for each datatype (ie vector.h or string.h) or code block. That sounds like it's about the same thing to me, no?

BTW, like BaroN NighT said, http://www.cplusplus.com/ is a great resource. Everything is broken up there.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Apr 19th, 2005, 12:05 PM   #7
Josef_Stalin
Programmer
 
Join Date: Apr 2005
Posts: 77
Rep Power: 4 Josef_Stalin is on a distinguished road
Thanks. Yeah, you are right. I am rusty and I'm just looking over code and things seem complicated.
Josef_Stalin is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:41 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC