Thread: Code for CS50 functions?

  1. #16
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by VENOM
    do you think I could get the same result by dragging and dropping folders as running this:
    No, you won't. The first command installs gcc and its dependencies. If you don't have a C compiler installed on that system, just downloading this library won't cut it. You would need to download and install a C compiler too.

    However, if you have a C compiler installed, then once you have cs50-library-c-3.1.zip, the third and subsequent steps will be the same (assuming the C compiler is gcc) whether you use wget to download the zip archive or downloaded it from your thumb drive (i.e., the second step).
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  2. #17
    Registered User
    Join Date
    May 2012
    Posts
    1,066
    Quote Originally Posted by VEN0M View Post
    @Andi. I already saw that but as I said earlier I do not have Internet. It would be kind of difficult to run wget without an Internet connection.
    Come on, it's not that difficult.
    Download the zip file on a computer with internet access, copy the zip file to the other computer and continue with the next step (unzip...).

    Bye, Andreas

  3. #18
    Registered User VEN0M's Avatar
    Join Date
    Jun 2012
    Posts
    16
    @laser great thanks! I will do that.

  4. #19
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by VEN0M View Post
    @Andi. I already saw that but as I said earlier I do not have Internet.
    How exactly can you say that in an online forum ?
    Whatever device you're logged in here from, download it there and transfer to where you have your compiler installed.

  5. #20
    Registered User VEN0M's Avatar
    Join Date
    Jun 2012
    Posts
    16
    Quote Originally Posted by manasij7479 View Post
    How exactly can you say that in an online forum ?
    Whatever device you're logged in here from, download it there and transfer to where you have your compiler installed.
    Yeah... I am on this with another device. Laser made the instructions quite clear in last comment...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. calling C functions from C++ code
    By starshiptrooper in forum C++ Programming
    Replies: 34
    Last Post: 02-17-2012, 11:05 AM
  2. Functions/code help!!
    By Makdaddy in forum C Programming
    Replies: 1
    Last Post: 12-08-2010, 12:11 AM
  3. Plz help me to include cs50.h and cs50.c into Code::Block
    By Huncowboy in forum C Programming
    Replies: 4
    Last Post: 03-09-2010, 10:05 AM
  4. How to code these functions?
    By Cicci in forum C Programming
    Replies: 15
    Last Post: 07-10-2007, 01:52 PM
  5. Loops OR Functions!! HELP WITH THIS CODE!!!!!!!!!!
    By WIshIwasGooD in forum C++ Programming
    Replies: 4
    Last Post: 10-24-2001, 12:49 PM