Thread: Your first post.

  1. #16
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Mine was on the old boards, asking the best way to access a PAB file. I am still awaiting a response.

  2. #17
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    I don't recall asking a question for quite a while. Hell, I don't ever remember asking a question. But I do remember making quite a few posts that make me cringe. I wasn't exactly a genius with C, it's a wonder I didn't get burned very much for being stupid. I don't remember if my very first was on the old boards or not, but I had to dip into the archives to find my first here (edited because the archives remove formatting):
    Code:
    Prelude                                    09-11-2001, 02:57 PM
    
    void func_name()
    
    void as a return type should be used when everything you plan 
    to do with the data in the function is to be used only in that 
    function. Should you choose to give the function parameters, 
    such as adding two numbers: 
    
    void add_two(int x, int y)
    
    then you plan to add your two numbers and then if you want to 
    print them you would do so inside that function.
    
    int func_name()
    
    A data type besides void tells the function that it is to send an 
    item of data back to the part of your program that called the 
    function. Say you call this function with a return type int from 
    main():
    
    int add_two(int x, int y){
      int sum;
      //do stuff
      return sum;
    }
    
    using return sum; you told the function to send sum back to main 
    where you can assign it to a variable local to main and then print 
    it out or modify it. sum itself does not change until you call the 
    function again, you just give the value of sum to another variable 
    so that you can use it in main. 
    
    You can send any number of data types back to the function that 
    called your function. int, char, float, double, pointers, etc...
    
    Here's the full program to add two numbers using a return type 
    of int:
    
    #include <stdio.h>
    
    int add_two(int x, int y);
    
    int main(){
      int one, two, three;
      printf("Enter two numbers: ");
      scanf("%d%d", &one, &two);
      three = add_two(one, two);
      three++;
      printf("The sum of your two numbers is %d", three);
    
      return 0;
    }
    
    int add_two(int x, int y){
      int sum;
      sum = x + y;
    
      return sum;
    }
    
    
    The output of this program is the sum of the two numbers the 
    user entered in plus one.
    
    Hope that helps
    
    -Prelude
    It could have been worse, I suppose.
    My best code is written with the delete key.

  3. #18
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Haha, Prelude diligently answers questions as the terrorist attacks occur. This is the kind of leadership we need!

  4. #19
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    http://cboard.cprogramming.com/showt...5&page=2&pp=15

    Who knows(I like how I sounded like I knew, JUST how long it took to become an expert at all the information covered on that site )
    The world is waiting. I must leave you now.

  5. #20

  6. #21
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    Quote Originally Posted by Govtcheez
    Haha, Prelude diligently answers questions as the terrorist attacks occur. This is the kind of leadership we need!


    wow... I'm surprised my first post was to help somebody:
    http://cboard.cprogramming.com/showthread.php?t=39464

    I was referred here by a friend I knew in High School... He hasn't posted here in years...
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  7. #22
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Haha, Prelude diligently answers questions as the terrorist attacks occur.
    I didn't even notice the date on that post.
    My best code is written with the delete key.

  8. #23
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    Here was my first thread (post):

    A little help

    --------------------------------------------------------------------------------
    05-25-2005, 07:34 PM Hey, I am a new member. Also, i'm new to programming. I just wanted to know if my software & book are good sources to learn from. The software is called Borland C++ & Data Tools v4.5. The book is called An Introduction to Computer Science with C++. I am pretty sure the software is a little outdated (1997?). Just wondering if this would be a good place to start. Thanks.
    Now i have like 50 books, and Visual C++ .net. Very odd how life passes by.

  9. #24
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    You bought 50 C++ books in 7 months?
    Sent from my iPadŽ

  10. #25
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    No, lol, i'm just exagerating. I have like 5....so if you times that by 10 it would equal 50. I want to be so good at programming that my milk dances for me but it's going to take a while......wait i don't drink milk. LOL

  11. #26
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    It's not my powers in programming that makes my milk dance for me... I just managed to sneak some of that goo off the set of Ghostbusters 2. It really works.
    Sent from my iPadŽ

  12. #27
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    My first post was a question. I suppose it could have been worse.

    -psychopath
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  13. #28
    Moderately Rabid Decrypt's Avatar
    Join Date
    Feb 2005
    Location
    Milwaukee, WI, USA
    Posts
    300
    Mine was definitely a question, and pretty embarrasing at that:
    http://cboard.cprogramming.com/showthread.php?t=62386
    (I don't know how to make a word in the post into a link.)

    I believe Salem's title is just a joke - he's not banned.
    I noticed that he was still on the list of moderators, but hadn't posted in a while (I pretty much stay on the C++ board so he could have been posting elsewhere), changed the title to banned and lost the avatar.
    I half-expected him to be waiting for someone to ask why he was banned before he started posting again.
    There is a difference between tedious and difficult.

  14. #29
    Bob Dole for '08 B0bDole's Avatar
    Join Date
    Sep 2004
    Posts
    618
    yah we had a post about it, I had my thing say banned for a while. It's funny.
    Hmm

  15. #30
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    http://cboard.cprogramming.com/showthread.php?t=4860

    My first thread.
    I made two answer posts before that.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help (Trying to post message)
    By mrkm in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 10-06-2003, 04:05 PM
  2. Post your Best Text Adventure
    By Joe100 in forum Game Programming
    Replies: 3
    Last Post: 08-15-2003, 05:47 PM
  3. Auto POST
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 06-07-2003, 10:42 AM
  4. post update
    By iain in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-12-2001, 10:47 AM