i have been a c++ programmer for just under a month now (i think) and have programmed in a number of previous languages, for the last day ive been trying to port one of my programs from vb to c++, and apart from the syntax being so precise (compared to vb) i have had no probs well except i guess 2 ^_^, first off i want a user to be able to input a float as a string then convert it to a long or float, iv got this to work fine but using my process u have to rely on a base specific type (so i decided on a double) but due to this i can retrieve longs, shorts and doubles but cant get real/floats (i have posted my code below (the project itself is a high level tag based language (almost converted all the core of a language to it)) the second prob is this, once my tag if statement has been evaluated if true i want to process the script, but to do so i have to revisit the same sub but this will change the int that holds the script pos, now if i use a secondary it to hold the current one then process then return its fine but doesnt then allow if>if> (multilevel processing) now i know i could make the int an array and have a process to re establish the position but this still limits me to the max array size of int) my code is below any help would be great (btw dont make fun of the way i craply coded it as i have only been coding in c++ for under a month :P )
>>>>>Moved to attatchment file on next post *.cpp



LinkBack URL
About LinkBacks


