general questions

Reply

Join Date: Jun 2009
Posts: 26
Reputation: zeus1216gw is an unknown quantity at this point 
Solved Threads: 0
zeus1216gw zeus1216gw is offline Offline
Light Poster

general questions

 
0
  #1
Jul 7th, 2009
as the title says these are general questions and DON'T NEED CODE. so don't bother asking.

1. at what point does memory start to play a factor in programs. I use float and double for everything. my programs are not hard and typically do easy math functions. Yet my teacher loses his mind saying I'm wasting memory space.

2. by seeding a srand based on the computer's clock i was told by someone that because the computer's clock is so fast it really doesn't do anything for you and you need to manually pause the program. is that true? Its possible this question doesn't make sense so don't answer if you can't translate my nonsense.

3. when you pass by value the function you call on must return a value...and it seems you actually need to write return "whatever" at the end. Yet for pass by reference that's not needed if you write the function right. why is that?

4. why are some of you on here so hostile to newbie programmers (if you can call us that) it's not a condusive learning environment. by the way...if you are that good maybe you should get paid to answer HW questions.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,348
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1462
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: general questions

 
0
  #2
Jul 7th, 2009
2) The computer speed has nothing to do with srand(). srand() is used to see the random number generator so that it does not generate the same set of random numbers every time you run the program.

4) We are only a little peeved at newbies who want us to do their homework for them. Show us some effort and you will get all the help you want.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 26
Reputation: zeus1216gw is an unknown quantity at this point 
Solved Threads: 0
zeus1216gw zeus1216gw is offline Offline
Light Poster

Re: general questions

 
0
  #3
Jul 7th, 2009
why did you move the thread? these were C++ questions

Originally Posted by Ancient Dragon View Post
2) The computer speed has nothing to do with srand(). srand() is used to see the random number generator so that it does not generate the same set of random numbers every time you run the program.

4) We are only a little peeved at newbies who want us to do their homework for them. Show us some effort and you will get all the help you want.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the IT Professionals' Lounge Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC