I believe that you think too much, but at the same time, I like to analyze my own and other people's behavior.
First, think about the fundamental level of the contact between males and females. I know to some people it's horrible to say that, but we're in a science forum, so I'm not too afraid...
Hello there,
There's a question that keeps running in my head, which I wanted to share with you.
I've always loved C, C++ and low level languages, like Assembly. I like to think that I stay
close to the processor and other devices. This is usually faster, and in my mind, easier to...
I think this video would also
answer your question. You'll see that at the end, they make the sun suddenly disappear
and it shows what would happen then.
It is part from The Elegant Universe by Brian Greene, you can find the whole documentary
on youtube, which explains a lot of things. Other...
Ok glad to know that it worked.
If the window closes right away, don't worry you've done nothing wrong !
Actually, when you enter the two ints, the program keeps going and then comes to an end.
When it ends, the console window closes (it's the normal behavior).
You have two solutions then...
Ok hmm. It might depend on your compiler. Which one are you using ?
A quick fix would be to replace:
catch (runtime_error e) {
cout << e.what () << "\n";
getch ();
return 0;
}
by
catch (exception& e) {
cout << e.what () << "\n";
getch...
And here is the fixed version of your code.
#include <iostream>
#include <conio.h>
using namespace std;
void error(const char* str)
{
cout << str;
exit(0);
}
int main ()
{
try
{
int val1=0;
int val2=0;
cout <<"Please enter two integer...
Ok, I actually took your code and compiled it, and here is what I got:
Did you really copy this from the book ?
If so, maybe they made mistakes for you to find them, as an exercise ?
If not, here are the mistakes:
- if (!cin) error ("something went bad with the read");
error doesn't seem...
The language you should choose depends on what you are planning to do.
If you want to quickly be able to make an application that would, say, work with databases, you should try C#.
I would tell you to avoid Visual Basic (especially version 6 and older). VB6 is outdated, not
supported...
Actually, I "knew" about the speed of light and special relativity. Or should I say, I read about it, as I don't think I have the necessary background to fully understand it. Maybe I have missed something about it though :)
Hello everyone ;)
When we talk about speed, it's known that motion is relative.
I can say my speed is 0 relatively to my chair.
Is there any possible notion of "absolute speed", as there is no center of the universe ?
I believe that the answer will be no, as motion is relative, however...
Bringing this thread up as I had a thought about this.
What if, instead of putting an electro-magnet in front of the car, we put one at the four sides of the car, and kept them off until another car gets too close.
The magnet that would be in the right direction would then be turned on, thus a...
Hello everyone,
I currently have a Master (M2) in computer science and been working as a C++ programmer in the video games industry for 3 years, in Paris, France.
However, I don't really enjoy it anymore as I don't feel like it's being much "useful" and
the place is not that friendly...
Actually, I agree that reality wasn't the right term to use: By reality, I actually meant, like tom.stoer said: "a theory that predicts these facts correctly".