Coder Social home page Coder Social logo

Walter Foster's Projects

c-overloading icon c-overloading

Well-formed – For this assignment, we will define a string of characters to be “well-formed” if it satisfies one of the following requirements: 1. Contains three, two, or one base-ten symbols2 and nothing else 2. Meets the first requirement and begins with either the minus sign‘-‘ or the plus sign ’+’ 3. Contains two base-163 symbols followed by ’h’ and nothing else 4. Contains four base-two symbols4, followed by a space character, followed by four more base-two symbols, followed by ’b’ and nothing else. Note: Overflow can lead to interesting results. For example, if you use either the number 128 or the character string “128”, your Short should contain the value -128. This is not an error in your code; it is the result of overflow. In Short.cpp, implement these member functions and the following helper function: //determines and returns the type of a char*, either DEC, BIN, HEX. It returns ERROR if the char* is not well-formed display_type type ( const char* ); Write other helper-functions as needed. I have several. Place the prototypes for helper functions at the top of your Short.cpp file and the implementations at the bottom of the file. These are not member functions and should not be in your Short.h file. YOU MUST NOT USE ANY BUILT-IN FUNCTIONS In ShortMain.cpp, write a test main to test your code. Remember: code that does not compile will not be graded and will receive a grade of ZERO. You must thoroughly test ALL of your code to ensure that it compiles and works correctly. Submit these four files via the drop-box (append .txt to change Makefile to Makefile.txt) 2

cpluspractice icon cpluspractice

Practicing C and C++ coding through class projects, lectures and books.

schoolwork icon schoolwork

This is a repository for my coursework at the University of Notre Dame.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.