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
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 37
Member Avatar for veronicak5678

Is there a function to remove spaces from a string? I need a way to have a user input a string with spaces, numbers, and letters and remove all spaces before storing it. Using scanf, cin, gets or fgets, apparently I only retain whatever is before the first space.

Member Avatar for bridgett.grace
0
2K
Member Avatar for veronicak5678

I am trying to write two programs to work in conjunction. The first is a bibliography program that writes book info to a file; That's ok. Here's what I did: [CODE]#include <string> #include <fstream> #include <vector> #include <iomanip> #include <sstream> #include <iostream> #include <iterator> #include <vector> // vector class-template definition#include …

Member Avatar for veronicak5678
0
145
Member Avatar for veronicak5678

I am trying to write a "censor" program. here are the instructions: Write a program that reads a file of text and replaces each `target' word with its first letter followed by a string of asterisks that indicate its length. Have it read the list of target words from a …

Member Avatar for veronicak5678
0
183
Member Avatar for veronicak5678

I am trying to write a program with a Month class that will take a month as input, then display the previous and next month. It should use overloaded prefix+++ and -- operators and postfix ++ and -- operators. My month is decrementing, but when it should display the incremented …

Member Avatar for veronicak5678
0
104
Member Avatar for veronicak5678

I am trying to figure out how to modify this program so the file is read from the constructor: [CODE]#include <iostream> #include <string> #include <fstream> #include <vector> using namespace std; class Scramble { private: vector<string> _word; bool Check (string T, string S); public: Scramble(vector<string> words){ _word=words; } void Descramble (string …

Member Avatar for vijayan121
0
108
Member Avatar for veronicak5678

-------------------------------------------------------------------------------- I am trying to do a program that will use a function to search a string for an occurence of another string. Can someone please tell me what is wrong with this? [CODE]#include <iostream> #include <cstdio> #include <cstring> using namespace std; void replaceSubstring(string, string, string); int main(){ string string1, …

Member Avatar for veronicak5678
0
429
Member Avatar for veronicak5678

Hello- I need to do a selection sort on two different 2d arrays, sorting by the last column of one of them (thirdarray). The first column of thirdarray is the effective column size for the first (morearray) array. I am so confused. I cant find any examples to help me. …

Member Avatar for veronicak5678
0
104
Member Avatar for veronicak5678

I am in a beginning programming class, and am having all these syntax errors that i can't fiugre out. Please help! [code] /#include <cstdio> //Header Files #include <iostream> #include <cmath> #include <cstdlib> using namespace std; int main(); int init_function(); enum choice {regular=1, super, superdooper,quit}; choice display_function(); int big_switch(); int calculate(int …

Member Avatar for Dave Sinkula
0
113
Member Avatar for veronicak5678

i am new to programming and am trying to do a weird assignment. Here are my instructions: There is a drive-thru Car Wash that offers different services. 1) Regular Car Wash 2) Super Car Wash 3) Super Dooper Car Wash 4) Quit The fee for each one of these services …

Member Avatar for veronicak5678
0
105
Member Avatar for veronicak5678

I am tyring to write a simple program to displa yloan information. Here are my instructions: The monthly payment on a loan may be calculated by the following formula monthly payment=(monthlyrate*(1-monthlyrate)^time/(1+monthlyrate)^time-1)*loanamount Use pow function in your formula To raise a number to the power of another number you will have …

Member Avatar for Salem
0
81