Search:

Type: Posts; User: bigboybz

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,009

    Quick question help~

    "Write a bool function template that accepts a vector of arbitrary type and a value of the same type and returns true if the vector contains the value, and false otherwise".

    I'm reviewing for my...
  2. Replies
    3
    Views
    1,169

    Sorry, I'm such a C++ noob. I had no idea a...

    Sorry, I'm such a C++ noob. I had no idea a string would be that big of a deal. I'll post my full code like I should have from the start. I've changed some things to fit what you said, but for the...
  3. Replies
    2
    Views
    866

    Reading/Writing txt files

    I'm writing a program that accepts a file and inputs each line from a txt file into a vector. Is it correct to use:



    class filereader
    {
    public:
    filereader(string filename);
    private:
  4. Replies
    3
    Views
    1,169

    Reading/Writing txt files

    I'm writing a program that accepts a file and inputs each line from a txt file into a vector. Is it correct to use:



    class filereader
    {
    public:
    filereader(string filename);
    private:
  5. Replies
    2
    Views
    813

    so class B : virtual public A? Thanks I also...

    so class B : virtual public A?
    Thanks

    I also get this error: "conversion from ‘A*’ to non-scalar type 'A' requested"
  6. Replies
    2
    Views
    813

    I'm using various classes that derive off each...

    I'm using various classes that derive off each other, and I'm coming across an error in my g++ compiler that says "‘A’ is an ambiguous base of ‘D’". My code goes something like this:

    class A...
  7. Replies
    8
    Views
    1,894

    hmm, thats strange.. i assumed the int main was...

    hmm, thats strange.. i assumed the int main was ok because it was given to me. But thanks so much for your help!!!
  8. Replies
    8
    Views
    1,894

    #include #include #include...

    #include <iostream>
    #include <string>
    #include <vector>

    using namespace std;

    class Tweet
    {
    public:
    Tweet();
  9. Replies
    8
    Views
    1,894

    Brilliant... thank you so much for this help! ...

    Brilliant... thank you so much for this help!

    The final errors i'm getting are:



    request for member ‘addtweet’ in ‘tw’, which is of non-class type ‘Twitter()’
    request for member ‘gettweet’...
  10. Replies
    8
    Views
    1,894

    C++ Classes/Vectors help!

    The main function is what was given to me, and I attempted to write the rest. It's pretty basic, but I'm having trouble with the gettweet part.

    #include <iostream>
    #include <vector>

    using...
  11. Replies
    2
    Views
    1,011

    C++ Classes and Vectors help

    I recently took my C++ midterm, and I want to make sure I know how to do the things that it asked me to do. Can some people help explain to me how this would be done?

    Create a class Tweet with a...
  12. Replies
    15
    Views
    13,282

    OK, I'm using an iterator to point to each...

    OK, I'm using an iterator to point to each character that the file has, and this is the code i've come up with (encoding atleast)

    #include <iostream>
    #include <vector>

    using namespace std;
    ...
  13. Replies
    15
    Views
    13,282

    The part i'm confused on is how can I get the...

    The part i'm confused on is how can I get the characters from a file into a vector<char>?
  14. Replies
    15
    Views
    13,282

    I'm sad, my thread was stolen by ms word talk =(

    I'm sad, my thread was stolen by ms word talk =(
  15. Replies
    15
    Views
    13,282

    Sorry about that, I fixed the indenting. ...

    Sorry about that, I fixed the indenting.

    What would I set temp to under the decode function?
  16. Replies
    15
    Views
    13,282

    Encoding/decoding morse code

    I'm trying to write a program that encodes alphabetical characters from a file into morse code, and vise versa. I have it partially written, but I've confused myself while trying to write the encode...
Results 1 to 16 of 16