Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts
Amazon Auto Links: No products found.
you should inline that function and pass by reference,
Here’s my take on the conversion to USD program
#include
#include
thanks you are great !
how to get a whole matrix from it’s initializing function using srand and take it to another function where it addition with another matrix created with srand and gives the sum of two first matrixes? so basically i want to use the elements of a matrix in a function. how do i take these elements?
thanks
can u tell me shall i use int or void in all programs!! its really confusing.
In which video i can find storage classes?
dude, increase the font size
You are my new C programming professor. Thank you for helping me figure out my homework! I am so glad that there is a resource like this that is available. You’re content is very helpful, I appreciate it.
I have a variable let say int c in a given function. I want to pass it to the other class let say it is function(int a, int b, int c); I want only to pass the third argument while ignore the first two. i.e. I just want to pass int c, as function (c) and it just pass it to the third argument. I dont want to pass it like function(0,0,c); .. Is there any possibility. Please advise.
Can’t see, to blurry why dont you zoom before talking?
.
can any of you peeps help me, Ive got code here
#include
using namespace std;
int start() {
cout < < "Guess the hidden number [1,500]" << endl; int const hidden_number = 50; return ( hidden_number); } int main() { start(); int guess; for (int gss = 0; gss >0; gss++)
{
cin >> guess;
if (guess < hidden_number) { cout << "guess higher" << endl; } if (guess > hidden_number) {
cout < < "guess lower" << endl; } if (guess == hidden_number) { cout << "congrats it took you " << gss << " guesses" << endl; break; } } int Itemp; cin >> Itemp;
return 0;
}
for some reason hidden number is unidentified. any help would be appreciated. New to functions. Thanks
what does the %.2f means?? The float with 2 decimal places??
what about other types in the parameters…like strings or char
Thanks for everything, I will follow that channel.
The tutorial was good, I just couldn’t see those small letters.
Good tutorial but you made it a bit complicated. Could have been much easier just to explain the concept
Am I able to pass more than 2 arguments into a function?
You miss Command line arguments !.
why the variable can store the value
so I googled euros/dollar exchange rate and now they’re different, cause the market never fluctuates…….
I’m surprised your compiler isn’t warning you about assigning doubles into float variables. I thought the literals defaulted to double when you don’t specify “f” after them. For example: float europrice1 = 1.00f;
BUCKY CAN U HELP ME PLS
/* Bucky can u check into this code pls…what’s wrong with this ???????Whenever i run this . … no matter wat i give as user inputs in this piece scanf(” %.2f”, &dollar1);
eg. $2.00 or whatever after ENTER it only gives > .0.00 USD = 0.00 Rupee < */ #include
#include
void convertToRupee(float dollar);
int main()
{
float dollar1;
printf(“Converting Dollar to Rupeesn”);
printf(“Enter Dollar Amount :$”);
scanf(” %.2f”, &dollar1);
convertToRupee(dollar1);
return 0;
}
void convertToRupee(float dollar){
float rupee = dollar * 66.84;
printf(“%.2f USD = %.2f Rupeen”,dollar,rupee);
return;
}
how can you execute several different functions in random order?
What if you have two functions ?
hey i want to write a function that gets a string and it represents a number and it returns that number the program signiture is int str2int(char* str) how do i do that?????please help me
how can i find minimum and maximum value for N numbers by using parameter passing in C programming ??
A black jack game!
plz if anyone has the code. with header.h, main.c func.c?
why you wrote .2f
Excellent tutorials, keep up the great work!
u fucking rock bucky
Thank you very much understood to the last drop <3
holy crap. you are a better at explaining this than my college professor. Thank you
So arguments is just only piece of information from variable
how would i use scanf or fget here???
hey.. i wana know something.. why do i need a new void function to do
this? i mean, i’ve tried doing this equation in just one function
without (Void) and it worked.. so what’s the point from passing it to
another function?
it’ s 1.07 now :______(