We dont use C, its my first semester doing it, we start at c++ and move up each semester.
We dont use C, its my first semester doing it, we start at c++ and move up each semester.
Here you go... (pseudo) random numbers
Hodor Wears Shoes
Am i not able to make my own choice? leave it alone, thts the way i learn it using Dev C++ so tht is the way its going to get done! As i said FIRST YEAR!
It works perfectly fine! So thank you but i will do this the way i know how and the way laserlight and Mario F helped me to figure out.
No one said you were required to use it.
Though you should maybe understand that, for future reference, <rand> makes it easier to generate random numbers without disturbing the distributions, and much more.
But you don't need to go through it right now. Considering your idiot teacher, I wouldn't be surprised if you got a 0 for it. So just remember it for future reference in case you get intrigued.
You know... just because something works doesn't mean it's "good". It's great that you've got a solution that works. But, now that the pressure is off (at least you have something to hand in) have a short break. After your break, revisit the code and make it better. There's no pressure now so take other peoples' advice and see what you can do. Don't be satisfied with your first solution; you're learning and so am I... part of learning is looking at what you've done and asking yourself "can I do this better?" Usually the answer is "yes."
If your teacher requires you to use Dev-C++, then it may be a moot point, but I would suggest that you use just about any other C++ IDE out there. Eclipse is great. So is Code::Blocks. Both run on many platforms, including mac, windows, and linux, and they are under current development, unlike Dev-C++, which hasn't seen an update in many years, and is full of bugs.
On a side note, you seem very argumentative and stubborn. If you're here to learn, this personality trait is not going to help you. One of your threads has already been closed by an admin for this very reason. The people on this forum, while sometimes sarcastic and a bit abrasive, are taking their free time to help you, with no expectation of compensation, despite your attitude. I suggest that you try to remember that, and accept the help that they offer graciously.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?