Search:

Type: Posts; User: linuxdude

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    27
    Views
    3,540

    I've never used it, but one of my professors told...

    I've never used it, but one of my professors told me about the Boehm-Demers-Weiser garbage collector. Apparently, you just link to it and it'll do the magic work.
  2. Replies
    5
    Views
    6,258

    You can use the boost filesystem library. They...

    You can use the boost filesystem library. They make it convenient to work with URLS. Also, you could just use find_if and then tokenize your searches.
  3. Replies
    5
    Views
    2,051

    Thanks for the information. These responses...

    Thanks for the information. These responses confirmed my thoughts. The "effective" books are so darn...effective. I don't have that one though. I'll have to look into it.
  4. Replies
    5
    Views
    2,051

    Functors in Standard Library

    I have been programming with the STL for a while now and I have a question about using functors. Look at this code

    #include <iostream>
    #include <vector>
    #include <algorithm>

    using namespace...
  5. Replies
    6
    Views
    1,498

    besides the fact that you have Struct with a...

    besides the fact that you have Struct with a capital, a struct and a class are the same thing in c++ save access controls. Does this make it clearer?
  6. Replies
    2
    Views
    7,005

    endl is different from \n endl: Inserts a...

    endl is different from \n

    endl: Inserts a new-line character. Additionally, for buffered streams, endl flushes the buffer (i.e. writes all unwritten characters in the buffer to the output...
  7. Replies
    6
    Views
    1,615

    This code made me think. How does priority_queue...

    This code made me think. How does priority_queue compare elements?

    #include <vector>
    #include <iostream>
    #include <queue>

    int main()
    {
    std::vector<std::vector<int> > v;
    ...
  8. Replies
    9
    Views
    1,470

    add should be like all the other methods you...

    add should be like all the other methods you declared. Taking one argument makes more sense. Also, since this is c++ you should take advantage of operator overloading.
  9. Replies
    38
    Views
    2,582

    Sorry, I meant boost::scoped_array.

    Sorry, I meant boost::scoped_array.
  10. Replies
    38
    Views
    2,582

    Also auto_ptr doen't support proper deallocation...

    Also auto_ptr doen't support proper deallocation on arrays. For that you need boost::scoped_ptr or something similar. Also be careful about multiple references with auto_ptrs, but they are...
  11. Replies
    15
    Views
    4,146

    I'm confused by what you mean here? If you have...

    I'm confused by what you mean here? If you have a template, then you will specialize functions. If you don't then you can overload them. Could you be more elaborate?
  12. Replies
    64
    Views
    6,103

    It's called Goobuntu...

    It's called Goobuntu
  13. Replies
    5
    Views
    1,019

    Java question

    I have a particularly bad time with java forums, and I have a question. I was thinking that this question is more for c/c++ people anyway. I created some functions that I want to use. However, it...
  14. Replies
    17
    Views
    8,196

    However, a set has a few points of interests:...

    However, a set has a few points of interests:
    You cannot store the same element twice. If you need do this use a multiset
    It will sort your contents. If you need to keep the ordering use...
  15. Replies
    7
    Views
    939

    Or you could be absurd and use the boost graph...

    Or you could be absurd and use the boost graph library :-D
  16. Replies
    12
    Views
    6,357

    Your loop isn't right. while(scanf("%s",...

    Your loop isn't right.
    while(scanf("%s", input) != EOF){
    for(i=0;i<anagsize;i++){
    if(areAnags(anagram[i],input) == 0){

    Look at how they are getting compared. For example let's say the...
  17. Replies
    21
    Views
    37,888

    So for my example class B would be class B :...

    So for my example class B would be
    class B : public A {
    public:
    using A::oper;
    virtual double oper(double x, double y) {
    return x * y;
    }
    };
    This does as I expect, but did the...
  18. Meh. I'd use python. It has a great liburl2...

    Meh. I'd use python. It has a great liburl2 library and their regex library is good too. This isn't a troll, but I like to use tools that are good for the job. Are you required to use C?
  19. collage is spelled college. Unless you mean a...

    collage is spelled college. Unless you mean a form of art?
  20. Replies
    9
    Views
    2,021

    Are you sure that is the standard? I'm not sure,...

    Are you sure that is the standard? I'm not sure, but I can't find anything saying whether it will be filled with \0's or just be 'h', 'e', 'l', 'l', 'o', '\0', ????
    I always thought it was the...
  21. lol. Do you know about the break statement...

    lol. Do you know about the break statement Jasper?
  22. Replies
    13
    Views
    1,157

    That is a simple mistake. Half would be a linear...

    That is a simple mistake. Half would be a linear search. It may help to look at the complexities of the algorithms

    linear = O(n) // data spread randomly
    binary = O(log(n)) // data in order...
  23. Replies
    21
    Views
    37,888

    Would this be the appropriate solution #include...

    Would this be the appropriate solution
    #include <iostream>

    class A {
    public:
    virtual int oper(int x, int y) {
    return x + y;
    }
    virtual double oper(double x, double y) {
    ...
  24. Replies
    12
    Views
    1,190

    That's gratitude there :-D Good job helping...

    That's gratitude there :-D Good job helping tabstop and rossipoo, I'm sure he appreciates it with messages like that!
  25. Replies
    8
    Views
    2,771

    You should look into salts if you want a secure...

    You should look into salts if you want a secure password store. Linux stores (encrypted) user passwords in a file /etc/shadow. However, it is secure because it is only readable by root and even if...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4