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
U

User 12365995

@User 12365995
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to perform Expression Evaluation
    U User 12365995

    Write a simple expression evaluator that takes a string like the following as input: 1+2*(3+4).
    -Only integers need to be supported
    -The following operators should be supported: +, -, *.
    -Expressions within parenthesis should be evaluated first.
    -Then the resulting expressions should be evaluated from left to right (no operator precedence)
    -Example:
    4+(4-(2*3)+1)+4 = 7

    The code should be written in such a way to support additional operators.

    Assume the existence of a function tokenise, which could take a string and return an array of strings, for instance

    tokenise(‘1+(2*3)+4’) would return [‘1’,’+’,’(‘,’2’,’*’,’3’,’)’,’+’,’4’]

    and the functions isNumber and asNumber which would return a Boolean and integer respectively on a single string input.

    C / C++ / MFC tutorial data-structures

  • How to perform Expression Evaluation in C++
    U User 12365995

    Write a simple expression evaluator that takes a string like the following as input: 1+2*(3+4). -Only integers need to be supported -The following operators should be supported: +, -, *. -Expressions within parenthesis should be evaluated first. -Then the resulting expressions should be evaluated from left to right (no operator precedence) -Example: 4+(4-(2*3)+1)+4 = 7 The code should be written in such a way to support additional operators. Assume the existence of a function tokenise, which could take a string and return an array of strings, for instance tokenise(‘1+(2*3)+4’) would return [‘1’,’+’,’(‘,’2’,’*’,’3’,’)’,’+’,’4’] and the functions isNumber and asNumber which would return a Boolean and integer respectively on a single string input.

    Managed C++/CLI tutorial c++ data-structures
  • Login

  • Don't have an account? Register

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