Search:

Type: Posts; User: nine-hundred

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    2,141

    Hah, oh, brewbuck posted while I was writing up...

    Hah, oh, brewbuck posted while I was writing up my post.

    Alright, thank you, brewbuck, I'll try that one

    :)
  2. Replies
    7
    Views
    2,141

    Hmm.. I can try it, but why the division by two?...

    Hmm.. I can try it, but why the division by two?

    how I got mine was something like this (sorry I wasn't more clear):

    (m - c) will be the number of unoccupied spaces on the line (e.g. if the...
  3. Replies
    7
    Views
    2,141

    Well, for simplicity's sake, let's assume a...

    Well, for simplicity's sake, let's assume a monospace type of font
  4. Replies
    7
    Views
    2,141

    Formula for justifying text?

    Hey does any one know of a (preferably simple) formula for justifying text into a column? Or maybe someone can fix mine?

    I have to write a prog in C to do this, I have the program all written...
  5. Replies
    3
    Views
    1,491

    Specifying Allowed Template Classes

    Is there any way to specify classes you would allow a template to be used for?

    For example, I want to allow about 3 (int, float, char) data types to be used for this one class, as what it does...
  6. Replies
    6
    Views
    1,679

    Hmm..have a good point there...what about...

    Hmm..have a good point there...what about embeding Perl in C++, is that doable without too much hasle?
  7. Replies
    6
    Views
    1,679

    that would work fine for the lower casing, but I...

    that would work fine for the lower casing, but I wanted to do some other formatting as well in one big swoop, like tr allows...I might have to just parse it char by char though :(
  8. Replies
    6
    Views
    1,679

    File processing and tr command

    I'm trying to parse certain text files and it would be easier if the contents where lower case with no punctuation, etc. So I was curious if c++ had anything similar to the unix tr command?
  9. Replies
    8
    Views
    4,390

    oh ok, thanks for the info...this is getting a...

    oh ok, thanks for the info...this is getting a bit complicated, I think I will have to research it some more before I can do what I want with it. Thanks again, very thorough
  10. Replies
    8
    Views
    4,390

    Hmm...I've looked around in quite a few places...

    Hmm...I've looked around in quite a few places and I think I'm stuck.. Does any one know if there is is an option that I need to do to enable it at compilation? I'm using gcc...

    I will change that...
  11. Replies
    8
    Views
    4,390

    Alright, after reading that I changed the code to...

    Alright, after reading that I changed the code to make it more compliant (if I understood it properly):


    #include <stdio.h>
    #include <signal.h>
    #include <unistd.h>

    int counter = 0;

    void...
  12. Replies
    8
    Views
    4,390

    Hmm..alright, I'm new to this whole signal thing...

    Hmm..alright, I'm new to this whole signal thing (as you can probably tell). Why is it bad to call library functions in handlers? The call to printf was just for debugging, to show that it was...
  13. Replies
    8
    Views
    4,390

    POSIX Signal Handling

    I'm trying to catch a floating point zero divide exception, but it doesn't seem to be working out and I can't figure out why the (minimal) code I have right now is:


    #include <stdio.h>
    #include...
  14. Replies
    4
    Views
    1,711

    I was going for with whitespace, that's a good...

    I was going for with whitespace, that's a good idea though, might try that thanks, mate.
  15. Replies
    4
    Views
    1,711

    Characters in Average cpp File

    Hey, not exactly a programming question, but it pertains to a program I'm doing...hopefully not the wrong place for this ;)

    Does anyone know where I can find the average number of characters per...
  16. Replies
    8
    Views
    4,615

    Meant to post this sooner but couldn't load the...

    Meant to post this sooner but couldn't load the site up for some reason or another...

    I also tried to do it with code randomly inject operators and varaibles, after some frustration, but like you...
  17. Replies
    8
    Views
    4,615

    Thanks, sorry about the misunderstanding... for...

    Thanks, sorry about the misunderstanding... for anyone who still wants in, I'm going to be working on it again tonight...didn't get much farther last night than what was posted
  18. Replies
    8
    Views
    4,615

    0xDEADBEEF (who can get to it first)

    Hey people, I've a challenge for whoever's up to it...
    Here's the deal:

    using the hex values:

    AAAAAAAA
    CCCCCCCC
    F0F0F0F0
    FF00FF00
    FFFF0000
Results 1 to 18 of 18