Search:

Type: Posts; User: fgg

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,285

    Here's what seems to be a nice solution in case...

    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;
  2. Replies
    4
    Views
    2,285

    Here's another way to look at the problem: in the...

    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...
  3. Replies
    4
    Views
    2,285

    Populating 2-D arrays

    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...
Results 1 to 3 of 3