I just finished my final. The hardest part was making an alarm clock. The best I could do was a count down using wait(i). i being the total of seconds from the hours, minutes, and seconds entered...
Type: Posts; User: Clayg
I just finished my final. The hardest part was making an alarm clock. The best I could do was a count down using wait(i). i being the total of seconds from the hours, minutes, and seconds entered...
Nooooooooooooooo.... I don't get the *this yet. I will be asking about *this at another time and thread.
I made them non-members and it works great with a tweak here and there. Thanks again!
I love you Laserlight the C++ Witch.
and I Like you dudes!!! :)
wow, it worked that's pretty cool. It was such a simple thing I coudn't get me brain into it...
Thank you to all of you.
Any one mind reviewing my attempt to overload operator+? Thank you in advance.
Alright, here is my attempt at the operator overload of + and -. So far I have only called the + in main and have...
so based on the examples DRK gave the int main call of the overloaded operator would be, if usinf 3 in the passed argiment:
3 + ;
and, depending on example, the out come would be (if example...
okay, so you have made it public then showed the definition which to me resembles a function, yes? so when plugged into main what is it going to look like for either of the two defs you provided?...
Okay. Operator overloading is now further mind F*&^^%^& me. I am now trying to fit it into the scheme of things. I know that yo declare it kind of like : object operator + (then another object...
donyavhat, I am sure I miss spelled that. Thank you. I feel a bit clearer on the subject.
...*sigh*,What is the dif between a default contsructor and a constructor with parameters? They are both setting the rule of initialization of the new objects variables, right? So why would I...
I have been reading the cplusplus for the last few hours, I will read through the c++ faq next. Thanks I realy appreciate it.
I wonder how many years I will wander the streets of code until I...
I am begining to understand the general idea of building and using a class. I have two diffferent begining c++ books that have enough information in them to make me realize I don't know enough. I...
I tried to set it up with the user entering a day of the week, but I couldn't get a %s to beaccepted, only %d. So are enumerations only for the programer to remember what the ints are related too?
This is an assignment for an online course:
"Create a set/list of enumerated constants called week that contain the days of the week. Have a variable named today of type week.Assign a value to...
It worked great. Now that I created the list I am going to try to delete from the list and modify existing elements in the list.
So for dynamic MSTUD should be a variable. Just declare it as 'int MSTUD' and do not initialize it. I will give this a whirl. This is begining to get confusing and very exciting. Thank you...
Ok, I am trying to print the list now and can't figure out malloc. I believe I need to use malloc for Student however Student is not a ptr. This is what I have so far:
#include <string.h>...
Ok, I am trying to print the list now and can't figure out malloc. I believe I need to use malloc for Student however Student is not a ptr. This is what I have so far:
#include <string.h>...
Never mind... I moved the printf and scanf for cont after the i++ and it works great. Thank you VERY much once again.
Wow, huge difference. Thank you DRK. I did the changes and its working, except when it is supposed to scanf for cont, it jumps to enter name followed by grade. If I enter n for grade it exits...
Hello, I am a first year student. I use gcc/netbeans to work with c. I have made a global structure then am trying to create another of that type that is an array.
i am trying to fill the...