On the right track?

This is a discussion on On the right track? within the C++ Programming forums, part of the General Programming Boards category; I have changed al my arrays to C++ type std::array and it works just fine; I will use the C++ ...

  1. #16
    Registered User
    Join Date
    Jan 2011
    Posts
    101
    I have changed al my arrays to C++ type std::array and it works just fine; I will use the C++ version from now on.

    Thanks again for the help.

  2. #17
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,507
    Quote Originally Posted by JayCee++ View Post
    I have changed al my arrays to C++ type std::array and it works just fine; I will use the C++ version from now on.

    Thanks again for the help.
    Make sure to use its unique advantages too.
    std::array - Cppreference
    (I'm not sure.. but this^ seems to be incomplete; confirmation...anyone?)
    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. #18
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Quote Originally Posted by JayCee++ View Post
    Thanks for all the help, sorry to be a bit slow on the uptake but I was warned that having used BASIC for nearly 30 years it would be a hindrance in learning C++ - but we'll get there - eventually!!
    Be careful when trying to apply concepts from other languages to C++, or any new language for that matter. C++ provides for completely seperate pardigm then BASIC, and even though you know BASIC some of the techniques employed from your experience will lead you down the road to disaster in C++ and other advanced programming languages. If you understand 'How to program' you should apply those problem solving skills when learning C++, in a C++ matter; rather then a BASIC/C++ hybrid that you are currently using.

    For a good starting point I would suggest you look through the C++ Made Easy Tutorials available on this site. Just a quick glance through your code you are missing some fundamental concepts such as user defined types, that would greatly simplify this task.
    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.

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

Similar Threads

  1. sector per track
    By sunil21 in forum C Programming
    Replies: 1
    Last Post: 09-14-2003, 12:10 AM
  2. Am I on the right track
    By romeoz in forum C++ Programming
    Replies: 12
    Last Post: 07-07-2003, 11:10 PM
  3. Here I am going to ramble about something, just tell me if I am on the right track.
    By incognito in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 04-03-2002, 03:57 PM
  4. not on right track
    By Dena in forum C++ Programming
    Replies: 1
    Last Post: 02-23-2002, 07:03 PM

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