Need help with this program I'm trying to make

This is a discussion on Need help with this program I'm trying to make within the C++ Programming forums, part of the General Programming Boards category; I'm trying to make a program that ask you to make a user name and password and store it but ...

Need help with this program I'm trying to make

I'm trying to make a program that ask you to make a user name and password and store it but i have no idea how to store it. here's what i have so far it is just the basic out line so you know what I'm talking about.

Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

Ok, so why don't have TRY to do something - the point is that you can post to forums and copy the results forever without learning how to ACTUALLY do ANYTHING (except post and copy on forums - which is a useful skill, but not quite as useful as learning things for yourself).

Post your attempt - if you don't know where to start, try the cprogramming.com tutorials for file handling in C++.

I prefer to use a rift in space/time to store my data in a subspace field. it seems much more secure than memory, which goes away when power is cut, and even more secure than a disk which can fail at any time. the added bonus is that when I travel through time to observe the history of the universe, my data is accessible from any point in space/time, since it resides in an area outside our universe.

When you begin to introduce functions other than main, you may find that the variables do not work as you expected, since you may get confused between variables in local scope and those in global scope.

Maintenance and bug fixing becomes more difficult because it is harder to reason about the state of a global variable, so it is harder to determine the full effects of a change that involves a global variable. Your functions become harder to reuse because they are tightly coupled to the global variables.

I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.

The use of global variables makes software harder to read and understand. Since any code anywhere in the program can change the value of the variable at any time, understanding the use of the variable may entail understanding a large portion of the program. They make separating code into reusable libraries more difficult because many systems (such as DLLs) don't directly support viewing global variables in other modules. They can lead to problems of naming because a global variable makes a name dangerous to use for any other local or object scope variable. A local variable of the same name can shield the global variable from access, again leading to harder to understand code. The setting of a global variable can create side effects that are hard to understand and predict. The use of globals make it more difficult to isolate units of code for purposes of unit testing, thus they can directly contribute to lowering the quality of the code.