Like Tree2Likes

New to Cprogramming

This is a discussion on New to Cprogramming within the General Discussions forums, part of the Community Boards category; Hi all, To become more familiar with a board I always introduce myself. I haven't found a general thread to ...

  1. #1
    Registered User wnieuwstraten's Avatar
    Join Date
    Aug 2011
    Location
    Sommelsdijk, Netherlands
    Posts
    6

    New to Cprogramming

    Hi all,

    To become more familiar with a board I always introduce myself. I haven't found a general thread to do this, but I'm sorry if there was one.

    As a start: I'm a 22 y/o male from The Netherlands. Personally I'd like to describe myself as a creative person with too many ideas or too less time. I've got a degree in chemistry and got too many hobbies to name. The hobby I currently have for most of my free time is ant keeping. i.e. having ants as pets.

    I've always had many ideas which needed some (good) programming. Being inspired by many independent developers lately, I'm thinking of learning real programming now. I've looked in the pro's and con's of several programming languages, mainly Java and C++ and came to the conclusion C++ matches my needs mostly. I should be considered completely new to programming. The closest thing I did to programming was making websites with PHP. As a result, I've got some (minor) experience in OOP. I'm also experienced in SQL, but probably can't use that for my current projects.

    I'm hoping to learn C++ with this website, already read many of the tutorials and I had Code::Blocks installed for some code testing. Once I got to somewhat more advanced tutorials, CB didn't seem to suit my needs, being too simple (I guess). Now, I've got Visual C++ 2010 Express as IDE, hoping this will help me. And of course I'm hoping the nice people at this forum can help me. :-)

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    Welcome

    Once I got to somewhat more advanced tutorials, CB didn't seem to suit my needs, being too simple (I guess)
    I'm quite curious to follow a C++ tutorial for which you found C::B insufficient. Can you point to it ?
    Also, the compiler you're most probably using C::B (mingw) which is the Windows port of gcc, can't be called insufficient from any angle.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  3. #3
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Hello and welcome to the forum. As you continue to learn C++ you will most likely need to acquire a good book. Here is the list of C++ Book recommendations. Additionally, you will want to look through the Posting Code Announcement and Forum Guidelines to ensure you get the maximum helpful responses for your future programming questions.
    Codeplug likes this.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  4. #4
    Registered User wnieuwstraten's Avatar
    Join Date
    Aug 2011
    Location
    Sommelsdijk, Netherlands
    Posts
    6
    I didn't meant it as being insufficient, although I find it hard to explain my problem. The main problem of C::B I found at this moment was a lack in readily available information on the internet. Since I'm learning the basics, I like to have as much information available to me as possible. I chose the wrong words for this, I see this now. :-)

    Thank you AndrewHunter. I've been looking for some good books for a while but figured it couldn't hurt first trying to learn some basics from the internet. Also, I've been familiar with posting code on forums as I'm somewhat experienced in PHP and other web-oriented languages. Formatting of code is very important, I agree! I've learned this the hard way, before learning about how languages are read by computers, I thought it would save time to omit tabs and spaces. I had a syntax error and found it after dissecting the entire code into a nicely formatted view.

    Also, I've been a moderator on many forums for years now, including some huge forums and a forum which discussed PHP/MySQL and such. Posts without proper formatting were instantly removed for known reasons.
    Last edited by wnieuwstraten; 08-21-2011 at 12:25 PM. Reason: Added some

  5. #5
    Registered User
    Join Date
    Mar 2007
    Posts
    142
    > The hobby I currently have for most of my free time is ant keeping. i.e. having ants as pets.

    Just few hours ago I started thinking about the hobbies outside of computer screen kids today could have and I was sure such hobbies don't exist any more. That's why I find your post rather interesting. I was growing up in the seventies and eighties and I was 22 in '89. Just fresh with my first PC and with C programming. A lot of kids back then collected stamps, pin badges and even paper napkins. Can you believe that?

    What worries me is when you said you have no time. Good Lord, it will only get worse. Once you start buying your own toilet paper and you're the one who is supposed to fix broken stuff in the house, when you have 50 phone calls in a single day and eventually the spouse, your own kids, their own problems, you'll find even less time for the cool pet projects. Brace yourself, or better, enjoy it while it lasts.
    Last edited by idelovski; 08-21-2011 at 12:25 PM.

  6. #6
    Registered User wnieuwstraten's Avatar
    Join Date
    Aug 2011
    Location
    Sommelsdijk, Netherlands
    Posts
    6
    > A lot of kids back then collected stamps, pin badges and even paper napkins. Can you believe that?
    Well, my hobby is quite unknown to most people, indeed, getting a lot of surprised reactions. It does seem to be gaining in popularity in my country. Ofcourse some of my hobbies are computer-related, but most of them are not, luckily. For my job I use the computer all day long and sometimes I do wish not to sit in front of this screen showing chemical structures and such. lol. I literaly grew up with computer. I even made my first website when I was around 8 years of age (ok, WYSIWYG, but still..).

    > What worries me is when you said you have no time. Good Lord, it will only get worse.
    Well, I've been living mainly on my own for the past few years, only spending time with my parents in the weekends and holidays. Currently I've got a full-time job and buying my own house. So the lack of time is mainly at the moment, when all has settled in some months, I will be able to spent several hours a day extra to my hobbies. My pets don't require that much time, though. They suffice with a once per week feeding and once a month adding water. They don't take up that much time, wouldn't it be for the forum I'm moderating on this subject. :-)

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by wnieuwstraten View Post
    I'm hoping to learn C++ with this website, already read many of the tutorials and I had Code::Blocks installed for some code testing. Once I got to somewhat more advanced tutorials, CB didn't seem to suit my needs, being too simple (I guess). Now, I've got Visual C++ 2010 Express as IDE, hoping this will help me. And of course I'm hoping the nice people at this forum can help me. :-)
    Please excuse me if I find this a bit curious... for C++ coding, code::blocks with mingw is one of the preferred platforms. While I will admit C::B is a tad clumsy to use and lacks important features (mainly resource editors) it is still highly regarded amongst even professional developers.

    Of course one of the ongoing problems with Open Source projects is that people want to write code but nobody wants to sit down and build help files... so often, as you point out, the documentation is lacking.

    Of course VS (free versions) have about the same limitations (no resource editors) and you should know that the VC++ compiler is not very good at following programming standards... It's Microsoft, they're going to do whatever they want...

    To work around most of C:B's shortcomings you should investigate...
    ResEdit Resource Editor - free resource editor for Win32
    Code::Blocks - Index (Product specific forums)
    MinGW | Minimalist GNU for Windows (Documentation and updates)
    http://en.cppreference.com/w/cpp
    http://www.cppreference.com/wiki/about/faq (downloadable C++ help file)



    Welcome to the forums... It's good to have someone as eloquent and congenial as yourself join up.
    Last edited by CommonTater; 08-21-2011 at 01:02 PM.

  8. #8
    Registered User wnieuwstraten's Avatar
    Join Date
    Aug 2011
    Location
    Sommelsdijk, Netherlands
    Posts
    6
    for C++ coding, code::blocks with mingw is one of the preferred platforms
    I found it easy to work with and was appealed by its simple looks, but the lack of documentation scared me off. For instance I tried installing (?) GLUT to C::B in my complete naivety and found it to be troublesome. But this probably is mainly because I'm very unfamiliar with the software. Regardless of it being completely premature to even try to do this. If C::B is this much recommended by you, I will keep on using this along with the MinGW compiler. I assume C++ is the same language regardless of the compiler and I should just learn to work with C::B. I like the open-source and independent environment of these initiatives, opposed to controlled software such as VS. Microsoft doing their own thing is a known bug in that company.

    Very many thanks to the helpful welcome I've received today, it is very nice to see this forum is still very active and has some very assisting members. I will try to obtain some of the books described in the links you've supplied and start reading. I will follow this forum as well, I might learn helpful things in the meantime. :-)

  9. #9
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,467
    Don't confuse library documentation with the IDE documentation. The latter is not responsible for the former. If anything could be lacking on this case was GLUT documentation.

    Welcome to Cboard.
    Codeplug likes this.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  10. #10
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    Quote Originally Posted by wnieuwstraten
    Regardless of it being completely premature to even try to do this.
    Maybe this will work.

    It was much simpler to set up in my linux distro though ( just had to put /usr/include as its residence).
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  11. #11
    Registered User wnieuwstraten's Avatar
    Join Date
    Aug 2011
    Location
    Sommelsdijk, Netherlands
    Posts
    6
    Don't confuse library documentation with the IDE documentation. The latter is not responsible for the former. If anything could be lacking on this case was GLUT documentation.
    Yes, of course, I was however expecting more people to have experienced the problems I had experienced. I found only little information with my current knowledge.

    Quote Originally Posted by manasij7479 View Post
    Maybe this will work.

    It was much simpler to set up in my linux distro though ( just had to put /usr/include as its residence).
    I did find this walktrough and used it as my main lead, but it did not seem to work properly after about 2 hours of trying. I signed up for this forum the next day.

  12. #12
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    Quote Originally Posted by wnieuwstraten View Post
    I did find this walktrough and used it as my main lead, but it did not seem to work properly after about 2 hours of trying. I signed up for this forum the next day.
    ..O..
    It is probably too outdated then.

    btw.... Did you try compiling a program using glut(&&OpenGL) from the command line to see if you've got the correct and complete library ?
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  13. #13
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Quote Originally Posted by wnieuwstraten View Post
    I found it easy to work with and was appealed by its simple looks, but the lack of documentation scared me off. For instance I tried installing (?) GLUT to C::B in my complete naivety and found it to be troublesome. But this probably is mainly because I'm very unfamiliar with the software. Regardless of it being completely premature to even try to do this. If C::B is this much recommended by you, I will keep on using this along with the MinGW compiler. I assume C++ is the same language regardless of the compiler and I should just learn to work with C::B. I like the open-source and independent environment of these initiatives, opposed to controlled software such as VS. Microsoft doing their own thing is a known bug in that company.
    Eh, selection of a development environment really comes down to a matter of taste as long as the compilers/IDE in question are standards compliant. As for me, I primarily use Visual Studio, and have for quite some time. In the areas that microsoft decides to do "its own thing" this is documented and readily available along with the reason as to why.

    Both C::B and VS provide a solid base for programming, feel free to explore both and then select the one you feel is your best fit. I personally prefer VS because I am use to Microsoft's layout and it feels intuitive for me. Additionally, IMO you are going to be hard pressed to beat the documentation provided by MSDN, and their SDK's seamlessly integrate with VS making it easier to download and setup new tools, such as the XNA framework and DirectX support.

    Another bonus for VS, is you will have the same development environment if you decide to branch out and try other languages, such as C#, F, ect.

    Just my 2 cents.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  14. #14
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,467
    Quote Originally Posted by wnieuwstraten View Post
    I like the open-source and independent environment of these initiatives, opposed to controlled software such as VS. Microsoft doing their own thing is a known bug in that company.
    Ah, that didn't take long. It's alright. You'll get over it one day.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  15. #15
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by wnieuwstraten View Post
    I found it easy to work with and was appealed by its simple looks, but the lack of documentation scared me off. For instance I tried installing (?) GLUT to C::B in my complete naivety and found it to be troublesome. But this probably is mainly because I'm very unfamiliar with the software. Regardless of it being completely premature to even try to do this. If C::B is this much recommended by you, I will keep on using this along with the MinGW compiler. I assume C++ is the same language regardless of the compiler and I should just learn to work with C::B. I like the open-source and independent environment of these initiatives, opposed to controlled software such as VS. Microsoft doing their own thing is a known bug in that company.

    Very many thanks to the helpful welcome I've received today, it is very nice to see this forum is still very active and has some very assisting members. I will try to obtain some of the books described in the links you've supplied and start reading. I will follow this forum as well, I might learn helpful things in the meantime. :-)
    If you are just now starting the learning curve, I would suggest you don't try extending or modifying the installation... work through a good C++ textbook first ("Thinking in C++" is a good one) and get the hang of writing your own code before you even think of messing with third party libraries... Believe me you will do yourself no favours making this more complex than it needs to be...

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cprogramming
    By hello everyone in forum C Programming
    Replies: 4
    Last Post: 11-23-2009, 06:24 AM
  2. Changes at CProgramming.com
    By kermi3 in forum Windows Programming
    Replies: 1
    Last Post: 10-03-2002, 08:49 PM
  3. Changes at CProgramming.com
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-03-2002, 08:48 PM
  4. #cprogramming
    By Dual-Catfish in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 05-04-2002, 09:37 PM
  5. cprogramming.com age
    By gnu-ehacks in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-18-2002, 05:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21