Question:
Slow Simple Program made with VSC++E?
?
2011-07-10 10:43:43 UTC
the programs i create in C++ are slow. for example: an extremely simple program that calculates the area of a triangle takes a few seconds to load and a few more seconds before i can type anything
why is that (could it just be the age of my computer or is it something else)
Also while looking at the Task Manager the program seems to take more than 600k memory while that program has less than 10 variables and only 1 function(aside from main())
Is that only for creating the Command Prompt window
Three answers:
?
2011-07-10 10:53:05 UTC
The memory is because it has to load the io librarys (for the console) so that's normal.



The slowness is strange. c++ (and vsc++e) are very fast languages, even on very old machines. I would check to see if other things are running that slow it down. if in doubt you could use a live cd/usb to run you code with a clean os and know for sure (more work than is nessicary I'm sure but I don't have enough details to make a guess of any kind so this is the only sure fire answer I have). For a recommendation of live cd I would choose lubuntu and install g++ for the c++ compiler. (guides are abundant use your favorite search engine)



Good luck. Any more questions if you need help.
?
2016-11-14 14:27:41 UTC
the main mandatory procedures that the human beings can attempt against international warming is getting rid of their older kind automobiles (1979 Buick) by way of fact, older automobiles emmitt extra poisonous fumes into the air. Its obtrusive that the extra technological progressed a motor vehicle is, the less risky gases it emmitts. A motor vehicle that became geared up 3 or 4 years in the past would be extra financial device friendly than a motor vehicle that became assembled 35 years in the past. for top populated cities alongside with ny, Bus and Taxi companys ought to replace modern automobiles with automobiles that are powered by skill of hydrogen or electricity. in simple terms think of, if each important city used the Toyota Prius as taxi's, there could be a decreased point of pollution, and additionally taxi fares might desire to be appreciably decrease besides.
2011-07-10 11:02:11 UTC
How about sharing with us the lines here?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...