Official CS50x Thread (Free Online Harvard Programming [C, PHP, HTML, Javascript, SQL...] Courses

End Cruelty

Yuffie butter!
Joined
Mar 14, 2014
Messages
6,024
Reputation
720
Daps
9,275
Reppin
Gaia
i totally spaced on this course because i was actually in school and focused on other things. I've borrowed a book to teach myself java and I've just started. I'm entirely new to programming but I just wanted to ask brehs in general..why do you personally think is it worth learning and why?
 

blackslash

Superstar
Bushed
Joined
Oct 9, 2012
Messages
17,946
Reputation
-1,965
Daps
25,307
On C. In Week 1, the final first test is called Mario then the second is the "change" test.
hey breh help me out a lil

how do i get C to print the user's integer input

(Im doin the mario thing in pset1 btw)
 

Liu Kang

KING KILLAYAN MBRRRAPPÉ
Supporter
Joined
May 3, 2012
Messages
13,748
Reputation
5,513
Daps
29,900
hey breh help me out a lil

how do i get C to print the user's integer input

(Im doin the mario thing in pset1 btw)
So what do you want exactly ?
Print the number the user entered ? If so, it's printf(%d) after declaring the variables obviously.
 

blackslash

Superstar
Bushed
Joined
Oct 9, 2012
Messages
17,946
Reputation
-1,965
Daps
25,307
So what do you want exactly ?
Print the number the user entered ? If so, it's printf(%d) after declaring the variables obviously.
thnx

Also Im not quite understanding how i print out the hashtag image..

Now I dnt want u to solve the problem for me but Im jus not quite getting how I get a hashtag pyramid to show up in this thing

Thanks in advance
 

Liu Kang

KING KILLAYAN MBRRRAPPÉ
Supporter
Joined
May 3, 2012
Messages
13,748
Reputation
5,513
Daps
29,900
thnx

Also Im not quite understanding how i print out the hashtag image..

Now I dnt want u to solve the problem for me but Im jus not quite getting how I get a hashtag pyramid to show up in this thing

Thanks in advance
You have to print spaces and hashes.
For one height of the pyramid, there is a corresponding width : for example with a 5 levels high pyramid
Code:
    ##
   ###
  ####
 #####
######
Then you do the math.

Brehs...is it too late to take advantage of this?
Nah. I thinkg the whole stuff is due to the end of 2014. But you also can do for fun.
 
Last edited:

Silkk

Thats My Quarterback :to:
Joined
May 2, 2012
Messages
194,671
Reputation
19,875
Daps
491,874
Good to see y'all still at it

As for me :beli:
 

dontreadthis

philly.
Joined
May 6, 2012
Messages
11,510
Reputation
2,264
Daps
46,441
hey breh help me out a lil

how do i get C to print the user's integer input

(Im doin the mario thing in pset1 btw)
from the sounds of it you might be looking at it how I was at first which was giving me problems. without doing too much for you they want you to do this using loops within loops. you've got to create the pyramid (user inputted variable) lines high. so say if the user types in 4, that's 4 lines or 4 times a loop with \n should be run. as for the hashes and spaces, in the same line of thinking as the height of the pyramid, you want to run the printf() of a hash and a space a certain number of times (they tell you the formula/pattern in one of the videos). another thing that helped is when I was starting off I used the letter 'a' as a placeholder for spaces and 'b' for hashes just so when I was running it and changing things by trial and error it was easier to count the total spaces and hashes. also helps if you get a pen and paper and try to trace step by step why you're output is doing what it is, it makes it a lot clearer when you break it down.

they really throw you right into the mix from the start in this but it's nothing a few google searches or questions on here or their reddit can't get you through.
 

GoldenGlove

😐😑😶😑😐
Staff member
Supporter
Joined
May 1, 2012
Messages
59,530
Reputation
5,725
Daps
140,146
Anybody think I can finish all of this by Dec. 31st? :guilty:

It's saying that there will be a new course for this that starts on Jan. 1st, 2015, but I got in this for free of course
 

PS5 Pro

DC looking a 1/2 seed right about nuh
Joined
Feb 28, 2013
Messages
31,609
Reputation
-10,523
Daps
21,833
Reppin
The Original Rec Room Gang
Anybody think I can finish all of this by Dec. 31st? :guilty:

It's saying that there will be a new course for this that starts on Jan. 1st, 2015, but I got in this for free of course
I totally forgot aBOUT this :damn:

I signed up for a few classes. Used an email I hardly use now, just peeped and they been trying to get a hold of a nig :to:
 

GoldenGlove

😐😑😶😑😐
Staff member
Supporter
Joined
May 1, 2012
Messages
59,530
Reputation
5,725
Daps
140,146
I totally forgot aBOUT this :damn:

I signed up for a few classes. Used an email I hardly use now, just peeped and they been trying to get a hold of a nig :to:
:ufdup:

I'm a just start it this week and if I don't finish it by the 31st that's cool too cause they let you continue, just not get the certification for it.
 

Liu Kang

KING KILLAYAN MBRRRAPPÉ
Supporter
Joined
May 3, 2012
Messages
13,748
Reputation
5,513
Daps
29,900
Shamelessly upping this.
edX have now a new app that lets you get plenty of free courses (included cs50). I hope my lazy ass will stick around this now that I can watch that on my tablet.
- android : https://play.google.com/store/apps/details?id=org.edx.mobile
- iphone : https://itunes.apple.com/us/app/edx/id945480667

Only thing that is a little annoying is that the vids are not HD and it's hard to properly see what's happening on the screen on little tablets. Good thing they are subtitles for everything.

On to week 0 :beli: Again :beli:
 

Regular_P

Just end the season.
Joined
May 1, 2012
Messages
80,271
Reputation
10,131
Daps
215,138
Shamelessly upping this.
edX have now a new app that lets you get plenty of free courses (included cs50). I hope my lazy ass will stick around this now that I can watch that on my tablet.
- android : https://play.google.com/store/apps/details?id=org.edx.mobile
- iphone : https://itunes.apple.com/us/app/edx/id945480667

Only thing that is a little annoying is that the vids are not HD and it's hard to properly see what's happening on the screen on little tablets. Good thing they are subtitles for everything.

On to week 0 :beli: Again :beli:
I started this up again about a week ago. :pachaha:
 
Top