Navigation

    Cyberian
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Pro Blog
    • Users
    • Groups
    • Unsolved
    • Solved
    1. Home
    2. Mohammad Maaz
    • Profile
    • Following 0
    • Followers 1
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    Mohammad Maaz

    @Mohammad Maaz

    0
    Reputation
    5
    Profile views
    1
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    Mohammad Maaz Unfollow Follow

    Latest posts made by Mohammad Maaz

    • Which data type should be used in c++ to store address because address consists of both integers and characters

      You basically answered your own question. If you need to save something that is a mixture of numbers and characters, I see two obvious choices:

      You just need it as a text: I would go with a simple std::string

      You need the individual elements (e.g. street name, street number): define a custom struct, e.g.

      struct Address {
        std::string street_name;
        int house_number = -1;
      };
      
      posted in Development Troubleshooting
      Mohammad Maaz
      Mohammad Maaz