CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Semirxbih

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    7,226

    Re: Dealing with Nodes

    Here is my updated version 2kaud:

    StringList.cpp


    #include <iostream>
    #include "StringList.h"

    using namespace std;
  2. Replies
    7
    Views
    7,226

    Re: Dealing with Nodes

    This is my new updated code on the final page:


    – Then start inserting new nodes, one at a time. Alternate between inserting into the front and into the
    back. Make sure to add at least 6 nodes....
  3. Replies
    7
    Views
    7,226

    Re: Dealing with Nodes

    The First and the Second page are error free, still need help with the final page.

    Unsure on how to insert one node at a time, which totals up to 6 & how to delete them one at a time.
  4. Replies
    7
    Views
    7,226

    Re: Dealing with Nodes

    So this is what I have so far in StringList.h



    – In this file, you declare a class named StringList.
    – StringList is a modified version of NumberList class (Chapter 17), that is designed to...
  5. Replies
    7
    Views
    7,226

    Dealing with Nodes

    Currently working on a project and I would appreciate all the help that I can get.

    Here is the first part of the assignment:

    Instructions:


    In this file, you declare a class named...
  6. Replies
    17
    Views
    16,340

    Re: Classes and Constructors

    Thank you so much 2kaud! I'll definitely read over those websites because the C++ book that I have now is nothing but confusion.
  7. Replies
    2
    Views
    2,916

    Getters and Setters

    I still can't seem to grasp the whole setters and getters in C++

    This is the assignment:

    In this file, you declare a class named MyString.
    – This class contains 3 private attributes, str,...
  8. Replies
    17
    Views
    16,340

    Re: Classes and Constructors

    Still need some help with this.
  9. Replies
    17
    Views
    16,340

    Re: Classes and Constructors

    I've tried your way, and I'm still getting errors :(

    Here is the updated code:


    #ifndef STUDENT_H
    #define STUDENT_H

    #include <iostream>
    #include <string>
  10. Replies
    17
    Views
    16,340

    Re: Classes and Constructors

    So I've removed the #include guards from the cpp files but here is the list of compiler errors now:



    Student.cpp: In constructor 'Student::Student(const string&, int, const string&, Year)':...
  11. Replies
    17
    Views
    16,340

    Re: Classes and Constructors

    This is what I have so far, I still need some help.

    Student.h file:

    #ifndef STUDENT_H
    #define STUDENT_H

    #include <iostream>
    #include <string>
    #include <cstdlib>
  12. Replies
    17
    Views
    16,340

    Classes and Constructors

    Looking at getting some basic help on proper construction of this project.. Here is the assignment:


    Student.h
    – In this file, you declare a class named Student.
    – This class contains 4...
  13. Replies
    2
    Views
    5,341

    Need help with undefined reference

    Here is the assignment:



    1. The program first creates an array of 20 random positive numbers between 1 and 100. Make sure there
    are no duplicates in the array.
    2. Then apply selection sort to...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured