User Profile

Collapse

Profile Sidebar

Collapse
harimca14
harimca14
Last Activity: Sep 5 '07, 02:30 AM
Joined: Sep 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • harimca14
    started a topic Class code and methods for spehere in C++
    in C

    Class code and methods for spehere in C++

    Question 1:
    a. Define a data structure to describe a sphere.
    b. Write a set of three optimized C/C++ functions.
    c. The first function, given a sphere and a point, will call a second function to
    determine if the point is within the sphere. If it is, the first function should then
    call the third function that must move the sphere the shortest distance that causes
    it to no longer be in a colliding state with...
    See more | Go to post

  • Implementing toLower() function without calling library

    Implement 'lowercase' function in C without calling a library function
    [code=c]
    int main(void)
    {
    const char* test_string = "This senTance iS prepared to CheCk.";
    int success = lowercase(test_ string);
    printf(test_str ing); //Output: “this sentence is prepared to check.”
    }[/code]
    See more | Go to post
    Last edited by sicarie; Sep 4 '07, 01:14 PM. Reason: Code tags

  • harimca14
    started a topic rewrite the code
    in C

    rewrite the code

    Rewrite the following function so that the following conditions are satisfied:
    a. The multiplication operator ('*') is not used.
    b. The division operator ('/') is not used.
    c. The function does not make use of loops.
    d. DO NOT use assembly
    int MultiplyBy321(i nt value) {
    int rslt;
    rslt = value * 321;
    return rslt;
    }
    See more | Go to post
No activity results to display
Show More
Working...