Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
27% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
3 Commented Posts
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 34
c x 1
Member Avatar for olams

Hi, i am writing a program to manipulate polynomials. however, i am having problems with my root function. this function is meant to find the real roots of a polynomial using newton-raphson formula. please help me. [code] #include<iostream> #include <sstream> using namespace std; //A class to handle a list node …

Member Avatar for iamthwee
0
115
Member Avatar for olams

hi, i wrote this program on polynomials and how to manipulate them. however, i am having a problem with my eval function. it is supposed to evaluate the polynomial at a particular number. however, whenever i call a.eval(2.0), i keep getting polynomial a. please help me look into this. [code] …

Member Avatar for olams
0
148
Member Avatar for olams

Hi, please help me with this program that i am writing. i am writing a program to create a polynomial. i set the values, but whenever, i debug it, i get this: 4x^2 + 0X^1 + 0x^0 + which do not correspond to the values that i set it to. …

Member Avatar for WolfPack
0
193
Member Avatar for olams

hi, thank you for replying. i started a new thread because nobody took a look at the old one. i finally figured out a way to add two arrays and using eArray. i also wrote the fibonacci code. However, when i debug and print the fibonacci number, i get some …

Member Avatar for olams
0
103
Member Avatar for olams

Hi, i am getting frustrated with my code. please, please, please help me. i wrote a class eArray with different functions and i have all of them working but 2. for the first i am trying to get the nth fibonacci number. the second one, i am trying to add …

Member Avatar for olams
0
173
Member Avatar for olams

Hi, I am writing a program about getting the nth fibonacci number using a class that i have created. I am having problems with it. Any help is greatly appreciated. [code] *void lfib(int a){ int i; eArray x(500), y(500), ans(500); x=y=1; for(i = 1; i<=a; i++){ ans = x + …

Member Avatar for Duoas
0
64
Member Avatar for olams

Hello, I wrote a code to calculate the fibonacci number. However, i noticed that it starts acting erratic when i input 1000 i.e it cannot calculate the 1000th fibonacci number. I would appreciate it if you could show me how to make it work. [code] int f(int &n) { if …

Member Avatar for ShawnCplus
0
80
Member Avatar for olams

Hello, Please i really need your help. I am trying writing a code that will delete the last element of the list. However, i keep getting 0 or when i tweak it, i get a message asking me to abort what i am doing. In this code, i append some …

Member Avatar for olams
0
142
Member Avatar for olams

I urgently need help with this program that i wrote. it is an expandable array. it performs different functions as shown below. I have shown the outputs of the code below. My problem is with the output of the compLfact(int) function. How do i get rid of the leading zeros. …

Member Avatar for olams
0
97
Member Avatar for olams

Hi, I am reading ahead for a C++ class that i am taking next quarter. I just read stacks and queues and know how to implement both seperately. I was wandering if there is a program that has been written in which both stacks and queues were implemented in one …

Member Avatar for olams
0
178
Member Avatar for olams

Hello, We just started studying classes right now, we are studying classes. Unfortunately, my teacher is not very helpful. I was given a study guide for my midterm and one of the questions there was to create a half adder. I already did the .h part and i believe it …

Member Avatar for Dani
0
121
Member Avatar for olams

Hello everyone, Does anyone know how to write a source code for 3x3 determinants. I was given that for my C++ final exam and didn't know how to do it. I could only do the 2x2 determinants and that's what i put down. Any help is greatly appreciated. thanks

Member Avatar for iamthwee
0
113
Member Avatar for olams

Hi everyone. I am new to C++ and struggling badly. This is the first course i have ever struggled with in my life. I have problems with setting up programs and seeing the logic. Does anyone have any tips for understanding C++, and is there any good textbook or website …

Member Avatar for olams
0
113
Member Avatar for olams

Hello Everyone, My name is olams and i am new to this website and C++ in general. I am having real difficulty in this class. Can someone please tell me how to find the number of digits in number using Visual C++. Net or C++. I really need help. Any …

Member Avatar for olams
0
142