#include int main() { const double PI = 3.14159; //PI = 420.69; This will cause an error double radius = 10; double circumference = 2 * PI * radius; std::cout
For people who aren't aware... the const keyword is contextual. Const before a variable makes it constant, but const after a function declaration in a class makes it so that the method can be called with a const object. Anyway, good video!
@@BroCodez All good my man. I understand the challenge of trying to teach concepts like this without complicating it, especially in such a hefty language like cpp.
since i arrived early it's likely that you'll read this, you've taught me almost everything i know about programming, really easy to understand videos, keep it up man
While taking notes on this video, I included: const double Gravity = 9.8 ; I just started teaching myself programming this week, using c++ and just on command line. Even though my interface is less intuitive than yours, this playlist has been a huge help for daily studying. I can see myself referencing these videos for a long time.
Your series is super insightful and I am enjoying learning this so much! #include int main () { const double PI = 3.14159; double radius = 10; double circumference = 2 * PI * radius; std:: cout
Im going off to a college soon, studying CE. A friend of mine reccommened your channel and it's been great so far, thanks for the great tutorial bro! here's my homework #include int main(){ //The const keyword spectifies that a variable's value is 'constant' //tells the compiler that this value is off limits (prevent anything from modifying it) // effectively a 'read-only' double Torque = 318; Torque = 69; //75 years since last oil change int RPM = 5200; double Horsepower = Torque * RPM / 5252 ; std::cout
as far as I think he never took a break. the time he did not upload he was making the videos he is uploading now. thanks bro :thumbsup: u truly r a chad #simp lol
#include using namespace std; int main() { const int daysPerWeek = 7; const int hoursPerDay = 24; const int inchesPerFoot = 12; const int feetPerMile = 5280; const int secondsPerMinute = 60; cout
#include using namespace std; int main() { const int daysPerWeek = 7; const int hoursPerDay = 24; const int minPerday = 1440; const int secPerday = 86400; const int daysPeryear = 365; const int monthsPeryear = 12; const int secPeryear = 31536000; cout
#include int main(){ /** The const keyword is used to define a variable that is CONSTANT and will not change IE C for example (Speed of light) does not change in physics. neither does g, 9.8 M/S/S Prevents the compiler from allowing changes, makes it essentially read only **/ const double PI = 3.1415926535898; //Naming convention for constants is all upper case. double radius = 10; double circum = 2 * PI * radius; double areacir = PI * radius * radius; double area = 4 * PI * radius * radius; double volume = (4 * PI * radius * radius * radius) / 3; std::cout
#include
int main() {
const double PI = 3.14159;
//PI = 420.69; This will cause an error
double radius = 10;
double circumference = 2 * PI * radius;
std::cout
For people who aren't aware... the const keyword is contextual. Const before a variable makes it constant, but const after a function declaration in a class makes it so that the method can be called with a const object. Anyway, good video!
that's true, however I haven't explained functions and classes yet. I didn't want to make it more confusing.
@@BroCodez All good my man. I understand the challenge of trying to teach concepts like this without complicating it, especially in such a hefty language like cpp.
@@BroCodez I'm currently doing classes, polymorphism, inheritance, composition, operator overloading, and templates.
@@montyferguson4657 I'm currently doing your mum, your dad, your grandpa, your grandma, your great grandma, AND your great grandpa.
since i arrived early it's likely that you'll read this, you've taught me almost everything i know about programming, really easy to understand videos, keep it up man
While taking notes on this video, I included: const double Gravity = 9.8 ;
I just started teaching myself programming this week, using c++ and just on command line. Even though my interface is less intuitive than yours, this playlist has been a huge help for daily studying. I can see myself referencing these videos for a long time.
Write GRAVITY like this is better 💖
Your series is super insightful and I am enjoying learning this so much!
#include
int main () {
const double PI = 3.14159;
double radius = 10;
double circumference = 2 * PI * radius;
std:: cout
const string u = you are teaching good;
Error: You forgot the ""
constant: my knowledge of c++ even after watching the playlist about 12 times
Nice one! XDXD
#include
int main() {
const std::string ThisisdcodesKnowledge = "The Same XD";
std::cout :D
Im going off to a college soon, studying CE. A friend of mine reccommened your channel and it's been great so far, thanks for the great tutorial bro!
here's my homework
#include
int main(){
//The const keyword spectifies that a variable's value is 'constant'
//tells the compiler that this value is off limits (prevent anything from modifying it)
// effectively a 'read-only'
double Torque = 318;
Torque = 69; //75 years since last oil change
int RPM = 5200;
double Horsepower = Torque * RPM / 5252 ;
std::cout
Thank you so much for returning to UA-cam
Hey man, love your stuff. Keep up the good work!
as far as I think he never took a break. the time he did not upload he was making the videos he is uploading now. thanks bro :thumbsup: u truly r a chad
#simp lol
thx for all your great content man, helped me a lot keep it up
#include
using namespace std;
int main() {
const int daysPerWeek = 7;
const int hoursPerDay = 24;
const int inchesPerFoot = 12;
const int feetPerMile = 5280;
const int secondsPerMinute = 60;
cout
can you use the std namespace out side the function? is it still work in the function?
#include int main { using namespace std; const int age = 16; const double mark = 9.5; const string name = "Artemius"; const char grade = '11'; cout
DONE BRO❤❤😌😌
Hey bro Just finished your Java Gui course and wanted to ask if you can give me resources to study from and continue java
const int NUM_LEVELS = 25; // total levels in a game
const double FREEZING_POINT = 0; // celsius
const double BOILING_POINT = 212; // fahrenheit
const int DAYS_PER_WEEK = 7;
const int DAYS_PER_YEAR = 365;
const char FIRST_INITIAL = 'G';
const char LAST_INITIAL = 'B';
const std::string FIRST_NAME = "Gus";
const std::string LAST_NAME = "Burton";
const bool IS_ALIVE = true; // gonna live forever obviously
you can use "using namespace std ; " after "include" instead of using "std::" in every line
الف شكر ياعمنا😘
1000th like woow.
noice
whatever anything before or after or anything
#include
using namespace std;
int main()
{
const int daysPerWeek = 7;
const int hoursPerDay = 24;
const int minPerday = 1440;
const int secPerday = 86400;
const int daysPeryear = 365;
const int monthsPeryear = 12;
const int secPeryear = 31536000;
cout
#include
int main(){
/**
The const keyword is used to define a variable that is CONSTANT and will not change
IE C for example (Speed of light) does not change in physics.
neither does g, 9.8 M/S/S
Prevents the compiler from allowing changes, makes it essentially read only
**/
const double PI = 3.1415926535898; //Naming convention for constants is all upper case.
double radius = 10;
double circum = 2 * PI * radius;
double areacir = PI * radius * radius;
double area = 4 * PI * radius * radius;
double volume = (4 * PI * radius * radius * radius) / 3;
std::cout
Const double gravity = 9.8;
Const std::string legend ="Brocode"
hello bro
//Euler's number
const double E = 2.71828
You missed up semicolon man;
Algo Algo
Earth's circumference = 40000km
:)
420.69 is unexpected!!!
const int FEET = 4;
const std::string ID = "amongus";
const int LIGHT_SPEED = 299792458;
const int WIDTH = 1920;
const int HEIGHT = 1080;
int sum = WIDTH + HEIGHT;
std::cout
reply bro
IM going to make pigs fly just need a big bird and some tape
const char MY_GRADE='E';
const double FEET = 12.0; huh who said that
const double e = 2.718
const double gravity = -9.81;
12th
const int G = 9.8;
const double gravity=10;
const double BIRTH_DAY = 1.26
const int e = 2.71;
const double GRAVITY = 9.8 ;
const double GIGA_CHAD_HEIGHT = 6.8;
const double e = 2.71;
const std::string API_KEY = "some api key here";
const std::string = "fart"
This one might be an obvious one: const int TAX_GST = 13;
const int android_ver = 9
const int AMOUNT_OF_BITCHES_THIS_GUY_GETS = 999999
const int BEINS_SIZE = 5;
const double Money_in_my_bank = 00.00; 😔
const std::string DATE_BORN = "dd/mm/yyyy";
System.out.println(" random comment for ");
const double GRAVITY = 9.8;