Thank you, thank you, thank you!!! Works for me now also. I really appreciate your help.
edit: Yes, templates are a blast, I think they become more of a hoot when you throw in iterators.
Type: Posts; User: jaw24
Thank you, thank you, thank you!!! Works for me now also. I really appreciate your help.
edit: Yes, templates are a blast, I think they become more of a hoot when you throw in iterators.
I had tried both of those prior to posting to the board, they created more errors. I tried using count as a non-templated function, still more errors. Where I have it now is the least amount of...
Thank you for your replies, here is where it stands now. I am down to one error(at least until I make the next correction).
#include<iostream>
#include<string>
#include<list>
using...
I didn't take it as nasty. This was part of project that I just handed in. We had to just write the functions, I wanted to test them in a program before I handed it in, where I found out that it...
Hi all,
I wrote a program to count the number of times an item appears in a list using a sequential search. I had numerous errors and corrected most of them by way of online tutorials, loking up...
I am currently taking my first class in C++. Most stuff I understand and can use while writing code. I am completely lost when it comes to classes, ADTs, when something should be a friend, when to...
Thank you all, I used everyone's tips. I switched from using a vector to using an array and changed the loops, now it works. I'm learnin'
Thank you, you guys are good, compiles now. I tried running it, was able to type in line of text but upon hitting return the reply was 'segmentation fault'. I put in 'cout << "1" ' in the do...
I am writing a program to read in a line of text and then replace all four letter words with the word 'love'. I am getting the following compiler error:
love.cpp: In function ‘void...
Thank you, worked perfectly. I'm a beginner(as you can tell), much to learn.
I am trying to write a program that reads in a line of text and counts the number of words and the number of instances of each letter. After you type in a line of text you hit return and it should...
You guys were fast and helpful, Thank you very much for taking time to assist.
I am writing a program to read a sentence into an array and then delete all repeated letters and spaces and then print out the new sentence. after a repeated letter is deleted the remaining letters...