Search:

Type: Posts; User: bleuz

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    1,325

    Everything I read was much more complex and I...

    Everything I read was much more complex and I over-analyzed it. I knew I didn't need to catch it. I guess I was expecting to have to do more for it from what I read.

    I appreciate all of your...
  2. Replies
    14
    Views
    1,325

    Oooo. or do i need something like ...

    Oooo. or do i need something like





    head.h

    class NonExistent
    {
  3. Replies
    14
    Views
    1,325

    wow idk why but that sorta helped so ...

    wow idk why but that sorta helped
    so



    class NonExistent
    {

    };
  4. Replies
    14
    Views
    1,325

    ARGGHH! lol i understand what you are saying. Im...

    ARGGHH! lol i understand what you are saying. Im sorry but I just can't think how to implement it.

    So is my class part right or am i really missing something?

    and when i call the exception in...
  5. Replies
    14
    Views
    1,325

    gah man i understand what you are saying but im...

    gah man i understand what you are saying but im not grasping it AGRH! lol

    can you type up an example...

    if i did like
    NonExistent.myexception();

    would that work?

    so my class
  6. Replies
    14
    Views
    1,325

    Yes i have and i guess im just not following it....

    Yes i have and i guess im just not following it.

    So since he uses this line in the .cpp file

    catch (NonExistent myexception)

    do i need something in the class called NonExistent?

    what...
  7. Replies
    14
    Views
    1,325

    Using exception classes. (urgent)

    Ok so i have 2 programs due in 2 hours :(

    I have everything working, or so i believe except throwing exceptions. I have no idea how to go about this and can not find anything useful. My teacher is...
  8. Replies
    2
    Views
    1,898

    if it helps here is cpp file provided to us by...

    if it helps here is cpp file provided to us by our teacher.



    /* To compile this program, do the following
    aCC olab10BSTreeMain.cpp BSTree.cpp
    To execute with test data file
    a.out <...
  9. Replies
    5
    Views
    5,282

    Yes I can. so all im doing is checking whether...

    Yes I can. so all im doing is checking whether my data to be inserted is less than or greater than. as i progress down a side?
  10. Replies
    2
    Views
    1,898

    Binary Search Trees

    For this assignment we are suppose to a public function to call a private function to do recursion.

    As of now I'm not sure were to declare.



    node *root;


    Depending on where I place it...
  11. Replies
    5
    Views
    5,282

    Binary Search Tree Insert

    Ok so we are doing Binary Search Trees. I have to do an insert function to add new data into the tree. The code below calls a recursive function to do this. However we are required to do this non...
  12. Gulfx01. The idea of swap that everyone is...

    Gulfx01. The idea of swap that everyone is throwing around is quite simple.

    Say I have two variables. A and B. I want A to hold B's value and B hold A's value.

    So if you want to put them in...
  13. Thread: Linked Lists

    by bleuz
    Replies
    1
    Views
    1,034

    Linked Lists

    We just started using Linked Lists and quite frankly im lost. I understand the idea behind them and the purpose but im not sure exactly how to go about code-wise doing this. Any assistance to get me...
  14. Replies
    3
    Views
    2,482

    hk_mp5kpdw, Thanks for your reply man. Yeah I...

    hk_mp5kpdw,

    Thanks for your reply man. Yeah I got it figured out. Ended up doing what you said after I realized I was reducing the entire class and not the in individual members.



    ostream&...
  15. Replies
    3
    Views
    2,482

    Doh. Solved my != issue rather easily bool...

    Doh. Solved my != issue rather easily



    bool Time::operator != (const Time& rhs) const
    {
    return !(*this == rhs);
    }
  16. Replies
    3
    Views
    2,482

    Function overloading

    Working with overloading unary, binary, etc etc operators

    We are using classes to do this, based on Times.

    My << operator is suppose to output each Data Member of the class while calling a...
  17. Replies
    7
    Views
    4,567

    What output are you getting if any? What errors...

    What output are you getting if any? What errors are you having?
  18. Replies
    4
    Views
    1,077

    anymore advice would be appreciated

    anymore advice would be appreciated
  19. Replies
    4
    Views
    1,077

    Yes i agree with you however we are not able...

    Yes i agree with you

    however we are not able to use the header file needed for those functions
  20. Replies
    4
    Views
    1,077

    Using .find and .replace with strings

    Ok here is my homework assignment... I have it working for some instances but not for others.

    Here is the code that does the conversion..

    Essentially i have a string like... C++ is awesome!
    ...
  21. Replies
    6
    Views
    1,515

    C:\Users\Bleuz\Desktop\student_info.txt That...

    C:\Users\Bleuz\Desktop\student_info.txt


    That did not work... Well idk man... question. How would you go about doing what I am trying.

    and would a UNIX enviroment handle this differently...
  22. Replies
    6
    Views
    1,515

    haha Dino. Its all good man. I was waiting for...

    haha Dino. Its all good man. I was waiting for that one from someone
  23. Replies
    6
    Views
    1,515

    Opening File with function

    Ok so I have to open a file using a function with error checking.. But I can't get the file to open..



    #include <iostream>
    #include <fstream>
    #include <string>

    using namespace std;
  24. Replies
    3
    Views
    1,076

    for your output you might use something like ...

    for your output you might use something like



    inputFile >> cName >> cNum >> cAddrs >> cCity >> cZip;

    cout << "Customer " << customerNumber << endl;
    cout << "----------" << endl;
    cout <<...
  25. Replies
    16
    Views
    2,919

    I got it. I accidentally incremented a counter a...

    I got it. I accidentally incremented a counter a tad early before the function instead of after so the first one was skipped.

    Thank you for all of your help. It won't be my best grade but I learn...
Results 1 to 25 of 69
Page 1 of 3 1 2 3