Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C/C++

C/C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
10 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 11004573
    wrote on last edited by
    #1

    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

    L S D C 6 Replies Last reply
    0
    • M Member 11004573

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Looking at your code there are a number of issues. For example you call Account_Create() in your int_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.

      1 Reply Last reply
      0
      • M Member 11004573

        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

        S Offline
        S Offline
        Satya Chamakuri
        wrote on last edited by
        #3

        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

        M 1 Reply Last reply
        0
        • S Satya Chamakuri

          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

          M Offline
          M Offline
          Member 11004573
          wrote on last edited by
          #4

          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 .

          L 1 Reply Last reply
          0
          • M Member 11004573

            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 .

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Member 11004573 wrote:

            Nobody are there for helping me .

            Plenty of people here will help you, but you need to get familiar with the language first. Take a look at http://www.cprogramming.com/tutorial/c++-tutorial.html[^].

            1 Reply Last reply
            0
            • M Member 11004573

              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

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • M Member 11004573

                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

                S Offline
                S Offline
                Satya Chamakuri
                wrote on last edited by
                #7

                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.

                M 1 Reply Last reply
                0
                • S Satya Chamakuri

                  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.

                  M Offline
                  M Offline
                  Member 11004573
                  wrote on last edited by
                  #8

                  Thank You For My Help, Now I Will Try to Solve This Problem .

                  1 Reply Last reply
                  0
                  • M Member 11004573

                    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

                    S Offline
                    S Offline
                    Satya Chamakuri
                    wrote on last edited by
                    #9

                    Hi, Let me know after what you did, so that further what to do will tell.

                    1 Reply Last reply
                    0
                    • M Member 11004573

                      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

                      C Offline
                      C Offline
                      Cristian Amarie
                      wrote on last edited by
                      #10

                      CP is now ground for homeworks for free? RTFM.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups