Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Yeah6916288yWhy do you have an extra indentation for the of and else clause?
Next task could be: pass grade and goal as arguments to the main. 😉 -
it weird to read if goal is less than grade. usually the order would be if grade < goal you fail. the variable is on left and constant on right
-
Bubbles66128y@Yeah69 could you explain what that means a little? I'm sorry I'm just new to all of the words
-
byte32818y@itsmill3rtime for evaluating conditions the constant then variable style is better so you don't make errors like :
if( goal = 57) -
byte32818y@SpencerBeige it was meant to show an error
if( variable = constant) => true but wrong output
but
if(constant = variable) => does not compile
Thus
if(constant == variable) => true and correct output -
Yeah6916288y@Bubbles I could give you a shitty explanation (because I cannot explain well) or you could Google it and are likely to find a good description.
Please, make it a habit to search for new keywords yourself first, before asking for an explanation. In the Internet there is a ridiculous amount of information to anything for free.
It is a good thing that you asked us for feedback to give you some pointers on the right direction, but going the way yourself is part of the process ;)
The keyword to search here is "program options" or "program arguments". -
Yeah6916288yBTW if I Google a specific programming matter, I always prefer the results leading to stackoverflow. It is a really good Q&A community for anything related to programming.
-
Yeah6916288y@Bubbles to my knowledge there is no other site like stackoverflow. There are some worthy blogs I guess. But they don't cover as much and are often spezialised.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
So today I made my first basic program in C++ from scratch that worked! After some troubleshooting.. But I thought of ways I could edit it and make it better!
undefined
c++