Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~218 People Reached
Favorite Forums
Favorite Tags
c++ x 4
Member Avatar for monique83

Here is my attempt, could you look over it and tell me what I am doing wrong? #include <cstdlib> #include <iostream> #include <ctime> #include <cmath> using namespace std; void add(float[],float[],float[]); int main() { float a[500000000],b[500000000],c[500000000]; for(int count =0; count<500000000;count++) { a[count]=rand(); b[count]=rand(); } add(a,b,c); return 0; } void add(float x[],float …

Member Avatar for Lerner
0
93
Member Avatar for monique83

Objective: to determine the MFLOPS for floating point addition, subtraction, multiplication and division on two different machines. I Write a very simple C++ program: 1. Create three float arrays A, B and C with 500000000 elements 2. Call a random number generator to fill up A and B with numbers. …

Member Avatar for monique83
0
125