for exmple i want to convert this string "21 4 5 7 - + -".. how can i get the numbers separately and parce it with the other symbols..

Read about strtok which tells you what function to use to separate a string into tokens. Then use atoi to try to parse the string as an int.

Or look at each character of the string and when you find a space, convert the characters you just passed over.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.