View Full Version : Venting (somebody make it stop!)
:bawling: :bawling: :bawling:
I'm so sick of Microsoft Visual C++ that... that... I don't even know what. I have a huge lab due for my C class tomorrow, and it's about 75% done, and I just compiled it for the hell of it and it came back with like 50 errors. :banghead:
I still have to write a function to get the time and calculate the actual time, debug it, and test it. Plus write up a lab report of some kind. I have 10.5 hours, of which I'm going to need at least 5 to sleep. :werr:
Oh, and I just realized I have to check to make sure that the # of minutes entered doesn't exceed 59... :doh:
So, if any of you hear about some guy in California beating the crap out of his notebook tomorrow, you'll know why... :rolleyes2
Anyhow, I just had to get that off my chest... and here's the problem, if anyone is curious as to wtf I'm talking about:
I feel your pain on assignments. Damned Discrete Mathematics is going to be the death of me!
Here's an example...
2. (15 marks) A polynomial of a single variable x with integer coefficients is an expression of the form p(x) = c0 + c1x + c2x2 + + cnxn, where ci, i = 0, 1, , n, are integers. Denote the set of such polynomials by P.
The following is a recursive definition of a set Q:
(*) c Q, if c is an integer;
(**) c + xq Q, if q Q, and c is a integer.
(i) (1 mark) Justify that f(x) = x - 2x2 + 3x4 Q.
(ii) (6 marks) Show that P = Q. In other words, P can be defined recursively by rules (*) and (**).
(iii) (4 marks) Use the recursive definition of P to prove the following result by mathematical induction:
Suppose a and b are integers, a b (mod m), and p(x) P is a polynomial. Then p(a) p(b) (mod m).
(iv) (4 marks) Use the recursive definition of P to develop a recursive algorithm to find the value of p(x) = c0 + c1x + c2x2 + + cnxn, if x = a is an integer.
It hurts the brain!!!! :eek3: :eek3: :eek3:
No! Make it go away! Math BAD! Math EEEEEVILLLLL!!! I can't stand math...
I swear..math is the root of all evil...
t1rhino
7 Nov 2003, 1:15pm
Do you mean the square root? :D
evil = math :)
BTW, C++ is a biotch... The only language where fixing 1 error can cause 99 more errors...
/edit: vbforums can't display certain special characters. :(
Mt_Goat
7 Nov 2003, 2:04pm
I used to hate math too. But as I got older I realized how much it fits into daily life. Now I like to do math and if I have the time try not to use a calculator. It seems to be one of the best execises for your brain. Just give it 10 years or more! ;)
maxanon
7 Nov 2003, 3:06pm
Ahh, this reminds me of the good old days of school. Man I miss those days.
t1, this isn't C++ (thankfully)... this is just ANSI C... and fixing 1 error generally only causes 50 new errors in C...
Enverex
7 Nov 2003, 3:40pm
t1rhino: Try using the code option (or PHP option) it should display it properly.
NS
a2jfreak
7 Nov 2003, 4:07pm
If you're using C++ then use std:cin and std:cout.
You're going to have integers for hours and minutes . . . possibly seconds.
unsigned int hours, mins, secs;
hours = mins = secs = 99;
do {
cout << "Enter hours: "
cin >> hours;
} while (hours > 23);
do {
cout << "Enter minutes: "
cin >> mins;
} while (minutes > 60);
// You get the idea.
by my estimation you have about 2 hours before your assignment is due. If you see this in time and have some questions about specifics just ask . . . I'll try to check the page as often as I can.
I loved Discrete Math....it was just like my digital logic class.
Swettacular
7 Nov 2003, 5:47pm
wow, I had to do almost that exact same assignment in my C++ class, but we didn't have to check for correct times and the input was from a file not a user, and we weren't allowed to use functions
TheBaron
7 Nov 2003, 7:05pm
ha SimGuy, i'm taking that class next semester :)
along with differential equations and linear algebra, YAY!
TheBaron had this to say
ha SimGuy, i'm taking that class next semester :)
along with differential equations and linear algebra, YAY!
I bombed all 3 of them last year @ the University level. :)
Evidently, advanced multi-variable differentiation calculus, technical algebra & discrete logic mathematics aren't my fort.
Although I've still got all the assignments and solutions for those courses.... :hrm:
Geeky1
7 Nov 2003, 10:40pm
a2j, thanks... I didn't see it in time, unfortunately, but I got it done... stupid 250 lines of code... grr...
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.