ok i'm almost done on my coursework but one last thing i cannot get to work.
I have a string that contains a year eg 2008 which i need to convert into an int or double... anyone plz
Haven't done any C++ in years but I do remember 'atoi'![]()
crazyfool (23-10-2008)
cheers m8 but as soon as i posted this i figured out how to do it lol... thanks anywayz... and just out of curiosity what languages do programmers today prefer to program in because after a quick google it seems people aren't really that into c++ and i was wondering if i am learning a dead languages... i was under the impression it was commonly used![]()
Well as I'm not a programmer by trade I can't really comment on the language question. But what I would say is that if you're learing to write code most of your effort should really go into learning to design a program and how to structure code.
Once you have those skills you're pretty much set. You can skip between whatever language you need to get the job done but as long as your code structure is good, actually writing the code should be the easy part.
Its not a dead language, but its use will dwindle more and more over the next few years.
However, lots of people have been saying this since the dawn of Java (fools!) but here is why i think its differen't.
Look at the i7. How many cores? If you want high performance code do you want to be messing about with the locking and intercommunication yourself.
No, you want a language that by its nature helps split up the problems so they can be scaled to as many CPUs as the OS has available for you.
C++ has servived because its very flexible and if done properly very fast. Regretably its often not done properly, and you end up with slow, insecure code thats very likely to be of no use in 5 years time.
As such i think we will see the dawn of the functional languages this coming decade, things like F# are really rather nifty, but if you prefer procedual C# (or C++++, see what they did there!) has implemented a lot of the aspects of lambdas, combined with tools like PLINQ (i've written my own version for working with time series) it can scale to many CPUs, how many is determined by the host (you don't want to blindly open up 8 threads because you see 8 cores if the user is watching a video say do you?).
throw new ArgumentException (String, String, Exception)
you know one of the modelers i used to work with swar by Ada95.
throw new ArgumentException (String, String, Exception)
C++ is still big and will be for a long time to come.
Other languages that are/will be big are C# and Java (both quite similar although syntactically different) Once you have C++ the other will be easy.
There are currently 1 users browsing this thread. (0 members and 1 guests)