Thread: How to count the occurences of operands and operators of a program using C ??

  1. #16
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    You really gotta get out of the habit of calling keywords operators.
    Sent from my iPadŽ

  2. #17
    Registered User
    Join Date
    Mar 2005
    Posts
    140
    Change your debug statement to this and you should see why some keywords are not matching.
    Code:
    printf("Cant find %s\n" , hals);
    You need to account for other token delimiters instead of only whitespace.
    Including:
    {, (, ), }, ;, ",.....
    Last edited by spydoor; 02-27-2006 at 11:55 AM.

  3. #18
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    What do you think the term "notepad" means? It is the name of a windows program that reads ASCII files as I know.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Program to evaluate expressions
    By DMEngOba in forum C++ Programming
    Replies: 5
    Last Post: 05-25-2009, 09:16 PM
  2. operators operands
    By verb in forum C Programming
    Replies: 6
    Last Post: 02-13-2002, 07:04 PM