New topic New reply  Page 1 of 1
 [ 3 posts ] 
User avatar
12 Jun 2011, 14:15
102 Posts

You told me it would be better to make useful stuff in c++. Does a passworded user data storgage app sound better? Alomost done :3

_________________
Look, im just a Signature....

And containing universe boot-up sequence...
Do not alter at ANY circumstances....
If you have any problems, please shut the universe down and restart....

Microsoft (Gods Division)

WHERE IS MY FUCKING COOKIE?!?!
User avatar
12 Jun 2011, 14:15
102 Posts

I got a problem, can someone help me?
Code:
add:



                                                        cout<< "Data: ";

                                                          getline(cin,tempvar);
                                                        if (tempvar == "E"||tempvar=="e") {
                                                                                            useractivefile<<"finish";
                                                                                            useractivefile.close();
                                                                                            cout << "File closed. Returning to possible options..."<<endl;
                                                                                            filenamex="";
                                                                                            delay(1);

                                                                                            goto useractive;

                                                                                            }


                                                                                                tempvar.insert(tempvar.length(),"@");
                                                                                                useractivefile<<tempvar;
                                                                                               

                                                                                                goto add;

This is the part of my code that writes to the file. But it dupes without any reason.
Here is what i get.
Code:
Write your data and type [E]xit when you are done.
Data: Data: (<- why does it dupe here) fdadsf
Data: dfdsafdsf
Data:

Why does it skip the code for no reason?

_________________
Look, im just a Signature....

And containing universe boot-up sequence...
Do not alter at ANY circumstances....
If you have any problems, please shut the universe down and restart....

Microsoft (Gods Division)

WHERE IS MY FUCKING COOKIE?!?!
User avatar
12 Jun 2011, 14:15
102 Posts

Fixed: used a temporary string wich is goin to to be written to the file when the user wants to close the app, and then with a str.erase i erased the extra stuff
Edit: almost there :3
http://www.mediafire.com/?n68glbdi4gl3czk <- here it is. The book with registers and subregsiters. Still, lots left to add...

_________________
Look, im just a Signature....

And containing universe boot-up sequence...
Do not alter at ANY circumstances....
If you have any problems, please shut the universe down and restart....

Microsoft (Gods Division)

WHERE IS MY FUCKING COOKIE?!?!
New topic New reply  Page 1 of 1
 [ 3 posts ] 
Who is online
Users browsing this forum: No registered users and 23 guests