Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~10.8K People Reached
Member Avatar for riotburn

So its fun when you have questions for hw but neither the teacher nor the textbook show you how to do the HW question. Anyway, I have my base class, a derived class, and class with composition of the derived class. I am not sure how to create the constructor …

Member Avatar for Odumenya12
0
640
Member Avatar for riotburn

I have the below class that yields this error for the lines I commented. The error I get is ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say ‘&FD_Euro_Put::f’ The signature for Forward Euler is: Eigen::MatrixXd B::Forward_Euler(double …

Member Avatar for rafea fheely
0
302
Member Avatar for riotburn

So at work I had to keep recreating these summaries. Was a very tedious process so when I had some downtime I was able to create a little program in Excel that would spit out a days worth of work in 5mins. Now that I have that working, I am …

0
61
Member Avatar for riotburn

I am writing a polynomial class and finally got done writing all the functions, set up the main but get an assertion failed _BLOCK_TYPE_IS_VALID(pHead->nBlockUse). I read it has something to do with the going over the size of the heap, but don't entirely grasp that. Any clues? [CODE] #include <iostream> …

Member Avatar for riotburn
0
121
Member Avatar for riotburn

I am writing a polynomial class but the code I have written to overload the ostream operator<< goes into a infinite loop for the first term. I tried to step through but Visual Studio 2010 goes into linker(?) code instead of only stepping through my code. (How to change the …

Member Avatar for riotburn
0
114
Member Avatar for riotburn

I've made a shape base class along with a bunch of derived classes. I have an object array of derived objects and a loop to do the function but am getting this error: error LNK2001: unresolved external symbol "public: virtual void __thiscall Shape::drawObject(void)" (?drawObject@Shape@@UAEXXZ) Thought it might be a problem …

Member Avatar for Tellalca
0
226
Member Avatar for riotburn

I have a shape class with each shape having a coordinate for where its located. I have overloaded the - operator to calculate distance but it doesnt return the correct value. Any clues? [CODE]//Main file with figure pointer to the derived class functions #include <iostream> #include "shape.h" #include "rectangle.h" #include …

Member Avatar for mike_2000_17
0
181
Member Avatar for riotburn

I am writing code where I have three header files: figure, triangle, and rectangle. Triangle and rectangle classes inherit the figure class. I have all the functions defined in the class declarations and don't need an implementation file. When I compile, I get this error: error C2011: 'Figure' : 'class' …

Member Avatar for riotburn
0
271
Member Avatar for riotburn

I have this hw problem, but I can't figure out what the problem is. If I run this code I get an assertion error. Also if i run without commenting out the return outStream line, it won't compile saying I'm converting an istream to ostream. Any clues? [CODE]#include <iostream> #include …

Member Avatar for Stefano Mtangoo
0
192
Member Avatar for riotburn

I just got a program that does forward substitution. It is working fine but I would like to make it so the user can enter size of both 2D n x n array and a n x 1 array and then be able to enter the elements of the arrays. …

Member Avatar for attefeh
0
5K
Member Avatar for riotburn

So I had interview today and interviewer asked me how I would go about, from a list of words, delete the anagrams. And by that he meant if the words 'eat' and 'ate' are on the list one of them would be deleted. As I was thinking out loud I …

Member Avatar for iamthwee
0
728
Member Avatar for riotburn

Hi, I am trying to create a function that will take a fixed value, and increment another cell. It does this until another cell using a formula equals the fixed value. You can see what I have below, but this is my first VBA programming ever so I dont know …

Member Avatar for riotburn
0
87
Member Avatar for riotburn

I am trying to create my first library and I guess the dynamic library is the best suited, though I don't know the difference between the two. I am following this tutorial: [url]http://msdn.microsoft.com/en-us/library/ms235636.aspx[/url] My questions are: 1. So pretty much I make my header file and a respective cpp file …

0
52
Member Avatar for riotburn

Hi, I have written a program for reversing a digit but I get "error C2664: 'strcpy' : cannot convert parameter 2 from 'std::string' to 'const char *' Which I don't get since strcpy is supposed to change a string to a char array. Any clues for whats going on here? …

Member Avatar for riotburn
0
326
Member Avatar for riotburn

Hi I have written a program for bootstrapping bond interest rates. The bond price I am getting is 101.99825... when it should be more like 101.999999..... The inputs to test are Bond Price = 102, ttm = 36, f = 2, face = 100, n = 5. Heres the program, …

Member Avatar for riotburn
0
115
Member Avatar for riotburn

I am trying to find the yield of a bond given the bond price, coupon, and semiannual three yr bond using newtons method. The value for B in the output should about equal 101. I have checked everywhere for errors but cant find any. Any ideas? And yes I am …

Member Avatar for riotburn
0
148
Member Avatar for riotburn

Hi, first post...I am writing a program for simpsons rule for numerical estimation of integrals, [URL="http://en.wikipedia.org/wiki/Simpson%27s_rule"]wiki here[/URL] , and I finally got the code to execute with no errors. Now I am just getting a blank black box with no results. Any help? Thanks in advance. [CODE] // hw2.cpp : …

Member Avatar for jazz_vill
0
310
Member Avatar for riotburn

I am trying to use Newtons method to find implied volatility of a Black Scholes Call. So given all the other variables, I need to find what volatility makes the black scholes call equal to the current call price. I'm running what I have below but keep getting a random …

Member Avatar for riotburn
0
1K
Member Avatar for riotburn

I am trying to automate my program for Simpsons rule. Finally got it running thx to here, so now I'm trying to have it ask the user for all the variables on run. Everything is good except for inputting the function to integrate itself. After entering the function i get …

Member Avatar for jonsca
0
988