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
~6K People Reached
Favorite Tags
Member Avatar for sarah.mathieson.7

I am trying to parse a text file with 1200 songs. I want to increase the barcount every time I come across a '|' or a ']' character. I want to have a new line every time the barCount is equal to 4. However, if I come across '\n' I …

Member Avatar for Ancient Dragon
0
198
Member Avatar for sarah.mathieson.7

I am trying to replace a bunch of substrings with another bunch of substrings. I've got that working great, but now my code is a mess. This is what I have : void parseChartData(string chartDataString){ if(!chartDataString.empty()){ chartData.clear(); //replaceAll("T44" , "4/4", chartDataString); string s = "*A"; string t = "[A]\n"; string::size_type …

Member Avatar for sarah.mathieson.7
0
162
Member Avatar for sarah.mathieson.7

This is the prototype I was provided with for my Person constructor: Person(const char * their_name, const char * email, int day, int month, int year); In making my constructor I have tried to use base member intialization, but I am having issues, this is what my constructor looks like: …

Member Avatar for mike_2000_17
0
260
Member Avatar for sarah.mathieson.7

I have two function in the same class. In the first function I return a value, and I need to use this value in another function. I am returning by value. double Loan::monthlyPayment(double anAmount, double anInterestRate, int term){ double payment = ((anAmount * anInterestRate ) * ((anInterestRate +1)/((anInterestRate +1)*exp(term)-1))); return …

Member Avatar for sarah.mathieson.7
0
233
Member Avatar for sarah.mathieson.7

I'm trying to create a button to go back to the homepage on my server. I've created the buttonon but I'm not sure how to add an action to this button to go back, I'm also unsure as to how to refer to the home page. I'm using Node to …

Member Avatar for LastMitch
0
111
Member Avatar for sarah.mathieson.7

I am trying to write a program that creates a new file every time I use the application. Right now, this is what I am doing: outfile.open("Application.txt"); outfile<<"First Name: "<< firstName <<" "<<"Last Name: "<< lastName<<" "<<"Student Number: "<< studentNumber << endl; outfile<<"Email Address: " << emailAddress <<" "<< "Major: …

Member Avatar for vmanes
0
3K
Member Avatar for sarah.mathieson.7

I am trying to use the ncurses menu library to create a menu. I found some wonderful sample code online and it displays great on my screen, however I can't figure out how to select an option and have it go to a new menu or have it select a …

Member Avatar for Ancient Dragon
0
215
Member Avatar for sarah.mathieson.7

I am new to c++ and to using graphics libraries, so please forgive me if I have made a silly mistake. I am trying to compile a program that creates a window with one button from an example I found online. This is the error I get when I try …

Member Avatar for sarah.mathieson.7
0
708
Member Avatar for sarah.mathieson.7

I'm not sure if this is a duplicate question, so if it is, please feel free to direct me in the proper place, but I couldn't find an answer to my question. I am currently trying to switch from using an array to a linked list. (This is for an …

Member Avatar for Ancient Dragon
0
199
Member Avatar for sarah.mathieson.7

Hi, I have a counter that I am using in my main and increasing through pointers in other functions. I want to be able to use the value of this counter in a loop but... I can't. I am getting a warning when I compile saying that I am trying …

Member Avatar for deceptikon
0
244
Member Avatar for sarah.mathieson.7

Hey! I'm brand new to programming in C and I am trying to practice coding by hand for my test tomorrow. I understand the basic concepts and I do have some experience in Java (not much) but I am horrible at coding by hand... anyway I am doing my best …

Member Avatar for Gonbe
0
240
Member Avatar for sarah.mathieson.7

I am trying to read lines of input from a BufferedReader and output them in sorted order without any duplicate lines. I think that using a TreeSet would be my best option. Unfortunately I don't know how to get my input from the BufferedReader into the TreeSet. This is what …

Member Avatar for NormR1
0
350