Thanks for all the replies. Sorry its been so long since I posted. Things came up but i'm back. Had class tonight and got this error and even the teacher wasn't to sure on why. So I am hoping you...
Type: Posts; User: Bitphire
Thanks for all the replies. Sorry its been so long since I posted. Things came up but i'm back. Had class tonight and got this error and even the teacher wasn't to sure on why. So I am hoping you...
Thanks, that is something I was looking for. Just a basic design of my classes. Now that you have shed some light maybe i can this thing started :) Thanks again
LOL, thanks I never thought about that. I had not defined the other class yet. Gave it a shot and then I got a different error this time. It's a fatal error: INTERNAL COMPILER ERROR. I am using...
Just started learning Linked List and I am pretty lost. I have started a class but not sure it it is correct. Just need some feed back on if the class is setup right and any additional things about...
no, i did not make the post. i found the answer in some one elses post from some other forum. I was doing a google search and i found someone elses post. Is that wrong? I did not post on another...
Thanks for the reply. I had just found another forum from google and just solved the problem. I also originally had the '\n' part after the for loop but was trying everything to get this to work and...
Post has been Edited. :)
I need to create a function that returns a char array. I am not sure how to do this. I designed a custom string class for school and one of the functions has to convert the string to a char array and...
operator[](string key)
int gcd(int a, int b)
{
Above is a function that takes two ints and gives them the name a and b
if (b == 0)
This checks to see if b is equal to zero
Not sure if this is what you need but why not use a bool? If they enter case 3 then set bool true then do an if statement to see if the bool is true or false. Hope it helped in a way :)
Hey I was just wondering how I could read the filename of a folder or mp3. I want to be able to search the filename for a special character. Then create a folder unless folder already exist then just...
Ok, thanks. Thats exactly what I thought was happening. Now I just need to find a way to remove that from the vector :). Thanks again
Designing custom string class for school. This is what I have so far. How does it look? Ok great knew you liked it :P. No, I am having trouble figuring out how to write the +operator overload. What I...
How would you got about doing something along the lines of:
int size;
char array[size];
This gives an error because size is not set. Even if I initialize size at start up and then give...
LOL, thanks will give it a try and see what happens
Teacher is trying to get us to understand OOP better. Says we are still not programming the OOP way or something of the sort.
So got any ideas on how to do this? LOL not the whole thing just...
Ok, I have to try and code my own string class. I am doing a char array of course to store the characters. Is there a way to allocate memory as needed? So i do not have to know the predefined length?...
Just wondering if it is possible to create your own operator? ex
use <- instead of <<
so
cin >> test
cin <-test
or just
<- test
Thanks for all the reply's. This is what I have and I am pretty happy with it :). It works and so far its what I need. Now if anyone wants to help figure out how to find or set coords for x,y, and...
Thank you so much for the help. :) Hope this helps the person who orginally started this post. :)
Once I have multiple objects created, I need to be pick and object and then grab a specific material for it. Lets say I grab the steelBall and need to get the info from the mat class for the steel...
You say coping into a vector is bad idea, why? Also the second option Objects.push_back(obj()); How does this work and it sounds like the same as first option just using a function somehow? Is this...
Okay, I am really confusing myself :(. I cant even think of what to tell you the problem is. um give me a sec.......
First:
objSteelBall' : undeclared identifier
Second:
This wont work because...
Zack L. could you give an example of doing this? TIA