Posts
 
Reputation
Joined
Last Seen
Ranked #782
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
40% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
2 Commented Posts
0 Endorsements
~5K People Reached
Favorite Tags
c++ x 36
php x 1
Member Avatar for swolll

This is seg faulting whenever I try to remove anything. I've been trying to fix it for hours, to no avail. Any ideas? [CODE]#ifndef BST_H_ #define BST_H_ #include <stdexcept> #include <iostream> #include "btnode.h" using namespace std; /* A class to represent a templated binary search tree. */ template <typename T> …

0
61
Member Avatar for swolll

allPlaylists is a vector of type Playlist. listSongs is a vector of type *Songs. [code] //Loop that goes through each element in the playlist vector. for(int k = 0; k < allPlaylists.size(); k++) { // loop that goes through each song within the Playlist vector element. listSongs is a vector …

Member Avatar for swolll
0
255
Member Avatar for swolll

Until now, I've coded in Notepad++ and compiled/tested in my university Unix account. This is getting tedious and inefficient, though. So, what can I do about it? Notepad++ doesn't have a compiler or debugger. I was thinking about using Eclipse. Would that be a good, free option? Does it have …

Member Avatar for Salem
0
277
Member Avatar for swolll

I've worked on it for a few days. It works great when I comment out the erase function. But it doesn't work when I include the erase function, which I use to remove an element in the playlist vector of type Songs. Here's the else if statement. The problem is …

Member Avatar for Agni
0
176
Member Avatar for swolll

Hey guys. I need to write a program that does the following: Requirements - The program... - Shall allow user to enter individual songs with information: - Shall ask for song name. - Shall ask for length. - Shall ask for artist name. - Shall ask for album name. - …

Member Avatar for jonsca
0
2K
Member Avatar for swolll

I know C++, but want to be able to code web sites, web applications, and maybe iPhone apps. I've heard that PHP and ruby on rails are good to learn. I also know there is an iPhone app language/SDK I could get my hands on. What languages and in what …

Member Avatar for OmniX
0
40
Member Avatar for swolll

What does "->" do for vectors? And, how do you use the vector algorithms? And, also, when/why do you use #ifndef something_H, #define something_H, ..., #endif? Is there a difference between "vector" and "apvector"?

Member Avatar for jonsca
0
112
Member Avatar for swolll

Today was my first time trying composition. It's for a lab project due Friday, and I have a lot of tomorrow to work on it. However, up until we have just been using one class per program. Now, my teacher wants us to use composition and arrays, despite only lecturing …

Member Avatar for jonsca
0
224
Member Avatar for swolll

I've been working on a piece of code for a while, and it works as it is intended to. Now, though, I'm trying to the code down so that there is one main functions and every "action" is a function that is called. But, I have very little experience with …

Member Avatar for swolll
0
333
Member Avatar for swolll

I need to compute the number of nonnegative numbers from an input file. Everything works fine (for good input files and bad input files) except when there is a no data file (with nothing in it). Then, the number of nonneg numbers reads 1, even though it should be 0. …

Member Avatar for Zjarek
0
175
Member Avatar for swolll

Do any of you have aim or google talk or email that I could ask some C++ questions through?

Member Avatar for ithelp
0
91
Member Avatar for swolll

New Question. I end the output to one file (fout1) and try to start it to a new input and output file, using this code: [CODE]" fout1.close(); } cout << endl << "Detailed employee reports have been printed in " << fileOutput1 << "." << endl << endl; cout << …

Member Avatar for Ancient Dragon
0
362
Member Avatar for swolll

Here is my code: [ICODE]#include <iostream> #include <string> #include <iomanip> #include <cmath> using namespace std; int main() { const double e = 2.71828; double t, f, n, B, VoltageGain; cout << "Please enter the time in hours the culture has been refrigerated: "; cin >> t; cout << endl; while …

Member Avatar for swolll
1
587