Toggle navigation
MYNDBOOK
Popular
My Library
Signup for free!
Login
Stanford CS106X Notes
0. CS Project 2: Random Sentence Generator
CS Project 2: Random Sentence Generator
processFile()
returns a vector of vectors. essentially, each vector would represent a type of word, with the vector inside of it containing the options to choose
printSentences()
Takes first vector in large vector, and then processes it. for
OR
can return just a simple vector of strings. each string will be tokenized.
vector 1
Description
getNonTerminal()
takes string and returns a string for the name of the nonterminal
Login
to remove ads
X
Feedback
|
How-To