| caldin (25) | |||
|
hey guys, got a new problem with a new project. in this project, we split our code into different header files and source files (new to me). i think i've pretty much got it done except now i get 2 errors here is the code:
and the 2 errors are: Error 1 error C2601: 'SysAdmin::resetPassword' : local function definitions are illegal e:\advancedc++\project 7 (insecurenet)\insecurenet project\sysadmin.cpp 43 InsecureNet Project and Error 2 fatal error C1075: end of file found before the left brace '{' at 'e:\advancedc++\project 7 (insecurenet)\insecurenet project\sysadmin.cpp(16)' was matched e:\advancedc++\project 7 (insecurenet)\insecurenet project\sysadmin.cpp 63 InsecureNet Project anybody have some insight as to what i'm doing wrong here? | |||
|
|
|||
| helios (9442) | |
| You have some unmatched braces somewhere. | |
|
Last edited on
|
|
| caldin (25) | |
| well i figured that, this is what showed up when i double clicked the errors, but i don't see any unmatched bracers. i'll double check the rest of the code again | |
|
|
|
| helios (9442) | |
| All I can tell you is that the problem is before the code you posted. | |
|
|
|
| caldin (25) | |||
ok, got those 2 errors fixed. now i got another error within this block of code:
here is the error: Error 1 error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'const std::string' (or there is no acceptable conversion) f:\advancedc++\project 7 (insecurenet)\insecurenet project\sysadmin.cpp 51 that error points to line 9 in the block of code i posted with this. no clue what i did wrong | |||
|
|
|||
| helios (9442) | |
| If you want to modify a member (whatever member you're trying to input into on line 9), the function can't be const. | |
|
|
|
| caldin (25) | |
|
line 9 is just supposed to read the information in the file being inputted into the stream, it's not changing anything, or isn't supposed to. lines 17-20 are what changes something in the text file through stream. | |
|
|
|
| caldin (25) | |
| if anybody is willing, they can PM me their email address so i can send them the entire project. it does what it's supposed to, until the resetPassword function. it's not running it at all. anybody willing to do this? | |
|
|
|