Forum: C
Feb 10th, 2006, 3:07 PM
|
|
Replies: 18
Views: 388
|
Forum: C
Feb 10th, 2006, 1:33 PM
|
|
Replies: 18
Views: 388
As stated, you need to convert the times to...
As stated, you need to convert the times to seconds.
(Edit: Actually for your needs you only need to convert to minutes and not worry about seconds)
Find the difference
And then convert the time...
|
Forum: C
Dec 19th, 2005, 4:16 PM
|
|
Replies: 9
Views: 352
|
Forum: C++
May 23rd, 2005, 8:27 AM
|
|
Replies: 2
Views: 151
|
Forum: C
May 18th, 2005, 7:48 AM
|
|
Replies: 5
Views: 241
|
Forum: C#
May 16th, 2005, 12:12 PM
|
|
Replies: 15
Views: 507
|
Forum: C#
May 13th, 2005, 9:00 AM
|
|
Replies: 26
Views: 809
|
Forum: C++
May 12th, 2005, 8:26 AM
|
|
Replies: 11
Views: 404
you're printing too many b's because your...
you're printing too many b's because your algorithm for finding all the permutations is wrong. A quick search turned up a couple of solutions to the problem, iteratively and recursively. Your...
|
Forum: C++
May 11th, 2005, 3:11 PM
|
|
Replies: 11
Views: 404
|
Forum: C++
May 11th, 2005, 7:50 AM
|
|
Replies: 11
Views: 404
|
Forum: C#
May 10th, 2005, 3:29 PM
|
|
Replies: 26
Views: 809
you can use ReadLine to get the entire line...
you can use ReadLine to get the entire line including the carriage return & form feed (which are then automatically discarded).
this returns a string, so like others have said you'll have to convert...
|
Forum: C
May 10th, 2005, 2:46 PM
|
|
Replies: 16
Views: 479
|
Forum: C
May 10th, 2005, 2:09 PM
|
|
Replies: 19
Views: 398
|
Forum: C
May 9th, 2005, 4:00 PM
|
|
Replies: 16
Views: 532
he uses size-1 because his implementation of...
he uses size-1 because his implementation of strlen() (array_size) returns the count including the ending null character, while the standard implementation does not.
size-2-x. would be...
|
Forum: C
May 9th, 2005, 12:41 PM
|
|
Replies: 16
Views: 532
|
Forum: C
May 9th, 2005, 12:35 PM
|
|
Replies: 16
Views: 532
|
Forum: C
May 9th, 2005, 12:29 PM
|
|
Replies: 16
Views: 532
|
Forum: Perl
May 9th, 2005, 10:38 AM
|
|
Replies: 4
Views: 402
The split is working exactly how you think it...
The split is working exactly how you think it is.
entry[0] is the word and
entry[1] is the definition
the problem is the assignment.
an example.
$dictionary{test} = 'test's definition' && print...
|
Forum: Perl
May 9th, 2005, 8:32 AM
|
|
Replies: 4
Views: 402
instead of using
$dictionary{$_[0]} eq...
instead of using
$dictionary{$_[0]} eq undef
use
!defined($dictionary{$_[0]})
unfortunately I can't give you an explanation why.... I don't know :confused:
Looks like you have some other bugs..
|
Forum: C++
May 6th, 2005, 7:56 AM
|
|
Replies: 8
Views: 430
use namespace std , or fully qualify
#include...
use namespace std , or fully qualify
#include <iostream>
#include <iomanip>
using namespace std; // if you don't do this you have to fully qualify cout, fixed, setprecision .....
int main () {
...
|
Forum: Perl
May 5th, 2005, 3:37 PM
|
|
Replies: 10
Views: 477
the (.+): would not have eaten up the colon or...
the (.+): would not have eaten up the colon or anything after it unless there was a another colon later in the string. In this case it would match upto the final : in the string.
so you're right the...
|
Forum: C
May 2nd, 2005, 11:16 AM
|
|
Replies: 9
Views: 329
|
Forum: C++
Apr 29th, 2005, 1:41 PM
|
|
Replies: 3
Views: 221
The problem is how you are trying to call the...
The problem is how you are trying to call the functions.
(int n1, int n2) // do not need to define the types here
int multiply //int is the type of return value; you should assign the result of the...
|
Forum: C
Apr 28th, 2005, 1:22 PM
|
|
Replies: 9
Views: 329
|
Forum: Perl
Apr 27th, 2005, 10:34 AM
|
|
Replies: 10
Views: 477
|
Forum: C++
Apr 22nd, 2005, 2:53 PM
|
|
Replies: 12
Views: 288
I saw it was a pointer, but what does it point...
I saw it was a pointer, but what does it point to?. It points to memory allocated for one char.
Yes, it compiles fine.
and Yes, it may even run fine, but that doesn't mean it's right.
Like I said...
|
Forum: C++
Apr 22nd, 2005, 2:20 PM
|
|
Replies: 12
Views: 288
|
Forum: C++
Apr 20th, 2005, 9:26 AM
|
|
Replies: 2
Views: 188
your function prototypes do not match your...
your function prototypes do not match your function definitions
getdata prototype (char[], int , float, int)
getdata definition (int[], int, float, int)
similar for putdata, in the prototype your...
|
Forum: C++
Apr 20th, 2005, 7:48 AM
|
|
Replies: 4
Views: 220
|
Forum: Bash / Shell Scripting
Apr 19th, 2005, 4:16 PM
|
|
Replies: 6
Views: 380
Here's a nasty solution.... There must be much...
Here's a nasty solution.... There must be much better ways
count the number of files that match *.core... ignore 'No match'...
(to be correct you would also have to ignore other find error msgs...
|
Forum: Bash / Shell Scripting
Apr 19th, 2005, 3:45 PM
|
|
Replies: 6
Views: 380
|
Forum: Bash / Shell Scripting
Apr 19th, 2005, 3:33 PM
|
|
Replies: 6
Views: 380
sorry, I was thinking ksh.
I editied my post...
sorry, I was thinking ksh.
I editied my post what you want is, >&
also yes, It looks like with -f there should be no error msg to worry about.
Maybe I should've left this one to someone with more...
|
Forum: Bash / Shell Scripting
Apr 19th, 2005, 3:07 PM
|
|
Replies: 6
Views: 380
|
Forum: Perl
Apr 15th, 2005, 8:04 AM
|
|
Replies: 5
Views: 484
Yes, because 'world' is there twice, it loops...
Yes, because 'world' is there twice, it loops infinitely.
You need to understand what a hash (associative array) is, to really see what is going on.
For this example it's functioning like a lookup...
|
Forum: Perl
Apr 14th, 2005, 1:40 PM
|
|
Replies: 5
Views: 484
|
Forum: C++
Apr 13th, 2005, 9:14 AM
|
|
Replies: 15
Views: 521
|
Forum: C++
Apr 5th, 2005, 11:20 AM
|
|
Replies: 8
Views: 430
|
Forum: C++
Mar 29th, 2005, 10:16 AM
|
|
Replies: 9
Views: 221
|
Forum: C++
Mar 29th, 2005, 8:26 AM
|
|
Replies: 16
Views: 760
|
Forum: C++
Mar 29th, 2005, 8:14 AM
|
|
Replies: 9
Views: 221
|