Computer programming - Homework 8

1. Integers and reals Write a function that takes a string and prints out all numbers in the string, prefixed with "int" or "float", depending on their format. Recognize and print also numbers that are adjacent to other text.

2. Command-line options Write a program that reorders the command-line argument array argv[], placing all strings that start with '-' first, followed by all other strings.


Marius Minea
Last modified: Tue Nov 10 15:00:00 EET 2015