Show how a foreign language function can be called from the language. As an example, consider calling functions defined in the C language. Create a
Continue ReadingC++: Catch an Exception Thrown in a Nested Call
#post-19441 .tfe-editorial-context a {color:#0000ff !important;text-decoration:underline !important;}#post-19441 .tfe-editorial-context pre {max-width
Continue ReadingRead/convert an InputStream to a String
If you have java.io.InputStream object, how should you process that object and produce a String? Suppose I have an InputStream that contains te
Continue ReadingC++: Animate a Pendulum
#post-18707 .tfe-editorial-context a {color:#0000ff !important;text-decoration:underline !important;}#post-18707 .tfe-editorial-context pre {max-width
Continue ReadingC++: Count Occurrences of a Substring
#post-19200 .tfe-editorial-context a {color:#0000ff !important;text-decoration:underline !important;}#post-19200 .tfe-editorial-context pre {max-width
Continue ReadingC++: Copy a Range of Elements
On line 7, we create a std::vector<int> called source containing a sequence of values that we wish to copy. On line 9, we have another std::v
Continue ReadingC++: Delete a File
#post-19284 .tfe-editorial-context a {color:#0000ff !important;text-decoration:underline !important;}#post-19284 .tfe-editorial-context pre {max-width
Continue ReadingCreating a Memory Leak With Java
I just had an interview, and I was asked to create a memory leak with Java. Needless to say I felt pretty dumb having no clue on how to even start cre
Continue ReadingC++ Full Course Lesson 2: Understanding a Simple C++ Program
#post-21497 .tfe-editorial-context a {color:#0000ff !important;text-decoration:underline !important;}#post-21497 .tfe-editorial-context pre {max-width
Continue ReadingC++: Greatest Element of a List
#post-19607 .tfe-editorial-context a {color:#0000ff !important;text-decoration:underline !important;}#post-19607 .tfe-editorial-context pre {max-width
Continue Reading




