hey buck well so im new to this stuff, have you made any videos involving 'harder' combination problems? by combination i mean like all of the past videos combined like switch-looping or something.
the people that disliked this clearly have no f**king idea what hes talking about but other than that HOW COULD YOU NOT LIKE THESE THINGS HE IS TEACHING YOU I MEAN REALLY COMEEEE ONNNNN!!!!!!
hello sir, how do i put loop in a loop? i got this problem.. for example..when i press the on it will activate sumthing for 20 sec after that it change to off automatically.. any idea? hope to hear from u.. thank you.. btw great video..
Here are some of my code.. while(1) //Repeatedly { if (PORTDbits.RD1==0) //sw0 pressed start sound { while (PORTDbits.RD0==1) //do repeat if sw1 not pressed { PORTDbits.RD6=0; //press 1(sw0) Green Off, Red On PORTDbits.RD4=1; //press 2(sw1) Green On, Red Off PORTDbits.RD3=0; //press 2(sw1) sound on Delay1sec(); PORTDbits.RD3=1; Delay1sec(); } PORTDbits.RD6=1; //Green On PORTDbits.RD4=0; //Red Off PORTDbits.RD3=0; //sound off } } }
i want to make a program on which the user enters the number with which the counter starts and ends. i have done the printf and scanf functions (like ''type the first number:",''type the second number:'',scanf("%d", number1),("%d", number2).
thanks in advance. please post additional instructions.
He was using Dev C++ here.. but I would recommend Code::Blocks instead because Dev C++ uses old/outdated compilers that do not follow current standards.
hes using dev c++ ..its good but not the best... the "blue screen" wat u referred to is turbo c.. its quite good... but a bit erratic sumtyms.. id suggest u use turbo c++ compiler.. its damn good
thanks a lot..i need some help from you. can you explain to me what this code dose? void main() { int i,j; printf("\1\n"); for ( i = 1; i <= 10; i++ ) { for ( j = 1; j <= i; j++ ) printf("%c%c",97,97); printf("\n"); } } ..why every time it has new line, there is another 2 extra a's from previous line?
thanks a lot..i need some help from you. can you explain to me what this code dose? void main() { int i,j; printf("\1\n"); for ( i = 1; i <= 10; i++ ) { for ( j = 1; j <= i; j++ ) printf("%c%c",97,97); printf("\n"); } } ..why every time it has new line, there is another 2 extra a's from previous line?
Bucky, youre amazing. In lecture my prof took about 6 hours to do loops, and you managed to make it easier in just over 6 minutes. Big help. Keep it up!
I was thinking about just that a while ago....I think the "++" operator is only used when you need to increment by 1. for incrementing by 2, you would need to use counter+=2, or counter=counter+1.
just try it again, and if it's still wrong, leave it as it is. maybe next time at a different program, you'll make it. just don't panic if you don't understand sg. you can learn it later, don't need to rush...
why is it necessary to put counter =1; in the for statement before counter <20? It seems to me counter < 20 should take care of that. I tried to exclude counter = 1 and errors.
How About NESTED LOOPS?
edwinsai 4 weeks ago
What if you want 30 lines to appear? (note : lines, not the actual value) What funciton do you use?
tadm123 1 month ago
@tadm123 you need a loop
bondservant4Him 1 month ago
How can i program it so the user is the one who enters the increment he wants?
tadm123 1 month ago
hey buck well so im new to this stuff, have you made any videos involving 'harder' combination problems? by combination i mean like all of the past videos combined like switch-looping or something.
taetantantan 1 month ago
OR
counter++; does the same thing but shorter
MrVidposter101 2 months ago
@MrVidposter101 He did say counter++. Though counter++ only adds 1
harlytrav 2 months ago
the people that disliked this clearly have no f**king idea what hes talking about but other than that HOW COULD YOU NOT LIKE THESE THINGS HE IS TEACHING YOU I MEAN REALLY COMEEEE ONNNNN!!!!!!
MaxOp1234 2 months ago 2
Hey Bucky this is totally unrelated to the matter at hands but which do you prefer macs or pc?
young2theb 3 months ago
This has been flagged as spam show
hello sir, how do i put loop in a loop? i got this problem.. for example..when i press the on it will activate sumthing for 20 sec after that it change to off automatically.. any idea? hope to hear from u.. thank you.. btw great video..
qAyyUm 5 months ago
This has been flagged as spam show
Here are some of my code.. while(1) //Repeatedly { if (PORTDbits.RD1==0) //sw0 pressed start sound { while (PORTDbits.RD0==1) //do repeat if sw1 not pressed { PORTDbits.RD6=0; //press 1(sw0) Green Off, Red On PORTDbits.RD4=1; //press 2(sw1) Green On, Red Off PORTDbits.RD3=0; //press 2(sw1) sound on Delay1sec(); PORTDbits.RD3=1; Delay1sec(); } PORTDbits.RD6=1; //Green On PORTDbits.RD4=0; //Red Off PORTDbits.RD3=0; //sound off } } }
Im using PIC18F4550.. somebody can help?
qAyyUm 5 months ago
thanks. thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.thanks.
alaax4max 5 months ago 3
He still has wooping cough, poor guy.
TheChatbug 6 months ago 9
Comment removed
siwlerdaoz 6 months ago
*N numbers
LightningHexagon 6 months ago
Here's a simple exercise:
Write a program that allows the user to enter N number then calculate the
arithmetic mean.
PS: pm for code
LightningHexagon 6 months ago
Woops, I replied before watching the video.
ShakkIsLife 7 months ago
@0121ryanh117
Or to increment by 1, use
'variable++'
ShakkIsLife 7 months ago
Thanks a lot!!! Its realy helpfully.
WinXPproff 8 months ago
And can i don`t use 3 arguments?
TheAplteam 10 months ago
i want to make a program on which the user enters the number with which the counter starts and ends. i have done the printf and scanf functions (like ''type the first number:",''type the second number:'',scanf("%d", number1),("%d", number2).
thanks in advance. please post additional instructions.
DJGPR2 11 months ago
This has been flagged as spam show
for(counter = 1;counter < 99999999;counter++){
hahah
mokaey 1 year ago
for(counter = 1;counter < 99999999;counter++){
mokaey 1 year ago
Thanx a lot ! Love you ,man !
mmaassiikk 1 year ago
thnx :D
giannamarielanete 1 year ago
what softwre did u use ?? please reply .. I would like to use the same program instead of using the blue screen... thanks.. hope to get a reply.. :)
alexpunisher143 1 year ago
@alexpunisher143 he used dev C++
Ticomfreak 1 year ago
@alexpunisher143
He was using Dev C++ here.. but I would recommend Code::Blocks instead because Dev C++ uses old/outdated compilers that do not follow current standards.
IEOA 1 year ago
hes using dev c++ ..its good but not the best... the "blue screen" wat u referred to is turbo c.. its quite good... but a bit erratic sumtyms.. id suggest u use turbo c++ compiler.. its damn good
joelvis65 10 months ago
CS50.net
Jugdesi 1 year ago
thanks a lot..i need some help from you. can you explain to me what this code dose? void main() { int i,j; printf("\1\n"); for ( i = 1; i <= 10; i++ ) { for ( j = 1; j <= i; j++ ) printf("%c%c",97,97); printf("\n"); } } ..why every time it has new line, there is another 2 extra a's from previous line?
amh171 1 year ago
thanks a lot..i need some help from you. can you explain to me what this code dose? void main() { int i,j; printf("\1\n"); for ( i = 1; i <= 10; i++ ) { for ( j = 1; j <= i; j++ ) printf("%c%c",97,97); printf("\n"); } } ..why every time it has new line, there is another 2 extra a's from previous line?
amh171 1 year ago
i also got a problem that my program didnot execute
it give error code that is stdio.h file don`t find pls help me
i
angelprincessgal 1 year ago
This has been flagged as spam show
hi i wanna ask that how i can make a program that give factorial of the given number
angelprincessgal 1 year ago
hi
i wanna ask u something..
how we make a program that give the factorial of the given number
angelprincessgal 1 year ago
Hey, why is it that in C++ we can do for(int i = 0; i < 10; ++i) and int C we cant? We have to do int i; then do our for loop.
lDeadLoss 1 year ago
I suspect your name is Greg but not Bucky... B)
Am I right? lol
I love them both :)
BulletForMyTeachers 1 year ago
it is great
chrostop 1 year ago
bucky for life!
phunagewine 1 year ago
ty for teaching i got it a little now
allpogi 1 year ago
great tutorials even though i take a C course u teach better than that other lame teacher i got lol 5/5!!!
whymeproducz 1 year ago
Bucky, you're great at doing these tutorials keep it up.
toolband79 1 year ago
Great tutorials, it's very easy to follow
AutoRijeka 1 year ago
Bucky, youre amazing. In lecture my prof took about 6 hours to do loops, and you managed to make it easier in just over 6 minutes. Big help. Keep it up!
msatrakkoic1 2 years ago
Thanks Bucky, I had problems learning about for loops from my professor and you cleared it up for me!
DhDo74 2 years ago
is there other syntax in the counter++?? how bout i want it to increment by 2.?
stonechime18 2 years ago
I was thinking about just that a while ago....I think the "++" operator is only used when you need to increment by 1. for incrementing by 2, you would need to use counter+=2, or counter=counter+1.
shoofeer1 2 years ago 2
@shoofeer1 Correct. ;)
DIABLOVT12 2 years ago
mybe then u have to use like skip 2 or something
i dont know exactly
abujp1993 1 year ago
int counter = 0
should make it 0 3 6 9 instead of 1 4 7
I get it ... these videos really help a lot.
bboybram 2 years ago
Thank you
God bless you
lmiies 2 years ago
it will be nicenot to put 20 but 100000000000000000000000000
LOL XD
magombre 2 years ago
im usually a lazy as.s but dam today im learning and acutally getting it all
saxyd33 2 years ago 2
bucky..!!!
you're a big help!!
thanks.... :)
luileth 2 years ago 54
@luileth he is a huge help i agree
davidspiteri77 1 month ago
thanks BUcky. awesome.
larile14344 2 years ago
This has been flagged as spam show
if u guys want to see something cool,
put this in ur code:
for(YourInteger=1;YourInteger < 100000; YourInteger++){ printf("%d ", &YourInteger);
ScrapyDan 2 years ago
Buckey can you do a tutorial on nested while loops?
akcire6 2 years ago
i run the above code exactly the way he said and i get 2293572
it doesnt make sense i have no idea why can someone help me please??
shad79 2 years ago
it has something to do with the
printf("%d\n", counter);
part!
sandorlev 2 years ago
and how can i solve it?
shad79 2 years ago
just try it again, and if it's still wrong, leave it as it is. maybe next time at a different program, you'll make it. just don't panic if you don't understand sg. you can learn it later, don't need to rush...
sandorlev 2 years ago
Which compiler is he using. I am now using turbo c and i want to install also this can i use both without any fluctuations?
ferozkumar 2 years ago
He is using DevC++, if Im not mistaken. You can Google it.
woyzz128 2 years ago
hi..what should I type inside the "scanf" if i want the user to enter the letter instead of number. for example..
printf("Do you want to repeat the process,y/n ?");
scanf();
thankyou.
amh171 2 years ago
scanf("%c",&character);
simeesta 2 years ago
how about usng "%c", in loop can you do that
paulpartdude 2 years ago
no you cant do that
%d is a place hold that will be replaced with the value of the integer (counter)
if you use %c the character value is expected which is not a number
ducktails57 2 years ago
also i noticed that it is uneccessary to declare a value for counter other than in the for statement.
bw800402 2 years ago
why is it necessary to put counter =1; in the for statement before counter <20? It seems to me counter < 20 should take care of that. I tried to exclude counter = 1 and errors.
bw800402 2 years ago
for needs three arguments
dave422x 2 years ago
but you have infinite negative numbers it would be crazy to no specified. i tried to exclude it too but it dint work.
pliskinn0089 2 years ago
I didn't know that. counter is easier lol
MasterMind300 2 years ago