Thread: Function returns more than one value... tuto

  1. #1
    Registered User
    Join Date
    Sep 2016
    Posts
    3

    Red face Function returns more than one value... tuto

    hello, I'd like share you this little youtube tutorial that can help you whene you want encode functions returns more than one value ... that's the video link : algorithm : function return more than one value - YouTube

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    So... you discovered structs... well done.

    Sorry if I seem a bit unimpressed, but this knowledge is basic for those of us who program in C even periodically.

    If you want any tips about the video, try to make the lighting better. You're using a whiteboard, and your light shines right off it into your camera.
    Also try to minimize the sounds/noise( such as your chair moving/creaking), we don't need to hear that.
    You should also get used to writing faster( but just as cleanly at least ), people don't like waiting for you to write the code. That or you could pre-write then and reveal them as you progress.

    * I should point out though that this isn't an algorithm. An algorithm is, in loose terms, a series of precise instructions for achieving a specific goal. What you're using in the video is a feature of the C language. Not all languages support structs and/or not all languages support returning structs from functions.
    Last edited by GReaper; 11-15-2016 at 08:27 PM.
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. function that returns string
    By nik2 in forum C Programming
    Replies: 3
    Last Post: 02-08-2010, 11:24 AM
  2. Function that returns a class...
    By cjmdjm in forum C++ Programming
    Replies: 16
    Last Post: 02-21-2009, 03:21 PM
  3. function returns 0
    By alyeska in forum C++ Programming
    Replies: 11
    Last Post: 11-04-2008, 03:15 AM
  4. Function that returns string
    By epboyd in forum C Programming
    Replies: 16
    Last Post: 04-26-2008, 07:55 AM
  5. function returns int *
    By aripata in forum C Programming
    Replies: 1
    Last Post: 09-06-2001, 07:27 AM

Tags for this Thread