Search:

Type: Posts; User: Kayoss

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,020

    Thank you Kurt! I believe that pointed me in the...

    Thank you Kurt! I believe that pointed me in the right direction. Now I'm not sure what is going on...



    #include<iostream>
    using namespace std;

    int scoreCount = 0;

    class ScoreBank { //...
  2. Replies
    5
    Views
    1,020

    Class function problem

    I've started a class ScoreBank that will take in test scores and (eventually) average them...but I can't seem to get past this error:



    class ScoreBank { // base class ScoreBank

    public:
    ...
  3. Replies
    3
    Views
    5,693

    These worked for me, thank you very much for your...

    These worked for me, thank you very much for your advice!
  4. Replies
    3
    Views
    5,693

    Abnormal program termination

    This code is from the Deitel book, but will only cout partway before issuing a debug error:




    #include <iostream>
    #include <string>
    #include <iomanip>
    #include <vector>
    #include <typeinfo>
  5. Replies
    2
    Views
    1,482

    Thank you so much, I was pulling my hair out by...

    Thank you so much, I was pulling my hair out by this point! :D
  6. Replies
    2
    Views
    1,482

    Compiles but won't cout?

    This program will not cout anything...what am I missing?



    #include <iostream>
    #include <iomanip>
    using namespace std;


    class Point3
  7. Replies
    1
    Views
    1,356

    Program compiles; won't build

    Using MSVC++ 6.0; this program compiles but will not build. Is it simply a compiler error, or is there something wrong with the code?

    If someone could post a snippet of the results, I'd...
  8. Replies
    1
    Views
    948

    Overloaded stream insertion study

    I'm trying to convert this simple phone number program into a demonstration of using the overloaded stream-insertion operator as a member function, i.e. I'm trying to use

    phone << cout
    instead...
  9. Replies
    2
    Views
    1,613

    Ah yes, I had curly braces instead of square...

    Ah yes, I had curly braces instead of square brackets. My eyes must be going; thank you very much.
  10. Replies
    2
    Views
    1,613

    Trouble with phone number class

    This program is taken straight from the Deitel book, figure 8.3. But I can't seem to get it to compile:



    #include <iostream>
    #include <iomanip>

    using namespace std;

    class PhoneNumber {
  11. Replies
    0
    Views
    2,604

    using namespace std error

    Both of my systems started giving me compiler errors when using namespace std;. After some research, I found this link which others may find helpful (if you are also getting the error):
    ...
  12. Replies
    2
    Views
    1,070

    Well ha! I tried that initially, but had a...

    Well ha! I tried that initially, but had a couple of them switched, so I wasn't getting the correct result. Thanks much for your time Kurt!
  13. Replies
    2
    Views
    1,070

    Multiplying overloaded operator

    I'm working on this complex function to multiply two complex numbers. A and B are not in the scope of the overloaded function. How do I get the function to read them; do I have to make a separate...
  14. Replies
    6
    Views
    1,185

    Your code must be going around! :p Hmm, I'm...

    Your code must be going around! :p Hmm, I'm using MS Visual C++ that came with the 4th Edition book.
  15. Replies
    6
    Views
    1,185

    Overloaded operators

    This is a program that will process complex numbers (real and imaginary), but I'm getting an Internal Compiler Error:


    #include <iostream>
    using namespace std;


    class Complex
    {
    double...
  16. Replies
    7
    Views
    1,543

    Oops, here is an example, since we haven't...

    Oops, here is an example, since we haven't covered <string> just yet:



    #include <iostream>
    #include <ctime> // for time
    #include <cstring> // for strings

    using namespace std;
  17. Replies
    7
    Views
    1,543

    Another question - is it possible to use strcpy...

    Another question - is it possible to use strcpy to copy Date h into a string? I'm getting conversion errors ie "cannot convert parameter from class Date to char *"



    strcpy ( timeToConvert,...
  18. Replies
    7
    Views
    1,543

    Great link, thanks a lot!

    Great link, thanks a lot!
  19. Replies
    7
    Views
    1,543

    Comparing two time programs

    Okay, this simple program works just fine:


    #include <iostrem>
    #include <ctime>
    using namespace std;

    int main()
    {
  20. Replies
    13
    Views
    1,526

    I started by using C++ How to Program (Fourth Ed)...

    I started by using C++ How to Program (Fourth Ed) in class, then later picked up C++ for Dummies. The Dummies is great for reference; however I find it too basic. The How to Program text is too...
  21. Replies
    2
    Views
    2,557

    Thank you so much, yes it works! Glad to see it...

    Thank you so much, yes it works! Glad to see it was simple. :)
  22. Replies
    2
    Views
    2,557

    Undeclared Identifier

    This date program is supposed to take in the written date


    Date g( January, 12, 1994 ); // written date


    and convert it, displaying it as 01/12/94 and 12/1994 (ordinal, or as some call it,...
  23. Replies
    6
    Views
    1,929

    Funny, Chaos! Thank you everyone for your...

    Funny, Chaos! Thank you everyone for your responses.
  24. Replies
    6
    Views
    1,929

    Ack, I'm trying to edit my post, but it's the ...

    Ack, I'm trying to edit my post, but it's the


    Date::Date

    function, not the smily.
  25. Replies
    6
    Views
    1,929

    Ambiguous call to function

    This is a long program to sift through, but I am getting the following error:
    "Ambiguous call to overloaded function" Date::Date
    see the asterisks **** for the error location

    The program will...
Results 1 to 25 of 53
Page 1 of 3 1 2 3