I got the dos down like 99% but looked at a few WIN32 programs an WOW...........it totally lost me is there like an IDIOTS GUIDE TO WINDOWS PROGRAMING IN C++? hehe or something that explains good to...
Type: Posts; User: ii3ejoe
I got the dos down like 99% but looked at a few WIN32 programs an WOW...........it totally lost me is there like an IDIOTS GUIDE TO WINDOWS PROGRAMING IN C++? hehe or something that explains good to...
i had to reformat after letting someone use my computer an having them totally mess it up, an after reinstalling VC++6 standard an copying the files(programs) i had made off a cd i burned all of the...
anyone know of a good tutorial or webpage to help me out with functions? i got the basics down.........its just when it comes to making a program with like 2 or more somehow i get messed up an either...
i guess jsut handle them an tell the user that invaild data was entered.
say i used ch for the char i know this much
switch(ch)
case a:
case A: (what should i put here? since i dont want it to...
i am trying to make a program using functions
where i want a input,output,time,and charge all to be functions.
the problem i am having is with putting error checking into the function.
for...
to make it into an actually game-like program......
do the prompts to user..........cin the data.......then use a for loop to count from 10 to 0 (number of try the user gets to guess the number...
i tried a few all gave at least 2-6 errors
i was messing around an thought that id try to make a simple DOS "Number Guessing " game, i almost all the code thought up..cept the part to pick the rand0m number?
anyone know how this can be...
the formula ( uncut_area + (forest_rate * uncut_area)
using the numbers 10000 total area, 100 left uncut, .05 forest rate
u get 100 + (.05 * 100) which is 105 which equals how much will be left...
thanks for trying..........but i think i am outta luck it dont make sense to use a For loop.......... i tried what u posted but all it out out was
20
1 5
2 5
3 5
etc all the way to
20 5 ?
i...
this is my wholoe CODE as is so far ( if u have any ideas as to where a FOR loop would be best let me know)
#include<iostream.h>
#include<iomanip.h>
#include<math.h>
//...
area _number just to help the user know what area they are entering data for ( its supposed to be made for a person who knows little bout computers)
total_area is used to determine the percent...
the for loop he wanted us to use for the years i guess........to guess make sure we can...........it works but drops off the decimals for some odd reason
when i changed all to Float..........( all of the variables)
an took off the set precission for some reason it took off the decimals?.......
an i used the cout ideas you suggested an nope........
cout << endl;
cout << area_forested << endl;
cout << i << endl;
i just have that to print(output) the data because it kept giving the wrong answer i wanted to narrow it down, an found that this...
i cant seem to figure out whats wrong....i have narrowed it down to this loop
for (double i=1; i<years+1;++i)
{
area_forested = (uncut_area + (forest_rate * uncut_area)*i)
}
its...
i cant seem to figure out whats wrong....i have narrowed it down to this loop
for (double i=1; i<years+1;++i)
{
area_forested = (uncut_area + (forest_rate * uncut_area)*i)
}
its supposed...
i havent seen it used in that form..........i guess the author of our book choose a different way or skipped it sorry........
i think i got it........just wondering why the dAccum?
oh yeah...
ko0 whats the "*="? i havent came across that yet anywhere in class or any of the book so far?
when u used dAccum? that was for forested area right? an the loop the "i"? doesnt represent anything?...
A problem in timber management is to determine how much of an area to leave uncut so that the harvested area is reforested in a certain period of time. It is assumed that reforestation takes place...
say after i put the cout an cin statements to prompt the user to enter for example like u said "N10N" , i used switch for the Mag codes.........right after it i was thinking of putting some ifs like...
Milt Walker, the chief of advertising for the Isabella Potato Industry, wants you to write a program to compute an itemized bill and total costs of his "This Spud's for You!" ad campaign. The...
okie here's a tuff one for ya.........i got it all made an it works great ;).........but how do i get all the numbers to line up
EX.
first day: 342
second day: 234
third day:...
haha i feel stupid i think i got it tell me if u think there is a easier way to write this
M =((Rate2 * pow(1+Rate2,N))/(pow(1+Rate2,N)-1))*L;
hi i have the "Starting out with C++" by Tony Gaddis 2nd Ed. and cant find the floppy is there a place u can download whats on it?..........my main problem is with chapter 3, page 151, Programing...