oh wow, thank you so much - it works now!
Type: Posts; User: Inao
oh wow, thank you so much - it works now!
Ok, so I've been tinkering with this code meant to take an input of time and display it in Hours:minutes:seconds using two functions... Now when I define values for variables within functions they...
Can you help me figure out where to place that within the above code?
#include <iostream>
#include <cstdio>
using std::cin;
using std::cout;
using std::endl;
int main(void)
{
int ch;
After the first question is asked "How many books have you read in the past year?" if I enter characters "faslkdfja" or any other combination of course, it throws me into an infinite loop... help!?
...
I need to find a good web host for 10$ a month or less, any ideas? thanks in advanced
*note* I'll be using it as a sort of personal portfolio of programs, as well as a place to implement what I...
can someone toss me a link on exceptions?
Alright, I'm tired and making more mistakes by the minute. I'm going to crash and work on it some more tomorrow (I'd hope to have this in tonight, if you want what I have just tell me, I'll wait for...
else if ( book )
{
cout<<"Oops! Please inter a positive integer!\n";
cin.get();
}
Shouldn't this, since book is defined as a character, mean if...
Oh ok, thank you much
Help with my while loop please, I obviously don't understand it.. I can't get it to start the program over for the life of me. at least not without making it just like the for loop in the sense that...
WAHOO! Declaring it a char made all the difference... it also makes it possible for me to.. wow that helps alot, thanks!
define it as a char.. ok tutorials here I come, need to find out how to do that.. assumedly char input;
if ( input == 'a' ) {
}
That means if input is the same as a(they typed in a) then do the following right?
First off, The definition of else is if the previous if isn't true, therefore the && declaration thingies isn't neccesary. Next I was trying to make it if they user input something other than a...
ok, good Idea, I'll write a few easy progs and build on things with stuff I know that works... Get my mind off of it.... For some reason I just know that I'm missing something blatantly obvious... or...
I don't want to shorten it, Just make it work *kicks at the prog*
Its not the lesson I'm on, It was a challenge to do it using the if statement, imbeding if statements inside if statements... I was trying to avoid getting ahead of myself and going into switch...
Update:
1. When I enter a b c d or e to choose my prize, it gives me... I think its the error message, but cin.get(); isn't registering properly or something because its not pausing for me to see...
I'm currently working on a code to use imbedded if functions....
Its kicking my butt now, I lost about an hours worth of tweaking and now I'm... bumbling around like an idiot. Let me show you my...
Small town= Small library, but I'll have to check out my local one and see if they have a few, perhaps I can print hte titles on here of what I find , or mayb ejust look for ratings through google.....
Ok, so that book would be appropriate for a my current skill level? (pretty much none)
oh! I found it! I feel very stupid, sorry for taking so much time up with such a question, and thank you for putting up with me
And thats the executable?--- When I click on those it opens up dev c++, not the actual program on MSDOS
will it be different for someone without it on their comp?
Can you give me an example?