Search:

Type: Posts; User: m37h0d

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    12
    Views
    748

    a couple things: no, you'd return a copy of...

    a couple things:

    no, you'd return a copy of the integer address of where newList used to be (it's probably just been cleaned off the stack when the function exits).

    you're returning an empty...
  2. CombinationMatrix::CombinationMatrix(unsigned int...

    CombinationMatrix::CombinationMatrix(unsigned int numVars, unsigned int numStates):
    numVars(numVars),
    numStates(numStates),
    Matrix(pow((double)numStates, (double)numVars),...
  3. Replies
    4
    Views
    5,204

    loop over the board and see if a single character...

    loop over the board and see if a single character occupies any row, column, or diagonal. if yes, that character is the winner. otherwise, if the number of turns == 9, then it's a draw.
  4. Thread: Arithmetic

    by m37h0d
    Replies
    2
    Views
    661

    int minutes = 45; or int minutes = 15;...

    int minutes = 45;

    or

    int minutes = 15;
    minutes = 60-minutes;

    you really shouldn't have to ask this, should you? O_o
  5. Replies
    6
    Views
    1,566

    accept it. the cause of suffering is desire.

    accept it. the cause of suffering is desire.
  6. Replies
    1
    Views
    716

    /Zp 4 is the solution

    /Zp 4 is the solution
  7. Replies
    1
    Views
    716

    memory garbling across dll boundaries

    after upgrading some projects to VS 2010, i'm now getting some truly odd behavior.

    there are 3 parts to this particular monstrosity:

    a .NET client application
    a C++/CLI interop wrapper DLL
    a...
  8. jfgi: an acceptable alternative to rtfm.

    jfgi: an acceptable alternative to rtfm.
  9. oh man. this sounds like my first job out of...

    oh man. this sounds like my first job out of college.

    i wish i could help but i never learned modbus, tho it was often talked about.

    my best advice to you is to obtain a copy of the standard...
  10. Replies
    0
    Views
    1,032

    A pattern proposed by Anders Hejlsberg...

    Generics in C#, Java, and C++



    can anyone suggest a better way of executing Anders' suggestion than:



    public interface Calculator<T>
    {
  11. Thread: get nanoseconds

    by m37h0d
    Replies
    7
    Views
    3,997

    this won't actually give you execution time down...

    this won't actually give you execution time down to nanoseconds. if the original measurement doesn't have that level of resolution, you can't replace it mathematically. if the information isn't there...
  12. Thread: get nanoseconds

    by m37h0d
    Replies
    7
    Views
    3,997

    if you're on windows there's performance counter ...

    if you're on windows there's performance counter

    Performance Counters
  13. Replies
    7
    Views
    1,735

    that's awesome. does this mean recursive FT...

    that's awesome.

    does this mean recursive FT is a possible way to get the eigenfrequencies of a periodic function? o_O
  14. well, for one, what is the distinction between...

    well, for one, what is the distinction between service and network? from what i can understand, and what you put above, i don't see any need to separate them.

    you didn't document how you're going...
  15. you certainly dont' come close to handling all...

    you certainly dont' come close to handling all the information laid out in your problem statement, so no. as a matter of style, you should not have different type names that differ only in...
  16. Replies
    7
    Views
    1,735

    there's also openAL. i would forego building a...

    there's also openAL.

    i would forego building a complicated gui editor.

    i would detect the heartbeats algorithmically. the heartbeats should be significantly louder than the background noise,...
  17. Replies
    17
    Views
    1,576

    well, that works just fine. i swore i tried...

    well, that works just fine. i swore i tried casting to T* just like that and i got a compile error in xutility. clearly i made an error somewhere.
  18. Replies
    6
    Views
    3,342

    char status1 should be bool isMarried whenever...

    char status1 should be bool isMarried

    whenever you find yourself doing repetitive copy/paste, you should refactor your code to eliminate those redundancies.

    consider using an object to...
  19. Replies
    17
    Views
    1,576

    please demonstrate how to execute std::copy of a...

    please demonstrate how to execute std::copy of a multidimensional array with a simple 1-liner. i attempted it briefly and failed.
  20. Replies
    17
    Views
    1,576

    i got pulled away and didn't refresh the page...

    i got pulled away and didn't refresh the page before i posted. not familiar with those.
  21. Replies
    17
    Views
    1,576

    theres multiple problems here. for one, a 2d...

    theres multiple problems here. for one, a 2d array is not the same thing as a pointer-to-pointer. also, you cannot implicitly size static arrays of more than one dimension.


    the closest you could...
  22. Replies
    1
    Views
    1,114

    read the manual. winapi is painful, but you can...

    read the manual. winapi is painful, but you can muddle your way through it.
  23. Replies
    7
    Views
    1,465

    yes, clearly it doesn't. seems rather asinine to...

    yes, clearly it doesn't. seems rather asinine to me.
  24. Replies
    7
    Views
    1,465

    Duplicate user-defined conversion in type...

    Duplicate user-defined conversion in type 'ConsoleApplication1.Foo'


    changing implicit to explicit (which doesn't make any sense why that should help) yields the same exception.
  25. Replies
    7
    Views
    1,465

    this works, but how asinine to have to use LINQ...

    this works, but how asinine to have to use LINQ and a lambda to do something that seemingly should be handled by the method above. dotfail.



    ImplicitlyConvertibleFromFoo[] castArray =...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4