| | |
general questions
![]() |
•
•
Join Date: Jun 2009
Posts: 26
Reputation:
Solved Threads: 0
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.
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.
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.
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.
•
•
Join Date: Jun 2009
Posts: 26
Reputation:
Solved Threads: 0
why did you move the thread? these were C++ questions
•
•
•
•
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.
![]() |
Similar Threads
- General Questions (Python)
- general advice on programming pratices (C++)
- general questions about jsp (JSP)
- General Questions, windows/not windows programming. (C++)
- Hi, caple of general questions (C#)
- Questions For WebDevelopment =) (HTML and CSS)
- Commands tips and tricks general questions (Mac tips 'n' tweaks)
- JavaScript/DHTML newbie -- general questions (JavaScript / DHTML / AJAX)
- Putting A Computer Together HELP (Troubleshooting Dead Machines)
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: help please
- Next Thread: Windows 7
| Thread Tools | Search this Thread |
1gbit advertising advice amazon answers archive british broadband business businessprocesses career carrier censorship cern china cio collectiveintelligence connectivity consumer consumers corporateearnings datatransfer debtcollectors dictionary digg digital ebay ecommerce email employment environment facebook food government grid high-definition hottub infodelivery infotech intel internet interview ipod isp japan kindle lhc library malware marketing mit moonfruit news onlineshopping piracy piratebay pope porn program questions r&d religion remoteworking research retail security sex shopping simple skype smallbusiness smb sms socialmedia socialnetworking software softwareengineer spam speed spending startrek statistics stocks study stumbleupon survey tabletpc technology touch-screen touchscreen twitter uk videoinprint voips web webdeveloper windows words






