Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old May 22nd, 2005, 7:38 AM   #1
linuxpimp20
Hobbyist Programmer
 
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4 linuxpimp20 is on a distinguished road
essential C/C++ libraries to know?

I am attempting to learn C and C++. I don't want to just get comfortable with it but be able to say im proficient in them. I wanted to know what libraries are a must to learn in able to say you've "mastered" the language. thanks in advance.

jeff
linuxpimp20 is offline   Reply With Quote
Old May 22nd, 2005, 9:58 AM   #2
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
I would say stdio (or iostream), stdlib, time, and maybe math, as well as the STL (notably string and vector). That's the most useful part of the basic language, for me.

To "master" the language, though, you'd have to learn all of them
__________________
% 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 May 22nd, 2005, 12:04 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I would add file.h, dir.h and fstream to those.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 22nd, 2005, 11:50 PM   #4
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
I vote for std::map and std::deque in addition to the ones already mentioned. Don't bother with stdio.h, file.h, etc. if you're using C++.

IMO, don't bother with std::stack or std::queue. If there is a use for them, I haven't found it yet.
uman is offline   Reply With Quote
Old May 23rd, 2005, 1:00 AM   #5
Riddle
Programmer
 
Riddle's Avatar
 
Join Date: May 2005
Location: Nar Shaddaa
Posts: 42
Rep Power: 0 Riddle is on a distinguished road
Send a message via ICQ to Riddle Send a message via AIM to Riddle Send a message via MSN to Riddle
Depends on what kind of programs you want to make. iostream.h will most likely be essential, fstream.h comes in handy for file i/o, and looking into stdlib.h wouldn't hurt.

winsock is useful for (as the name might give away) socket programming. This could by used to make port scanners, packet sniffers, and the like.. like I said though, it depends on what you're into.
Riddle is offline   Reply With Quote
Old May 23rd, 2005, 1:27 AM   #6
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
by the way, for C++ standard library headers you should use <iostream> instead of <iostream.h>, <fstream> instead of <fstream.h>, etc. For C standard library headers, use <cstdlib> instead of <stdlib.h>, <ctime>, <cstdlib>, etc.
uman is offline   Reply With Quote
Old May 23rd, 2005, 10:35 AM   #7
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
iostream, fstream, stdlib, math, string, vector, etc. The standard template library would make your life easier... learn the libraries or at least how to use them if they deal with data or file structures.

if you are in the unix world and writing C code... learn these...
(taken from a program I wrote this morning)

#include <stdio.h>
#include <signal.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/timeb.h>
#include <time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/stat.h>
#include <unistd.h>
#include <syslog.h>
#include <sec/des.h>
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion 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 4:15 AM.

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