Help with breaking down my program in to functions. Programming Software Development by Knoxx …;endl; if(plantsEaten > numPlants) { cout <<"\nThe Ecology Crashed." <<endl; break; } else { numPlants -= plantsEaten; } cout…;endl; if(rhinosEaten > numRhinos) { cout <<"\nThe Ecology Crashed." <<endl; break; } else { numRhinos -= rhinosEaten; cout… carlsfrog's introduction Community Center Say Hello! by carlsfrog … fantasy, mysteries, novels, and scientific (paleontology, archaology, life sciences, astronomy, ecology, and on and on). carlsfrog was my first online name… learning voice technology as slightly handicapped Community Center Say Hello! by grahbird …;writing".. Was a creator of the discipline "social ecology" in Aust ralia . that's all for now - wil… Introducing myself to the community Community Center Say Hello! by Hervé … new project. I need the oxygen and am dead for ecology & very concerned by what's going on with our… How to efficiently collect data on news site Programming Software Development by castajiz_2 … relevant information on news sites (information about global warming, pollution, ecology etc.) The only solution that I've found was to… Re: How to solve matrix in VB.NET Programming Software Development by zhouy … as a hobby. I am developing a mathematical software for Ecology. I am not much familiar with matrix and solving it… in VB. Unfortunately my ecology model gives some answers as matrices. So, I want to… Re: How to solve matrix in VB.NET Programming Software Development by zhouy … must say this. I am developing a mathematical software for Ecology. I am not much familiar with matrix and solving it… in VB. Unfortunately my ecology model gives some answers as matrices. So, I want to… Re: Usa Elections 2004 Please Do Vote Here Community Center Geeks' Lounge by muriel … will not have childs in the future). Another thing about ecology : Bush says that the Kyoto's agreement is not interesting… Re: Dark Matter & Dark Energy Community Center Geeks' Lounge by quintoncoert … seen in society as well as my reasonable knowledge of ecology I do believe that this is at least to some… Re: Global warming solution? Community Center Geeks' Lounge by TheGathering … a spill could have potentially result in damage to the ecology of the area and the utilities of the city? 2… Re: Global warming solution? Community Center Geeks' Lounge by stevex … a spill could have potentially result in damage to the ecology >of the area and the utilities of the city… Re: Collins: Why this scientist believes in God Community Center Geeks' Lounge by quintoncoert … non-living things co-exists. in fact that is what ecology is. it is a study of an organism where he… Re: Going too far? Community Center Geeks' Lounge by briansmall … my firearms, yet I believed in giving first consideration to ecology while otherwise keeping the governments hand out of my business… Re: Query on evolution Community Center Geeks' Lounge by Ravenous Wolf … athletic ability endowed by evolution. that is why in modern ecology we no longer believe that the predator numbers can control… Re: Could Google Phone Drive Apple into Arms of Microsoft? Hardware and Software macOS by Sothatsit … most of two years. But it has its own system/ecology limitations that eventually chafe and annoy and leave the phone… Re: Do you read our news? Community Center Meta DaniWeb by jon.kiparsky … isn't a DaniWeb-shaped hole in the internet news ecology. This means that if by some chance you trip over… Re: Finding the longest common prefix Programming Software Development by gizmo7008 Nevermind! I need to just declare i and put i = 0 in my for loop conditions. And it is fixed! The program runs and compiles. When I enter the two words, it gives me a bunch of random stuff when printing. [CODE] Enter two words: economy ecology The longest common prefix of and § is hŸA(~· [/CODE] Re: Science Community Center Geeks' Lounge by Agilemind … human caused) from the chemistry of various gases to the ecology of migratory birds. 2) Best estimates put human contribution at… Re: Memorable Quotations Community Center Geeks' Lounge by Reverend Jim In science, faith without evidence is a vice, while in religion it’s a virtue. - Jerry Coyne (Professor Emeritus of Ecology and Evolution, University of Chicago) Re: Help with breaking down my program in to functions. Programming Software Development by vmanes Look at the code you have, divide it into chunks that make logical sense to be together. At a minimum, the input section and each of the calculations should be individual functions. You might have one function that groups all the calculations into a single call from the main( ). Also, please use code tags to make your code more readable here. … Re: Help with breaking down my program in to functions. Programming Software Development by Knoxx Super!! thanks alot Re: carlsfrog's introduction Community Center Say Hello! by happygeek Hi Carl, welcome to DaniWeb. Always nice to bump into folk who remember what it was like online before broadband. I recall using a 300 baud modem with an acoustic coupler, for example, and the modem was bigger than a shoebox (about as fast, come to think of it, as well.) Re: learning voice technology as slightly handicapped Community Center Say Hello! by happygeek Hi grahbird, welcome to DaniWeb. Re: Introducing myself to the community Community Center Say Hello! by Dani Hi there, Welcome to DaniWeb!!!! :) Re: Introducing myself to the community Community Center Say Hello! by Hervé I am very disappointed and would like to strongly protest about my introduction "to the community" appearing on the internet for the whole WWW, including eventual clients and competitors to consume. I do not see how the Daniweb Community is helping me to promote and foster the best image for my business here. I do not thank the or … Re: How to efficiently collect data on news site Programming Software Development by Taywin Well, you could retrieve a page data via a script (Perl, Python, etc.). Implement a script that can retrieve a page data, and then use Regular Expression to help you to search for matched words. This way, it should help you screen page data and reduce your manual work load... Re: How to efficiently collect data on news site Programming Software Development by jwenting or, much better, ask the people maintaining those sites if they have something like an RSS feed you can get access to and get the data right there in text, uncluttered by tons of advertising, javascript, menus, headers, etc. etc., and of course with their full blessing and no risk of having your script suddenly fail because someone changed the …