January 6th, 2012, 04:08 PM
I used gettimeofday() but i have the same problem
struct timeval start,end;
January 6th, 2012, 07:16 AM
The value of start is also 0.On failure clock() returns -1 thus it did not failed. Is there another way to benchmark my function?
January 4th, 2012, 06:58 AM
I want to calculate the time elapsed since the execution of take_forks() but the value of "b" and "end"are always 0.Why this happens?
start=clock();//clocks before taking...
December 3rd, 2011, 10:33 AM
# include <pthread.h>
# include <stdio.h>
# include <stdlib.h>
# define NUM_THREADS 10
July 20th, 2011, 09:21 AM
i try to connect to a database remotely bu i get the following error
"java.sql.SQLException: [Microsoft] [Driver Manager ODBC] did not find the name of the data source and has no default driver...
April 30th, 2011, 11:41 AM
the class has more variables
my idea was every object of this class is a flight and the user can change the details of a flight
by changing the members of the object .If iwant to add a flight i...
April 30th, 2011, 09:47 AM
April 30th, 2011, 09:07 AM
April 30th, 2011, 08:56 AM
I want to instert objects of another class into a linked list i have written these functions what i have to change to pass objects of other classes like flight
April 30th, 2011, 07:10 AM
i get this error when iam trying to compile" `Chain' is neither function nor member function; cannot be declared friend " but i cant find what causes this.
April 26th, 2011, 02:23 PM
Thank you very much for the answers
April 26th, 2011, 01:58 PM
using namespace std;
void prevnext (int *x, int *prev, int *next)
*prev = *x-1;
*next = *x+1;
int main ()
April 19th, 2011, 09:27 AM
thanks if i add const it works!!Can you explain why it needs const before?
And something else if i have a throw without a catch and try the program will terminate when executes throw?
April 19th, 2011, 07:41 AM
this program when a=0 terminates with the following error "this applicationhas requested the runtime to terminate it in an unusual way" normally it have to print "error" am i wrong?