Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » I Learn Some Basic C++!
Re: I Learn Some Basic C++! [message #392157 is a reply to message #392156] Wed, 24 June 2009 22:14 Go to previous messageGo to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma:
General (4 Stars)
andr3w282 wrote on Wed, 24 June 2009 21:52

erm BEDMAS?

Brackets
Exponents
Division
Multiplication
Addition
Subtraction


top to bottom, that's like grade 9 math ...

All languages follow this.. just like your calculator

5*5+2 = 27
5*(5+2) = 35



How would i write thme out in c++? as in how do i knwo which go in abckets and which can i place next to each other?
for example

4 * x (1 + 2) lets pretend thios si teh rite way to write it
how would i know that?a and end up like

1 + 2 (4 * x0 or something..its hard for me to explain

or maybe even

10 * x + 5

[Updated on: Wed, 24 June 2009 22:16]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Your daily commute to work!
Next Topic: Virus
Goto Forum:
  


Current Time: Mon Nov 25 06:37:39 MST 2024

Total time taken to generate the page: 0.01033 seconds