Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / [LOCKED] C++ question

Author
Message
Phoenix4
20
Years of Service
User Offline
Joined: 5th Oct 2003
Location:
Posted: 11th Oct 2003 21:50 Edited at: 11th Oct 2003 21:53
if any one knows C++ please help me.
I'm not using Visual C++ I'm using Borland C++, so I'm not sure if the code is 100% the same but you know how you can use the "cout" command like "cout.width(25)" and "cout.fill('*')" if you arent sure what this will do here is an example

cout.width(25);
cout<<"Hello";

the output would look like this:
..................................Hello
just pretend that the . are spaces this forum wont let me post a bunch of spaces in a row
if you used fill it would look like this

cout.width(25);
cout.fill('*');
cout<<"Hello";

then the output would look like this:
*********************Hello
What I was wondering is is there a way to do something like this with "cin" so you could have the user input something and whatever they type comes out like ******* like for a password or something?

position object MyFoot,object postion x(yourAss),object position y(yourAss),object position z(yourAss)
rob p
20
Years of Service
User Offline
Joined: 24th Sep 2003
Location: Philly, PA, USA
Posted: 11th Oct 2003 23:13
try this:
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 12th Oct 2003 07:08
Please post all C++ questions in the GENERAL forum, as this is the Newcomers Forum for Dark Basic software.

Locked

RPGamer

Current Project: Eternal Destiny
We need a texture artist!
If your interested email me - Johnrocs@aol.com

Login to post a reply

Server time is: 2024-09-21 04:06:13
Your offset time is: 2024-09-21 04:06:13