Skill Building Exercises

 < Day Day Up > 



  1. Creating and Linking C Libraries: Write a C function that counts the number of words in a text file and returns the count. Compile the routine and create a static library. Write a C++ program that calls the wordCount() function.

  2. Inline Assembly: Write a C++ function that takes an array of integers and the number of elements the array contains as arguments. Sum the array contents and return the result using assembly language for your particular hardware and compiler.

  3. Stand Alone Assembly Modules: Convert the array summation function you wrote in the previous exercise to a stand-alone assembly module. Create a C++ program that calls the arraySum() function.

  4. Java Native Interface (JNI): Write a Java program that calls the wordCount() function created in the first exercize.



 < Day Day Up > 



C++ for Artists. The Art, Philosophy, and Science of Object-Oriented Programming
C++ For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming
ISBN: 1932504028
EAN: 2147483647
Year: 2003
Pages: 340
Authors: Rick Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net