i'm now trying to do like this. Now it can found "int", and "else", but even the other operators/operands like if, main do appear in the C program file (try.txt), it's found unmatch.
void main...
Type: Posts; User: tauhu82
i'm now trying to do like this. Now it can found "int", and "else", but even the other operators/operands like if, main do appear in the C program file (try.txt), it's found unmatch.
void main...
Thanks alot for alll your help. Have a nice day
for (i=0;i<5;i++)
{
b = strcmp ("a","no[i]");
if (b==0)
{
printf ("Found Match");
printf ("\n");
}
If you don't want to help you can just ignore the posting. You need not be so rude. We can judge a person by the way they talk and write...
# include <stdio.h>
#include <stdlib.h>
# include <string.h>
void main (void)
{
FILE *fin;
char no[100];
char i;
char b;
What if i wanted to list all in another notepad than compair?? How do i do this i put all the coding into a notepad name sampel.txtthen i put all the operands and operators in another notepad name...
I have manage to read the coding from the file but how do i compair them with the operands and operator because i wanted to get the total number of operand. Please help.....
Accually i really don't have idea how to start the coding. Please guide me...
How to count the occurences of operands and operators of a program using C programming?? I'm trying to read a from a file with coding then to count the operands and operators.Can anybody please help...