Computer crash with c++?

Hi everyone,

I'm new, both here and to c++. I have a quick question.
I just wrote a program where I have to do A LOT of computations. And I mean A LOT. :) I probably haven't programmed it in the smartest way, but I've tried to make the computations as few as possible by using "break;" to exit my for-loops when it's clear that that particular loop isn't going anywhere.

I'm not even sure my program will be able to run and/or finish in my lifetime (there are (I think) that many computations). Anyway, my question is: Are there any dangers in running a program like this on my computer? Ie. can it cause my computer to crash (in a permanent way)?


Hope you guys are able to help.
If I should guess myself, I wouldn't think you could do permanent damage on a computer like that, but I'd like to know beforehand, just to be safe. :)


Best
acehole
As long as you aren't randomly changing memory (which the OS wouldn't let you do anyway), the worst that could happen is your program runs out of memory, which should only kill your program, or takes a lot of CPU cycles, which would slow down your computer.
Topic archived. No new replies allowed.