Thread: Function existance...

  1. #1

    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
    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, 03:06 PM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06: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