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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
Z

zakria81

@zakria81
About
Posts
3
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • constructor and destructor [modified]
    Z zakria81

    Hi, how can I write the code for the constructor and destructor of this class class ThreeD{ public: ThreeD(int=5, int=5, int=5); ~ ThreeD( ); private: int *** data; int l, w, d; }; thank you

    modified on Thursday, March 25, 2010 10:50 PM

    C / C++ / MFC question

  • multiple run
    Z zakria81

    Hi, this is a main class for a program that I have and I want it to be a multiple run, to ask the user if he wants to enter another number #include #include #include "postalobj.cpp" using namespace std; int main() { int num; postalclass pobj; cout<<"Please enter the number of mailboxes for the Postal problem : "; cin>>num; pobj.setnumbox(num); pobj.process(); getch(); }

    C / C++ / MFC c++ help

  • Help plz
    Z zakria81

    Hi everyone, can anybody help me by answering this question please: write a program that implements a Phone Number Encrypter. This entity should be capable of reading a telephone number as a string in the form (555) 555-5555. Reading should include validating the format i.e. while (555) 555-5555 would be correct, 5555555555 would be incorrect as also (555) abc-3128, (3m5) 523+3289. It should then extract the area code, the first three digits of the phone number and the last four digits of the phone number. The seven digits of the phone number should then be concatenated into one string. The next step would be to convert the area code and the seven digit phone number strings into ints. Finally, you want to encrypt the number as follows: • The area code should be converted to the binary notation using the complete number e.g. 555 would be 1000101011. Note that you would need 10 bits to accommodate all possible combinations • The seven digit phone number should be converted into binary notation where all digits should first be added and the sum be converted into binary notation. In the given example the sum of the digits in 5555555 is 35 and hence the binary notation will be 100011. Six bits should suffice to hold the results Finally the two encrypted binary representations should be concatenated. This would be a 16 digit binary number. Implement a class to represent a Phone Number Encrypter. Following good object oriented programming practices, keep the data members private. Accessor functions should be declared to set and get the private data if needed, your overloaded input operator should take care of reading the phone number initially. You are free to use c-strings or objects of string class to store the ISBN as a string, although, the object-oriented string class is recommended. Write a test program to illustrate the use of your class. I know it a long question but I really need your help...

    C / C++ / MFC oop help tutorial question
  • Login

  • Don't have an account? Register

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