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...
Type: Posts; User: bleuz
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...
Oooo. or do i need something like
head.h
class NonExistent
{
wow idk why but that sorta helped
so
class NonExistent
{
};
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...
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
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...
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...
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 <...
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?
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...
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...
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...
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...
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&...
Doh. Solved my != issue rather easily
bool Time::operator != (const Time& rhs) const
{
return !(*this == rhs);
}
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...
What output are you getting if any? What errors are you having?
anymore advice would be appreciated
Yes i agree with you
however we are not able to use the header file needed for those functions
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!
...
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...
haha Dino. Its all good man. I was waiting for that one from someone
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;
for your output you might use something like
inputFile >> cName >> cNum >> cAddrs >> cCity >> cZip;
cout << "Customer " << customerNumber << endl;
cout << "----------" << endl;
cout <<...
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...