Reputation: 159 Stalwart
- Author w/DIC++
- Active Posts:
- 1,400 (0.63 per day)
- 13-June 08
- Profile Views:
- Last Active:
- Jul 06 2014 06:52 AM
- OS Preference:
- Who Cares
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Dream Kudos:
Posts I've Made
Posted 4 Jun 2014C++ FAQs topic (pinned at top of forum): http://www.dreaminco...c/32943-c-faqs/
There's a link in there.
In his defense, the snippet links don't work anymore.
To his question, if windows, start here: http://msdn.microsof...3(v=vs.85).aspx
For linux, and I only know of this way, perhaps someone knows another way, you should start at: ANSI escape sequences and color codes
Posted 1 Jun 2014What Ryano said
Posted 1 Jun 2014In my opinion, the most important thing is never knowing a language. Obviously, you need to learn at least one to a sufficient level to be a developer, but I believe we spend too much time on the word language. In a way, we've created a duality in how we learn and perceive. When you start talking about Computer Science, it's almost entirely bereft of code specific to any platform because it should apply to all platforms. So what's my point with this? My point is that every programming language is essentially the same. The concepts inherent to each programming language are exactly the same. All languages have three things: Variables (Data Storage), Input/Output (IO Systems) and Functions (Processes). In reality, C++ and Java aren't that different. Neither is C++ and Visual Basic. What makes them noticeably different is syntax. Syntax however is something dependent on the people that make the programming language. It doesn't change the underlying concepts.
So, What is my ultimate point with this paragraph?
My point is: The most important thing I would suggest is not learning a programming language, it would be altering your thought process to refer to concepts instead of implementations. Abstract Types instead of Standard Templates. If you can master that, then any programming language will simply become a set of syntax rules.
Posted 1 Jun 2014I think he's asking how a Queue works. Were you not allowed to use the Queue class found in the Standard Template Library?
If you just want to know how a queue works, imagine a line in a grocery store. First in, First out. First one to the line goes first, second one goes next. Someone comes up in the back and waits, but they won't go until the two in front of them go. A queue is just a template container for a First In First Out line like any line you're used to standing and waiting in.
Also, if you're implementing a queue, you only need 2 functions, maybe 3 if you want to be fancy. They are Enqueue (add), Dequeue (remove) and if you want Peek (return the next in line without removing it). Also, listen to Baavgai and use linked lists and be happier.
Posted 1 Jun 2014My google foo is weak currently so I can't find the quote for the C standard, but here is the quote for the C++ standard:
Quote3 The grouping of operators and operands is indicated by the syntax.(See 72 Below) Except as specified
later (for the function-call (), &&, ||, ?:, and comma operators), the order of evaluation
of subexpressions and the order in which side effects take place are both unspecified.
72) The syntax specifies the precedence of operators in the evaluation of an expression, which is the same
as the order of the major subclauses of this subclause, highest precedence first. Thus, for example, the
expressions allowed as the operands of the binary + operator (6.5.6) are those expressions defined in
6.5.1 through 6.5.6. The exceptions are cast expressions (6.5.4) as operands of unary operators
(6.5.3), and an operand contained between any of the following pairs of operators: grouping
parentheses () (6.5.1), subscripting brackets  (184.108.40.206), function-call parentheses () (220.127.116.11), and
the conditional operator ?: (6.5.15).
Within each major subclause, the operators have the same precedence. Left- or right-associativity is
indicated in each subclause by the syntax for the expressions discussed therein.
C standard (ISO 9899) P 67. Clause 6.5. Point 3.
Got your back.
- Member Title:
- It's That Guy
- 25 years old
- April 2, 1989
- Never, Never Land.
- Programming, Gaming, Hanging Out, Chatting, Blogging, Forum Posting.
- Full Name:
- Years Programming:
- Programming Languages: