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
~13.4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for fsefsef23

I'm making a calculator that performs operations sequentially (from left to right, not precedence), using ASP.NET/C#, but I'm having trouble trying to get the loops going through the input box string in my code behind. Obviously to me the logic seems to make sense, but for some reason, I get …

Member Avatar for ddanbe
0
314
Member Avatar for fsefsef23

I'm finding myself stuck trying to simply get a userInfo class's sets to work, but every time I try and compile with simple code like this in my application file: userInfo stuff; stuff.setId("test"); It gives me one of those 'undefined symbol' errors and references to the userInfo::setId function: Undefined first …

Member Avatar for Moschops
0
161
Member Avatar for fsefsef23

I'm trying to figure out where a proper place to put a comparison counter to count the number of 'comparisons' made in a quick sort is. This is my code so far, I have one counter where I think it should go, but I'm not sure if it should place …

Member Avatar for mzimmers
0
7K
Member Avatar for fsefsef23

I have a program that is supposed to count the number of 'comparisons' during a selection sort. I'm having trouble trying to determine what a 'comparison' is considered! It runs the sort properly and sorts in ascending order, but I'm not sure where to put the comparison counter. I'm wondering …

Member Avatar for Narue
0
531
Member Avatar for fsefsef23

I'm working on a program that performs insert sorts and selection sorts on an array of 5 unsorted numbers and a sorted array of 5 numbers and counts the comparisons made on each. I'm still learning about Big O notation, so I'm having a hard time figuring out where a …

Member Avatar for fsefsef23
0
3K
Member Avatar for fsefsef23

Please bear with me as I am awful with pointers. My instructor gave us an assignment whose main focus is inheritance. We have an 'item' class that has 2 classes derived from it, discountItem and taxableItem, the main difference being that they add a tax and a discount to their …

Member Avatar for raptr_dflo
0
98
Member Avatar for fsefsef23

We just started discussing stacks and queues in my class, and our teacher left us with some questions to answer. I got all of it done except for the last question, which I honestly just can't understand, and am wondering if there is something about stacks that I'm missing. Here …

Member Avatar for mike_2000_17
0
220
Member Avatar for fsefsef23

I have to use a function to reverse print a doubly linked list of 'items'. My teacher provided me with the implementation prototype to use, which looks like this [CODE]template <class itemType> void List<itemType>::reversePrint(ostream &output) const[/CODE] The only details he had written was "reversePrint is passed the stream to print …

Member Avatar for NathanOliver
0
110
Member Avatar for fsefsef23

Sorry for the confusing title. Basically I have a line which I read from a file that gets stored as an array stack of characters that reads as follows: Nn<-<-<-<-No <-w iz<-sthe<-<-<- the time. Where the top of the stack is the '.', and the bottom is the 'N' respectively. …

Member Avatar for WaltP
0
419
Member Avatar for fsefsef23

I have set of lines which I read from a file that gets stored as an array stack of characters. A function called procssline gets called with the stored stack as a parameter. One of the lines reads as follows: Nn<-<-<-<-No <-w iz<-sthe<-<-<- the time. Where the top of the …

Member Avatar for WaltP
0
674
Member Avatar for fsefsef23

I have a textbook question that's a two parter, the first part asks me to write the definition for a sumStack function (conceptually) with the prototype as: void sumStack(stack<int> istack) I can do that part simply enough, by having it pop each value of the stack and adding that value …

Member Avatar for fsefsef23
0
263
Member Avatar for fsefsef23

I have a homework question that instantiates 4 node pointers, *p, *q, *r, *t, and the first three have a number, 1, 2, and 3 respectively. I have to draw out (using 'blocks' and arrows) what the memory would look like when these lines of code occur: p->next = q; …

Member Avatar for LevyDee
0
175
Member Avatar for fsefsef23

I have a homework question that simply shows a linked list of 3 elements (each one with a character in it, 'A', 'B', and 'C' respectively), with the 'head' pointer pointing at the first value of the list, and a 'current' pointer set to null. The question wants me to …

Member Avatar for sashankalladi
0
98
Member Avatar for fsefsef23

I'm reading from a file into an array of objects i created called Team. The file is written in this format: Shane Vitorino CF 8 8 H H H B B O O K Ben Francisco ....... The first line is the player's name, the second line is his position, …

Member Avatar for fsefsef23
0
237
Member Avatar for fsefsef23

I don't know what i'm missing, but I keep getting the error in the poly_tst file when trying to compile that says 'expected primary-expression before ']' token. According to my book I'm writing everything correctly. Here is my class file function (poly.h) void setcoeff(Term); Here is my implementation file definition …

Member Avatar for mike_2000_17
0
184
Member Avatar for fsefsef23

I'm writing a polynomial project that requires me to utilize classes. Problem is, I have the polynomial stored in two arrays in the class, one for coefficients (float coefficientholder[10]) and one for exponents (int exponentholder[10]), and get functions (at least according to my book) are simply consisting of return commands …

Member Avatar for mrnutty
0
180
Member Avatar for fsefsef23

If I want "3x²" to be output in my program, and I have a variable holding the "3" as float coeff and one holding the "2" as int expn, how do I go about displaying the polynomial using cout? Do I need #include<cmath> as well? thanks in advance. Jess

Member Avatar for jonsca
0
152
Member Avatar for fsefsef23

Can I declare an array variable as "int a[]", as in an array with no specified amount of elements to hold initially (to be determined later with a index variable)? I am writing a program that relies on a file whose contents are read into the array, but the file's …

Member Avatar for ninjatalon
0
144
Member Avatar for fsefsef23

Hey all! I have polynomial programming project that I'm doing where I need to read a set of numbers from a file where each set of numbers are written in the format <coefficient> <exponent> on each line in the file. First and foremost I've set up a structure called Term …

Member Avatar for jonsca
0
91