Piping input into a c++ program to debug in Visual Studio -


this has been asked before, haven't been able find answers far. i'm trying start program multi-line input, i.e. don't want type in command line every time (as i'd make mistake). looked command line arguments , pasted input in there, interpreted every line being command.

input in case helps:

8 c j b s x k j t o v y z l x r t s w o n m z y x e n s p r l l o b s t e r t g x a a j p e l k e k t r s l j e e e cat test baseball bake paste lobster stake zen locks rake gel slack jar dinosaur 0 

put data in file go project properties in visual studio , select "debugging" category.

in "command arguments" property type:

< "path/to/the/file" 

now file fed program via standard input when debugger launched or when launch program within visual studio (but without debugger) using ctrl-f5.

you can use vs macros specify project directory, etc. if want test file move along project.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -