Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

trey5498

macrumors regular
Original poster
Jun 16, 2008
191
0
If I ask for a user to enter a username (txtuser) ... BOB and then use that for a port how do I run the following?

system("lpadmin -p printer -v ipp://server/txtuser -E -P /path to driver");
 
How would you normally concatenate two or more strings?

I know how to do that. I was just wondering if there is an easier way to do it without creating another variable kinda like

system("lpadmin -p printer -v ipp://server/" + txtuser + "-E -P /path to driver");

or something
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.