Search:

Type: Posts; User: Speedy5

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    5,544

    Waking Laptop on AC Power

    I was wondering if there is some API/trick/hack that would allow a laptop to wake up from sleep when it senses that it is connected to power, or that its battery is charging. I know I could build an...
  2. Replies
    20
    Views
    20,446

    double gallon = (0.264179*liters); You can't do...

    double gallon = (0.264179*liters);
    You can't do that since liters is undefined at the point of usage. Basically what you want is have it as a constant ratio and then multiply it (factor-label) in...
  3. Replies
    2
    Views
    3,055

    This is a pretty straight-forwards example of...

    This is a pretty straight-forwards example of thinking in object-oriented programming.

    Note: This really just acts like a bunch of structs since none of the objects have any behavior. I also...
  4. Replies
    11
    Views
    1,112

    Sounds like homework....

    Sounds like homework.

    But honestly though, if you're having problems, post what you have right now. You should at least be able to make function prototypes for the questions. Then look in your...
  5. Thread: sleep

    by Speedy5
    Replies
    16
    Views
    2,933

    You can always create your own (blocking) sleep...

    You can always create your own (blocking) sleep function by using a simple while loop and the functions found in the <ctime>, specifically clock(), and the macro CLOCKS_PER_SEC.
  6. Replies
    5
    Views
    2,026

    That would only be legal if what you meant by...

    That would only be legal if what you meant by C...... is CA **. If you meant C..... to mean CB **, then that would be illegal. That FAQ item is a bit hard to understand; but basically, take this...
  7. Replies
    8
    Views
    1,490

    Messing with your friend like that is only one...

    Messing with your friend like that is only one step away from actually making a virus. Your programming should never be destructive.

    Use a sleep function rather than an loop. You should be able to...
  8. Thread: <?= operator

    by Speedy5
    Replies
    29
    Views
    2,577

    How do you know maxx, rt, or tt aren't objects...

    How do you know maxx, rt, or tt aren't objects with the != and + operators overloaded for some reason? The maxx != rt + tt statement might actually do something useful, although I really can't find a...
  9. Thread: Fbla ?

    by Speedy5
    Replies
    9
    Views
    2,948

    The C++ test was pathetic in that at least 10% of...

    The C++ test was pathetic in that at least 10% of the questions had errors in them. Some had two answers, some didn't have any answers, many had syntax errors, and an extraordinary few where actually...
  10. Replies
    8
    Views
    1,433

    I was using a preprocessor statement similar to...

    I was using a preprocessor statement similar to yours except with parenthesis, however, I think that the pure C++ approach with inline functions is much more in the nature of good coding. The typedef...
  11. Replies
    8
    Views
    1,433

    Thanks for the explanation. I was using the...

    Thanks for the explanation. I was using the preprocessor and totally forgot about using inline functions for that purpose.

    I'm using a template parameter for that simply because it would force the...
  12. Replies
    8
    Views
    1,433

    Templated Function Typedef

    I have the following function:


    template <int compareDirection>
    string getAbsoluteWord(Sequence &wordsList) ...
    I want to make two typedefs that define getSmallestWord as getAbsoluteWord<-1>...
  13. Replies
    4
    Views
    4,432

    If you meant about redirecting the output of a...

    If you meant about redirecting the output of a program into a file you can readily print, use this example:

    c:\> dir > output.txt
  14. Thread: PennState

    by Speedy5
    Replies
    17
    Views
    5,155

    Haha, what does that mean? So they get enough...

    Haha, what does that mean? So they get enough expertise to live? Or so that they pass/get all their credits since its so hard?
  15. Thread: PennState

    by Speedy5
    Replies
    17
    Views
    5,155

    I'm from Mt. Lebanon, PA; sub-urb of Pittsburgh....

    I'm from Mt. Lebanon, PA; sub-urb of Pittsburgh. I'm not sure where I want to apply for college. My list goes: PennState, CMU, Lehigh, Cornell, Havard (for business). I believe I have what it takes...
  16. Thread: PennState

    by Speedy5
    Replies
    17
    Views
    5,155

    PennState

    What have you guys heard about PennState? Does it carry a good reputation? Is their electrical engineering program good? Its ranked 19 in the country and since its a state college, tuition will be...
  17. Replies
    17
    Views
    4,841

    Java. :)

    Java. :)
  18. Replies
    26
    Views
    5,274

    If you actually look up real information about...

    If you actually look up real information about Palladium; now called Next-Generation Secure Computing Base for Windows, part of Microsoft's Trustyworthy Computing Initiative. It actually seems like a...
  19. Thread: OpenGL Text

    by Speedy5
    Replies
    4
    Views
    1,897

    OpenGL Text

    How would you go about printing text in OpenGL? I would like to use real fonts instead of bitmap fonts. And is there any way I can render it to a texture so I can place it on a quad?

    Any links or...
  20. Replies
    47
    Views
    17,571

    > The most BASIC ever gets used is in the case of...

    > The most BASIC ever gets used is in the case of Visual Basic, in which a company will hire a few programmers to develop some private databasing software for them, and that is about all.

    You'd be...
  21. Replies
    4
    Views
    2,397

    Yea I figured someone would say OpenGL. I really...

    Yea I figured someone would say OpenGL. I really want it to be 2D only because:

    a) My machine isn't very powerful: no video card.
    b) I'm drawing GUI applications, no need for 3D or all the...
  22. Replies
    47
    Views
    17,571

    C# is pretty good although I really don't like...

    C# is pretty good although I really don't like any language outside of C++. VB6 was quick and easy to learn and to develop in but C++ is just too powerful to give up. PHP... I use it but I don't like...
  23. Replies
    4
    Views
    2,397

    Graphics Libraries

    I'm looking for a proffesional cross-platform graphics library thats able to run on Windows, Linux, and Macs. I wish it to be similar to GDI+ (what .NET uses) or Java2D.

    I am aware of SDL and...
  24. Replies
    8
    Views
    2,690

    In general, take the highest order term in the...

    In general, take the highest order term in the polynomial, strip its coeficient and thats the Big-O efficiency. Remember, logarithms are exponents (inverse though) so this also applies for them.
  25. Thread: Gas dropping?

    by Speedy5
    Replies
    29
    Views
    5,507

    30 kilometers in 10 minutes means you're driving...

    30 kilometers in 10 minutes means you're driving 112 mph on average which is insane. Most cars can't go that fast for extended periods of time.

    hahaha nice :D
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4