Recent content by ghost305
-
G
Undergrad Does Vitamin Supplement Impact Birth Weight?
10. The birth weights (in kilograms) are recorded for a sample of male babies born to mothers taking a special vitamin supplement (based on data from the New York Department of Health). When testing the claim that the mean birth weight for all male babies of mothers given vitamins is equal to...- ghost305
- Thread
- Statistics
- Replies: 1
- Forum: Set Theory, Logic, Probability, Statistics
-
G
STL list container for rolodex information manager
do i access the current position in a list container like this? std::list < string >::iterator iter = rolodex.begin(); do i access next as: iter + 1- ghost305
- Post #15
- Forum: AI and Computer Science
-
G
STL list container for rolodex information manager
I know, my problem is that "cin" doesn't accept whitespace. for example, if i enter the address, the input stream terminates.- ghost305
- Post #12
- Forum: AI and Computer Science
-
G
STL list container for rolodex information manager
No there's no setfirst function. I used member init. so there was no reason to create set functions.- ghost305
- Post #10
- Forum: AI and Computer Science
-
G
STL list container for rolodex information manager
i did that but when i try to print the Rolocard that i added to the list<Rolocard>scard, it doesn't print anything.- ghost305
- Post #8
- Forum: AI and Computer Science
-
G
STL list container for rolodex information manager
I tried to create a new object to call the Add function but the compiler said that there is no default constructor available void Rolodex::Add(Rolocard card) { string first, last, add, occ, phone; cout << "Creating new Card "<< endl; cout << "----------------------"<<endl; cout << "Enter...- ghost305
- Post #5
- Forum: AI and Computer Science
-
G
STL list container for rolodex information manager
I've got to create a rolodex with a container for cards which contains information. I've already create the rolocard class which holds the information. Now my next step is to create the rolodex class which will manage the information. I can't seem to use the container private member in other...- ghost305
- Post #3
- Forum: AI and Computer Science
-
G
STL list container for rolodex information manager
Help with STL container list for INformation Manager! I'm trying to create a info manager like rolodex. Rolodex.cpp List() function void Rolodex::List() { list<string>::iterator cIterator; for (cIterator = cardlist.begin(); cIterator != cardlist.end(); ++cIterator) {...- ghost305
- Thread
- Container Information List
- Replies: 14
- Forum: AI and Computer Science
-
G
Format text(ifstream, ofstream)
How do i do that? everytime i try to do it i get an error- ghost305
- Post #9
- Forum: AI and Computer Science
-
G
Format text(ifstream, ofstream)
if( input >> buff ) { cout << buff; while ( input >> buff ) cout << ' ' << buff; } I did this but it ignored newline character as well. Parts of the words at the end of a line show up on the next line kinda like this: the mor ning- ghost305
- Post #7
- Forum: AI and Computer Science
-
G
Shape class with circle, rectangle, square subclasses not displaying output
#ifndef SHAPE_H #define SHAPE_H #include <string.h> using std::string; using namespace std; class Shape { public: Shape(const string &color); //constructor ~Shape(); string getColor()const; //returns objects color value virtual double area()const = 0;// a const pure...- ghost305
- Thread
- Area Shapes
- Replies: 1
- Forum: AI and Computer Science
-
G
Format text(ifstream, ofstream)
the program runs, it displays the text like it is on source text with all the excess whitespace. What I'm trying to do is remove the excess whitespace and edit the text so there is one " " between each words. in other words, formatting the text.- ghost305
- Post #5
- Forum: AI and Computer Science
-
G
Format text(ifstream, ofstream)
No what I am saying is that the original text looks like this: The kid is playing on the... ------------------- The program is supposed to make it look like this; The kid is playing...- ghost305
- Post #3
- Forum: AI and Computer Science
-
G
Format text(ifstream, ofstream)
I'm having problem with a program I am trying to write that reads a .text sourcefile and then format the .text file while removing excess whitespace. #include <fstream> using std::ofstream; using std::ifstream; #include <iostream> using std::cin; using std::cout; using std::cerr...- ghost305
- Thread
- Format
- Replies: 9
- Forum: AI and Computer Science