c++ - Finding a 'Number' -


in code i'm trying find "numbers", "identifiers", , "words". numbers defined sequences of numbers separated letter , non-letter, or non digit character( such space or /n).

such as: 898a111 (this has 2 numbers) 898 111 (this has 2 numbers)

words defined letter leading sequence of numbers, letters, or both.

such as: ajkalj8923 or alsjoia or b93082092 (these considered words)

and identifiers letters used lead word, or separate 2 numbers

such as:

898a111 (the identifier a)
ajlkaka (the identifier a)

i've been trying scribble out possible solutions, , far checking words believe have solution, far counting , identifying both "numbers" , "identifiers" (in string), i'm @ complete loss. have ideas? @ appreciated. i'd knowledge of c++ @ beginner's level.

main function:http://pastebin.com/mrxklxyv
header file: http://pastebin.com/xn23zn7x
assignment reference if unclear: http://pastebin.com/2bgepqbg

you can use regex match format want. using c++, must download boost first, , include head file "boost/regex.hpp"


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -