*starts crying*
I can NOT believe I didn't see that!!!! aaghhhgrhghghghhghg
thank you for showing me the light :)
Type: Posts; User: _Will333_
*starts crying*
I can NOT believe I didn't see that!!!! aaghhhgrhghghghhghg
thank you for showing me the light :)
http://www.jedifaith.com/
I even went so far as you emailling one of the leaders to "humor him". Believe me, this guy wasn't kidding! :eek:
nevermind, got it:
int count = 1;
double temp = num;
while (temp > 10)
{
temp = temp / 10;
The one I'm having trouble with it outputting it in normal order, I already figured out how to do it in reverse order. Thanks, though. :) (sorry if I'm not makin much sense...its a bit...
Ok, what I'm trying to do is take an integer and display each digit, one per line, in reverse order:
// num = 123
//displays
3
2
1
and in normal order
// num = 123
In reality don't they cut the same number of pieces for every pizza? It'd make more sense to find the diameter of each pizza then calculate the area. But of course you still run into the problem of...
I'm guessin you want to prompt for the second varible "b" to get the sum of both. In this case b has no value when its given to the other function, so only garbage (leftover in memory location) will...
What he said was right but if you divide by 100 the max int remainder you can have it 99 ;)
Prime numbers are numbers that are only be divisible by 1 and themself.
Anyway, that thread is right here :)
http://www.cprogramming.com/cboard/showthread.php?s=&threadid=11499&highlight=prime
ok try that one :)
for your first getinput function the return command can only give back 1 variable. This means the 2 inputs you have cannot be put back to main (they're local to function) using...
new code:
#include <iostream.h>
// using namespace std;
void getinput (int& num1, int& num2);
// pre & post: comments
int getmax (int num1, int num2);
first: You need function definitions.
example: int getinput(int num1, int num2); < -- notice the ";"
these should be at the beginning before main, or before you use the function.
...
yup
int / int = int
9 / 2 = 4
double / double = double
9.0 / 2.0 = 4.5
and double / int or int / double = double
Well I found out go to change the fore/back-ground, console name, and a few other things but they're only aimed towards windows-based consoles. Not that thats a big problem since not many people...
Yeah, I've been wondering how/if you can do this as well. Someone mentioned that you can change the color of text at least...but how would you go about doing this? What about larger size text, or...
I'm just beginning to learn C++ and was wondering what compiler you guys would suggest. I'm using borland 5.02 at the moment and it hasn't been giving me troubles but of course I really haven't done...