Here's what seems to be a nice solution in case anyone else is interested:
#include <stdio.h>
int function(int a,double x) {
int b = (x+0.05)*10;
return a*100+b;
Type: Posts; User: fgg
Here's what seems to be a nice solution in case anyone else is interested:
#include <stdio.h>
int function(int a,double x) {
int b = (x+0.05)*10;
return a*100+b;
Here's another way to look at the problem: in the example below, how can I change the code to set each element of the array to a value that comes from a function that doesn't use x and y as...
Hello,
I'd like to populate the 4x3 array below using the function "function"
to determine the value of each element. This function takes 2
arguments, which will vary in a systematic way (see...