Play the games, create the levels

Topic, Me learning C++

Checkout our iPhone & iPad games!

You must register or log in to post a message.

SuperDog 14 years ago
  3.(3)^3=10
3.(3^3)=3.9
murtaza64 14 years ago
  @ marc... that sucks
(everything)
I think its 3.(3^3)=3.9
Hexicube 14 years ago
  3.3^3 is 35.937 lol
SuperDog 14 years ago
  marc your calculator fails it says that 3.(3)^3=35.937
Hexicube 14 years ago
  it's just incredibly hard to do, if you had the time and patience you could do it though.
I think for practicality, AS suits is well.
you could probably also have it analyze formulae with x in it...
my keyboard is broke too, I have to use an on-screen one to type x c v m , . ' and / :(
murtaza64 14 years ago
  true... then it is really hard to implement ooo then.
maybe look for a + for example then add the numbers to hte left and right of it.
Hexicube 14 years ago
  I wouldnt try splitting strings into a set of numbers and operators...idk how I would even do that...
murtaza64 14 years ago
  hey marc, what other functions could I implement?
maybe i could let it take long expressions with order of operations, but that would take some work... a lot of switching and loops
Hexicube 14 years ago
  yes, it appears so...
[edit] I fixed it, it thought that they were strings so put 4.5 on the end of 2...
Sillius 14 years ago
  Marc I think your calculator fails :D

"
2(2+4.5)(5/2)-2^5+2
2*24.5*2.5-2^5+2
"
murtaza64 14 years ago
  Ok! implemented sqrt and exponents! Link will be updated in first post soon.
Hexicube 14 years ago
  I already have indeces, also I did check over it and it works with usual formatting of maths, it can recognise things like:
3(2+5)^5-12(2^12) = 1269
murtaza64 14 years ago
  Nope... that was extremely careless.
I'm still working on it now
murtaza64 14 years ago
  @Marc... I got infinity in yours.
@gecko I actually did program in Javascript nd VBS once, then moved to c++.
@birjo who said you can't compile the source yourself?
@all I've implemented Indeces (Powers)! check it out:
http://www.multiupload.com/JP6EE8EDC3
source:
http://www.multiupload.com/UCRZA4JP8Z
Hexicube 14 years ago
  I rarely copy-paste code, and actually do it a lot more in C++
your comment is backwards, you always copy-paste when stuck and C++ is harder than AS so you tend to copy C++ not AS
geckojsc 14 years ago
  For the best cross-platformness, JavaScript is the way to go. Works on pretty much *any* platform as long as it has a semi-decent web browser. ;)

Nice to see that you're getting into programming! C++ is a great place to start, it teaches you to do things independently, unlike ActionScript and JavaScript (where it is very easy to fall into the habit of copying and pasting code).
Hexicube 14 years ago
  lol...macs have exe capabilities...if you have the right software...
besides, I put a swf...but I also made a prime finder thingy:
Prime Finder V2.exe
yeah it's exe :P
birjolaxew 14 years ago
  *Sighs* Yet another .exe... The world needs to open their eyes for ActionScript and Macs...
Hexicube 14 years ago
  I do prefer ActionScript, and I made a much smarter calculator...
yours is good for an amateur :D
needs more...functions...you know, like powers...
(right-click to save it if you want)
[edit] I did just fix a bracket bug...should actually work now XD
Hexicube 14 years ago
  I know of the C++ language...
[edit] don't use rapidshare it sucks use dropbox
murtaza64 14 years ago
  thanks!
are you learning any language?
Treazer 14 years ago
  Its cool!

MTS
murtaza64 14 years ago
  I'm learning C++. I wrote a program. It's a caculator.
MultiUpload.com Link
Here is the source, please feel free to help me by telling me how I can improve.
MultiUpload.com Link

[1]

General

First post of the topic

murtaza64 14 years ago
  I'm learning C++. I wrote a program. It's a caculator.
MultiUpload.com Link
Here is the source, please feel free to help me by telling me how I can improve.
MultiUpload.com Link
Our free flash games   Games for your site   Games for your iPhone   Contact   Twitter @jpsarda & @bonuslevelorg