true ? 1 : 2 + 3 // why is this 1? False = 0, true = 1 right? // Then why is this 1 .
also
24 / 6 * 2 // I got this as well.
has value 8, not...
Type: Posts; User: elpedoloco
true ? 1 : 2 + 3 // why is this 1? False = 0, true = 1 right? // Then why is this 1 .
also
24 / 6 * 2 // I got this as well.
has value 8, not...
thanks I am working on 5 different programs I've fixed most of my code I will post once I am done so I can get your opinion, as always, your help is appreciated.
I was assigned to input a 4 digit by the user and output each number in every line. My question is in the code as comments that follows:
#include <iostream>
#include <string>
using...
Thanks Andrew you been great help.
Sorry Andrew, I do appreciate your help, I am just getting some weird compiler outputs I keep getting big numbers;
I understood how each character takes place depending on the digit and thus we must...
well the college I go to offers many programming classes, the teachers itself do make fun of the classes as my next semmester class is cs 570 which is java but you start at 575 which gives you the...
Awesome, so for my problem I understand that:
x takes value of 100s
y takes value of 10s and
z takes value of 1s
I tried to do the conversion as follows
digit =(x+100)+(y+10)+(z+1) however...
well i keep thinkin arithmetically, you'd multiply 5x10 and 0x10 as well? to give you 50? My teacher keeps telling us that compiler does not use understand basic arithmetic rules
so I might be...
Thanks Andrew that made more sense, however in the conversion output I am getting weird numbers, I know this is due to the ascii code table which has 255 characters according to Ascii Table - ASCII...
hello thanks for the insight in my issue guys I've succesfully done part c which took me a few since I am a bit slow :P
but ether way I just want to make sure I am doing it right. here is my code...
hi guys I am having a bit of trouble with chars my problem is as follows:
c. (No prompts or explanatory text necessary.) The user types a 3-digit number which you input as 3 separate...