Thread: a n00b

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Fresno CA
    Posts
    19
    Rep Power
    0

    a n00b


    where would a biggenner go to to learn the basics of c, c++, obj-c, or c#? where do you start? If someone could link me to some good tutorials I would appreciate it! ^_^

    Comments on this post

    • Gran Roguismo agrees
    • JimmyGosling agrees
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    USA
    Posts
    286
    Rep Power
    13
    http://www.cprogramming.com
    http://www.xtremejava.com/books/index.html (download and read "Thinking in C++", 2nd Ed., Volumes 1 and 2)

    Also, Google for C/C++/whatever tutorials. They exist in abundance on the web.

    Good luck,

    Comments on this post

    • Gran Roguismo agrees
    Jon Sagara

    "Me fail English? That's unpossible!"
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Location
    On a screen near you
    Posts
    498
    Rep Power
    13
    where do you start?

    Code:
    int main(){
    
    }
    :)


    Mark

    Comments on this post

    • Gran Roguismo agrees
    100 trillion calculations per nanosecond
  6. #4
  7. No Profile Picture
    Your Friend
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    9
    Rep Power
    0
    Originally posted by Marky_Mark



    Code:
    int main(){
    
    }
    :)


    Mark

    :) Should be either:

    Code:
    int main(){
    return 0;
    }
    or...

    Code:
    void main(){
    
    }
    for good programming habits.... ;)

    Comments on this post

    • Gran Roguismo agrees
  8. #5
  9. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    For truely good habits, you should never use void main().
    The point of using int main() is to return a success/failure code back to the operating system upon exit of the program. If you use void main() (which some compilers will complain if you do) then you are passing nothing back to the os.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Location
    On a screen near you
    Posts
    498
    Rep Power
    13
    Void main is used in Windows programming and int main is the standard de facto for system stuff


    Mark

    Comments on this post

    • Gran Roguismo agrees
    100 trillion calculations per nanosecond
  12. #7
  13. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    What kind of applications do you write with void main in windows?
    Granted, the microsoft compiler will not complain about you using the void main contruct, but if it is a windows program (at least with MFC) then you are using the CApp class for C++ and int WinMain() for C.

    If I am wrong on this, please let me know.
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Location
    On a screen near you
    Posts
    498
    Rep Power
    13
    Im talking about sample code i read from microsoft


    Mark
    100 trillion calculations per nanosecond
  16. #9
  17. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jul 2001
    Location
    Oslo
    Posts
    1,516
    Rep Power
    15
    As for learning C, start by reading the bible until you know it by heart: http://www.amazon.com/exec/obidos/AS...267993-4448103

    You are not a true C-programmer until you have read it.

    Comments on this post

    • Gran Roguismo agrees
    --
    Regards
    André Nęss

    Puritanism: The haunting fear that someone, somewhere may be having fun
  20. #11
  21. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    Love that red picture on there
    ANSI C
    :D
  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jul 2001
    Location
    Oslo
    Posts
    1,516
    Rep Power
    15
    So it turns you on too? :D
    --
    Regards
    André Nęss

    Puritanism: The haunting fear that someone, somewhere may be having fun
  24. #13
  25. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    Oh yeah,
    love that word, ANSI :D
    ANSI C,
    ANSI SQL. It just gives me chills all over. lol

IMN logo majestic logo spyfu logo threadwatch logo seochat tools logo