No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Hello. I am a beginner. I have searched the past threads, but I haven't found any help. My assignment says to write a function to swap 2 values using pointers. Write a main function that inputs 2 numbers. Have it call the swap function if the numbers are NOT in … |
|
Hi all, I'm new to working with C++ (I'm more a C programmer) and I have a question: I have a container class for a templated type T, which could be any scalar type, although the most commonly used ones are unsigned char and float. I have a function that … |
|
Hi all, I'm looking for a function that releases the CPU for the current executing thread. What I'm doing is implementing a multi-threaded approach to sum table calculations, and using OpenMP for multithreading. Here's the problem: I have a thread that depends on a number of other threads to finish … |
|
Hi all, Here's the problem I have. clock() call returns 0 no matter when I call it.... Code: [CODE] #include <time.h> #include <stdio.h> #include <math.h> int main() { volatile double n, i, x; clock_t time1, time2, time3; int j; // while (time1 < 1) time1 = clock(); for (i = … |