Function existance...

This is a discussion on Function existance... within the C++ Programming forums, part of the General Programming Boards category; Is there any c/c++ function that is similar to eval() in php and javascript? For those who don't know what ...

  1. #1
    Nerd Xmevs's Avatar
    Join Date
    Apr 2002
    Posts
    146

    Function existance...

    Is there any c/c++ function that is similar to eval() in php and javascript?

    For those who don't know what I'm talking about:

    eval() can evaluate a string as an expression:

    PHP Code:
    $no 1;
    eval(
    "$test".$no." = 5"); 
    in this case, the variable $test1 will be assigned a 5 value.

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Quite simply, nope .

    I am sure there are a quite a few good function evulators around, and even writing one yourself is a good learning experience..
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Nerd Xmevs's Avatar
    Join Date
    Apr 2002
    Posts
    146
    well... I can't be bothered then...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 04:06 PM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 02:01 AM
  3. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 07:54 PM
  4. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21