truth table Give some help in "&"

truth table Give some help in "&"

Postby Matheusfarias » Fri Sep 21, 2012 6:53 pm

need to make a truth table my code works this way: :P
Code: Select all  Expand view

#Include "Fivewin.ch"
 #command ~  => !
 #command ^  => .AND.
 #command V  => .or.
 #command <a> &'<->' <b> => if ( a=b , .t. , .f. )
 #command <a> -> <b> => if ( b , if ( a , .t. , .t.) , if ( a , .f. , .t. ))
FUnction main()

vpropos:="q ^ b"
 
if &vpropos  // Error
   msginfo("1")
endif

if q ^ b // no error
   msginfo("1")
endif

         
 


I read on some forums and saw that the macro does not work with the command # and # translante
could someone give me an idea, I need a job for the university


:D :D :D :D :D :D
User avatar
Matheusfarias
 
Posts: 17
Joined: Mon Sep 10, 2012 1:55 pm
Location: João Pessoa/Paraiba/Brasil

Re: truth table Give some help in "&"

Postby Antonio Linares » Fri Sep 21, 2012 9:07 pm

Try with #define instead of #command and without the arrow
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests