C/C++
-
Respected Sir Please Tell me logical error in this code because i faced many difficulties in This Code, please solve this . When i Execute the Code after Enter 1 Option it cannot get the name if it get the name the password field cannot execute.and more error in it like ,. i want to get only 8 string/Number in Password but loop did not work correctly please answer me ASAP. // student_Record_Management_C++_1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include #include #include using namespace std; class Menu_Account { private: int option,loop; char name[20],pass[8],pass_1[8],color[10]; public: void int_menu() { cout<<"\t\t\t-----------------------------------"<>option; cout<>pass[loop]; } cout<<"\n\t\t\tRe-type Password:"; cin>>pass_1; cout<<"\n\t\t\tWhat Is Your Favorite Color:"; cin.getline(color,10); } }; int _tmain(int argc, _TCHAR* argv[]) { Menu_Account obj_1; obj_1.int_menu
-
Respected Sir Please Tell me logical error in this code because i faced many difficulties in This Code, please solve this . When i Execute the Code after Enter 1 Option it cannot get the name if it get the name the password field cannot execute.and more error in it like ,. i want to get only 8 string/Number in Password but loop did not work correctly please answer me ASAP. // student_Record_Management_C++_1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include #include #include using namespace std; class Menu_Account { private: int option,loop; char name[20],pass[8],pass_1[8],color[10]; public: void int_menu() { cout<<"\t\t\t-----------------------------------"<>option; cout<>pass[loop]; } cout<<"\n\t\t\tRe-type Password:"; cin>>pass_1; cout<<"\n\t\t\tWhat Is Your Favorite Color:"; cin.getline(color,10); } }; int _tmain(int argc, _TCHAR* argv[]) { Menu_Account obj_1; obj_1.int_menu
Looking at your code there are a number of issues. For example you call
Account_Create()
in yourint_menu()
function, and then call it again immediately on return. You should take all the menus and input code out of your class and just use the class for holding and manipulating its data. Start with a basic class definition and one function for getting details from the user. Compile and test that part, use your debugger to check that it saves and manages its data correctly. Then add the next function, compile and test that, etc. etc. -
Respected Sir Please Tell me logical error in this code because i faced many difficulties in This Code, please solve this . When i Execute the Code after Enter 1 Option it cannot get the name if it get the name the password field cannot execute.and more error in it like ,. i want to get only 8 string/Number in Password but loop did not work correctly please answer me ASAP. // student_Record_Management_C++_1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include #include #include using namespace std; class Menu_Account { private: int option,loop; char name[20],pass[8],pass_1[8],color[10]; public: void int_menu() { cout<<"\t\t\t-----------------------------------"<>option; cout<>pass[loop]; } cout<<"\n\t\t\tRe-type Password:"; cin>>pass_1; cout<<"\n\t\t\tWhat Is Your Favorite Color:"; cin.getline(color,10); } }; int _tmain(int argc, _TCHAR* argv[]) { Menu_Account obj_1; obj_1.int_menu
Hi, Can you summarize whats the purpose of this code? Because the way you are following is not correct. But we are here to guide you, try to summarize what you did for?, what you are expecting? and what support you required... You will get help definitely Thanks
-
Hi, Can you summarize whats the purpose of this code? Because the way you are following is not correct. But we are here to guide you, try to summarize what you did for?, what you are expecting? and what support you required... You will get help definitely Thanks
Thank you For Reply Me, i used this code for making new account of user and save this data in the file after getting all detail in the main. Please tell me Issue and coding Style Error in this code because i am New In C++ And i learn it By Self Nobody are there for helping me .
-
Thank you For Reply Me, i used this code for making new account of user and save this data in the file after getting all detail in the main. Please tell me Issue and coding Style Error in this code because i am New In C++ And i learn it By Self Nobody are there for helping me .
-
Respected Sir Please Tell me logical error in this code because i faced many difficulties in This Code, please solve this . When i Execute the Code after Enter 1 Option it cannot get the name if it get the name the password field cannot execute.and more error in it like ,. i want to get only 8 string/Number in Password but loop did not work correctly please answer me ASAP. // student_Record_Management_C++_1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include #include #include using namespace std; class Menu_Account { private: int option,loop; char name[20],pass[8],pass_1[8],color[10]; public: void int_menu() { cout<<"\t\t\t-----------------------------------"<>option; cout<>pass[loop]; } cout<<"\n\t\t\tRe-type Password:"; cin>>pass_1; cout<<"\n\t\t\tWhat Is Your Favorite Color:"; cin.getline(color,10); } }; int _tmain(int argc, _TCHAR* argv[]) { Menu_Account obj_1; obj_1.int_menu
Have you stepped through it, line by line, using the debugger?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
Respected Sir Please Tell me logical error in this code because i faced many difficulties in This Code, please solve this . When i Execute the Code after Enter 1 Option it cannot get the name if it get the name the password field cannot execute.and more error in it like ,. i want to get only 8 string/Number in Password but loop did not work correctly please answer me ASAP. // student_Record_Management_C++_1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include #include #include using namespace std; class Menu_Account { private: int option,loop; char name[20],pass[8],pass_1[8],color[10]; public: void int_menu() { cout<<"\t\t\t-----------------------------------"<>option; cout<>pass[loop]; } cout<<"\n\t\t\tRe-type Password:"; cin>>pass_1; cout<<"\n\t\t\tWhat Is Your Favorite Color:"; cin.getline(color,10); } }; int _tmain(int argc, _TCHAR* argv[]) { Menu_Account obj_1; obj_1.int_menu
Hi, I will tell first step to follow in your code. Don't put all the operations in the body of class.. I mean that selection option using switch you write in main. Then one more mistake you did is calling the Account_Create() function before defining it. and using return Account_Create() is also not correct in switch() statement. First you do this, then hope your code will work properly.. If you didn't get also no problem, i will help you to solve this. I already did yesterday this. I don't want to give you that code and spoil you. First you try your level best with guidelines whatever so far people guided. Nobody is perfect in this world... Thank you.
-
Hi, I will tell first step to follow in your code. Don't put all the operations in the body of class.. I mean that selection option using switch you write in main. Then one more mistake you did is calling the Account_Create() function before defining it. and using return Account_Create() is also not correct in switch() statement. First you do this, then hope your code will work properly.. If you didn't get also no problem, i will help you to solve this. I already did yesterday this. I don't want to give you that code and spoil you. First you try your level best with guidelines whatever so far people guided. Nobody is perfect in this world... Thank you.
Thank You For My Help, Now I Will Try to Solve This Problem .
-
Respected Sir Please Tell me logical error in this code because i faced many difficulties in This Code, please solve this . When i Execute the Code after Enter 1 Option it cannot get the name if it get the name the password field cannot execute.and more error in it like ,. i want to get only 8 string/Number in Password but loop did not work correctly please answer me ASAP. // student_Record_Management_C++_1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include #include #include using namespace std; class Menu_Account { private: int option,loop; char name[20],pass[8],pass_1[8],color[10]; public: void int_menu() { cout<<"\t\t\t-----------------------------------"<>option; cout<>pass[loop]; } cout<<"\n\t\t\tRe-type Password:"; cin>>pass_1; cout<<"\n\t\t\tWhat Is Your Favorite Color:"; cin.getline(color,10); } }; int _tmain(int argc, _TCHAR* argv[]) { Menu_Account obj_1; obj_1.int_menu
Hi, Let me know after what you did, so that further what to do will tell.
-
Respected Sir Please Tell me logical error in this code because i faced many difficulties in This Code, please solve this . When i Execute the Code after Enter 1 Option it cannot get the name if it get the name the password field cannot execute.and more error in it like ,. i want to get only 8 string/Number in Password but loop did not work correctly please answer me ASAP. // student_Record_Management_C++_1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include #include #include using namespace std; class Menu_Account { private: int option,loop; char name[20],pass[8],pass_1[8],color[10]; public: void int_menu() { cout<<"\t\t\t-----------------------------------"<>option; cout<>pass[loop]; } cout<<"\n\t\t\tRe-type Password:"; cin>>pass_1; cout<<"\n\t\t\tWhat Is Your Favorite Color:"; cin.getline(color,10); } }; int _tmain(int argc, _TCHAR* argv[]) { Menu_Account obj_1; obj_1.int_menu
CP is now ground for homeworks for free? RTFM.