Search:

Type: Posts; User: phummon

Search: Search took 0.01 seconds.

  1. Using a string/enum to access int Matrix[X] ?

    Hola code gurus,

    I’m wondering if there’s a way to use a string to access a specific item in a matrix of int[X].

    I have a program which uses enums as iterators to reference a large amount...
  2. Well done, all! Good advice...

    Well done, all! Good advice...
  3. Smart Accessor Function for Multiple Data Containers?

    Hi everyone,

    I’m Pete, moderately-experienced C++ user who is always looking for better ways to do things.

    Let me ask you guys about a problem I’ve scratching my head over lately. ...
  4. execve() accepting & using environment variables?

    Hi everyone,

    I'm a moderately experienced C coder trying to figure out the execve() command. Here's the basic problem:

    My program takes a command from the user, loaded into the string...
  5. Replies
    3
    Views
    20,255

    Hey there, rags_to_riches, Thanks for the...

    Hey there, rags_to_riches,

    Thanks for the feedback and the example code! I'm a largely self-taught programmer, so if I pick up bad habits, I don't realize it until someone wiser and more...
  6. Replies
    3
    Views
    20,255

    HTTP POST Request in C++ - header problems

    Hi everyone,

    I'm a moderately experienced C++ programmer who's trying to do a little socket work. Don't ask why, but I'm to write a program which, when activated, sends an HTTP POST request to...
  7. Figured it out - a colleague explained to me how...

    Figured it out - a colleague explained to me how to properly read the man pages. What I needed was this:

    For each socket term the compiler was complaining about, I had to add in the libraries...
  8. Ah HA! I'd just reread Beej's Guide but skipped...

    Ah HA! I'd just reread Beej's Guide but skipped that part. Serves me right. :)

    FYI for anyone following this thread: Beej's advises adding: "-lnsl -lsocket -lresolv" to your compiler command:...
  9. "Undefined Symbol" when compiling a socket program?

    Hi everyone,

    I have a "This should be simple!" kind of problem. I need to do a little socket programming on a SunOS machine. I went back to an old school assignment I did years ago,...
  10. Importing Many Files, How to Skip "Bad" Lines?

    Hi everyone,

    I'm a moderately experienced C++ programmer working on code which must do the following:
    (a) Import data from a lot of little files
    (b) Load that data into various...
  11. Sorry for wasting your time, I'll close out the...

    Sorry for wasting your time, I'll close out the thread... :)
  12. Weird problem with an array of vector's ???

    Hi everyone,

    I'm a moderately experienced C++ programmer and a network engineer. I’m having a weird problem with using an array of vector<char *>, which I’ve never tried to work with before. ...
  13. Fantastic!

    This is great advice, thanks a million! I can't tell you how great it is to get expert help like this. :)

    Many thanks!
    -Pete
  14. Using Variables for Intelligent Access Functions?

    Hello everyone,

    I’m an intermediate-level C++ programmer grappling with a fairly rudimentary problem. I’m creating a C++ object called FruitCart; FruitCart contains a number of integers...
Results 1 to 14 of 14