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...
Type: Posts; User: Speedy5
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...
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...
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...
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...
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.
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...
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...
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...
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...
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...
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...
I have the following function:
template <int compareDirection>
string getAbsoluteWord(Sequence &wordsList) ...
I want to make two typedefs that define getSmallestWord as getAbsoluteWord<-1>...
If you meant about redirecting the output of a program into a file you can readily print, use this example:
c:\> dir > output.txt
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?
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...
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...
Java. :)
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...
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...
> 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...
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...
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...
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...
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.
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