Recent content by ghost305

  1. G

    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...
  2. G

    Help with STL container list for 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
  3. G

    Help with STL container list for INformation Manager

    I know, my problem is that "cin" doesn't accept whitespace. for example, if i enter the address, the input stream terminates.
  4. G

    Help with STL container list for INformation Manager

    No there's no setfirst function. I used member init. so there was no reason to create set functions.
  5. G

    Help with STL container list for 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.
  6. G

    Help with STL container list for 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...
  7. G

    Help with STL container list for 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...
  8. G

    Help with STL container list for 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) {...
  9. G

    Format text(ifstream, ofstream)

    How do i do that? everytime i try to do it i get an error
  10. 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
  11. G

    How Can You Explore Area and Descriptions of Shapes in Programming?

    #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...
  12. 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.
  13. 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...
  14. 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...
Back
Top