What problem are you having? - the only issues I see:
you do not loop around the switch statement so that the user can enter multiple items (seems to me it is implied from the requirements),
you...
Type: Posts; User: jim mcnamara
What problem are you having? - the only issues I see:
you do not loop around the switch statement so that the user can enter multiple items (seems to me it is implied from the requirements),
you...
DST changes are political. Some countries , like in Irsrael, DST may actually be legally mandated after it has already started... Lunar calendars like Hijri are so unrelated to the Gregorian...
We seem to be talking past each other.
You should call tzset() with the timezone of the input data. Then call strptime() with the time/date string only, no TZ string.
As a matter of procedure...
C function "strtoull" failing - The UNIX and Linux Forums
Please do not post the same question everywhere. This requires that you read about one paragraph of documentation on printf format...
There are some problems in your code, for example:
#include "stdio.h"
// should be
#include <stdio.h>
for your includes.
Did you actually compile this code? And. What is your...
Can you get access to a bignum library: e.g.,
gmp The GNU MP Bignum Library for Linux
C# express for Windows Download | Microsoft Visual Studio 2012
cygwin + gmp + gcc for windows Cygwin ...
This is a serious design question.
Consider: Cache latency and Column-wise Access
If you access each element (either in a bit table, or some other data structure) of a column when the whole...
Are you bound to using datatypes and not bits? You seem to have only -- off/on -- for each "cell" in your matrix.
This has O(N) access to columns given a row, or to rows given a column.
//...
Every datatype has it's own storage requirement based on system architecture.
The size of a float is probably 32 bits, an integer 32 bits. Why probably?
There are standards about how to...
DRY principle - Don't Repeat Yourself. Say you write a few lines of code to get yesterday's date, and need use it over and over in a large application---a simple example:
char...
This is easy to understand:
http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm
This is more useful and higher level - David Goldberg's article:
What Every Computer...
The standards text is a little bit impenetrable. I agree with you. Thanks. There are several standards people on the forums here so -- worth a question.
from C11 standards N1570 draft
I believe this is UB per the above: (it is obviously contrived)
int main()
{
int a;
int b=a;
Consider not spreading this question everywhere on the net:
Senior Advisor - http://www.unix.com
Need help with Card Dealing Program - Dev Shed
Salem is definitely on the best track. I/o can slow things down hours - crummy algorithms slow things down for weeks.
I vote for:
Linear search times on a growing array or linked list. At the...
I'm not suggesting anything. I am a mod on another site -we are being removed from the list because we demonstrated that we have always actively blocked homework and have a zero tolerance for it.
...
cboard.cprogramming.com is listed #7 on list of sites/forums that actively support "contract cheating". Which term you can google for lots of examples.
Robert Clarke, Thomas Lancaster and (I...
See the table 'MT Interface Safety Levels' mid-way down the page --- discusses what thread-safe and POSIX async-safe mean, and provides a spectrum of 'safe' definitions.
5 Safe and Unsafe...
Linux on x86 is little endian because x86 is little endian. There can be architectures running Linux that may not be little endian.
The Internet Protocol defines internet endianness as big...
deep copies refer to allocating memory and copying the contents of allocated objects into the destination pointer's allocated memory.
i.e.,
b.shallow needs it own separate chunk of allocated...
Thanks - I'll find and read it.
void foo(void)
{
int b[3]={0};
char c[4]={0x0};
/* this point */
}
I cannot find in the C99 standard - at /* this point */ - what the value of the two initialized auto arrays must...
POSIX also supports message queues. They would probably not work as well for your app as some other IPC method, like named pipes or a socket, for example. Sockets are very commonly used by daemons...
Actually the comment flatly stated that C standards dictate that fp operations must all be double precision. I could no imagine how that would EVER get through the standards committee.
But you're...
I don't see anything in the standard to support all fp operations being double precision.
It did not sound at all right to start with, but I've gotten rather old, and so wanted to be sure.
Thanks.