thanks for all of your help
Type: Posts; User: AmazingRando
thanks for all of your help
is there a way to use strcmp so that it is not case sensitive?
For instance, if I call strcmp(value, "string"), and value is either String or STRING, I will still return a true.
Thanks for your help
and windows xp sorry
bloodshed dev-C++, for some reason my program runs fine on microsoft compilers but develops linker errors on dev-c++.
where do I put the gcc... line on bloodshed though?
Thanks for your help
where would I add this line?
I am trying to compile with 2 .c files and a .h file
I have something like this
recognizer.c
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
anybody seen this one before?
'\\mydocs.uark.edu\wogreen\programs'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory....
okay, I figured it out, a break to watch DUBYA, must have made me smarter.
Funny... I didn't see that coming.
actually I need to read it in one character at a time. I would love to use fgets but when lexemenumber is called, I need to store the string "number" in a struct, as well as the value of that number...
ok I have run into a problem
This portion of code reads in from a file character by character, starting with a number.
I want to send the whole number to value in struct Lexeme.
But I still need...
Thanks, Quzah
thanks guys
that seems right to me
will a quotation mark return a true or a false for the function isalpha?
in other words, is a quotation mark " treated as an alpha character?
OK say I have an integer array of 15.
and a char array of 15.
What function could I use to transfer the integer array's values to the char array?
I appreciate all of your help!
I can go to bed now :D
it would be simpler, but due to the nature of the program, I must process char by char
There is simply no way around that
I was afraid of that :)
FILE *readfile;
int lexInit(char* filename)
{
readfile = fopen(filename,"r");
if(readfile == 0)
{
printf("\nfile could not be opened\n\n");
Say I have read from a file.
And at a certain point in the middle of the line, I need to skip to the next line. What is the best way to do this, without creating a bunch of excess buffer trash?
I appreciate all your help :)
in this portion of code, I assume I should return the pointer instead.
int newLexeme(char *type)//input string, return a lexeme structure type:nNUMBER,VARIABLE...
I appreciate your help, I am very rusty in C.
but I think that ch should stay a char because I am reading in characters one at a time from a file.
However, my revised code is crashing
Any...
so should I change this to another .c file?
I am trying to maintain a fairly clean file for my main scanner function file.
I'm having trouble passing pointers from a c file to a header file and still being able to call information.
I assume My mistakes are trivial but any help would be greatly appreciated
.c file
...
I need help with mergesort
I used an algoritm form a book I have and have looked through the code but can't seem to understand what is wrong.
Can anyone help? I feel that I am close
any help is...
ok I am trying to read in from a file using fgets
the first part of the file looks like this
diagram,Human Circulatory System
:
: blah blah blah
: blah blah blah
:
vertex,1,brain