Hello, i am researching lexical analyzers and i was wondering if anyone can run this code properly. I get it to run in visual c++, but i just get the dos window with no activity. it is a long program, here is the link:
http://www.cs.uh.edu/~zgchen/
also, you must add #include<ctype.h> to the...
Does anyone have any resources on how to build a compiler using C++? I am researching scanners/lexical scanners and parsers with minimal luck. Thanks for any help.
Hello, i need to write a console app that will search a folder and subfolder for 1 or more files of a given filename. for each file that is found, the XML file must be parsed for a substring in the <url> element, and replace it w/ another substring. in other words, for each <url> tag found in...
Hello, i have a form where members can purchase products from. the format is like this:
qty-----product------price----select to purchase----
3--------shirt-------5.00-------form checkbox-------
1--------pants-------10.00-------form checkbox------
my question is: how can i make it so when a user...
Im fairly new to apache tomcat. i set up my tomcat and wrote a simple jsp page...i had my friend test my jsp page from his home by typing http://myipaddress:port/filename and it worked fine. but when he tried to test an html page that i had made in Dreamweaver, he got an error. both files are...
When i run the following, i get this error message:
FileList.java:21: non-static method searchDir(java.io.File,java.lang.String) can
not be referenced from a static context
matching = searchDir(curDir, search);
^
Thanks for any help. Here is the code:
import java.io.File...
Hello, how can i make this program run when a user inputs a website, so that it responds with html code. right now when i run it, it just responds with html code from www.yahoo.com. Id like to make it the output like this:
"Please type in a web address" ->(user types in address, and...
Hello, I'm trying to write a program that given the name of a file to the console, will search the file system looking for one or more files that match the provided name, and the output shows the full path to the found file.
What would be the easiest way to do this? I'm rather new to Java...
Hi, I have a program that executes, but it is not recursive. I would appreciate any help on this. Thanks in advance. (Thanks to DavesTips for his previous help on this program). The program is supposed to implement the factorial function recursively. You can execute it to see the output. n...
Hello,
i have to define a string and implement it using a class mystring and dynamic memory allocation for character values. i cannot use the #include <string> definition. It must have these methods:
create a string (obviously)
check if the string is empty
find a given substring in a string...
Hi, what im trying to do is get this description to work (which i have on another thread):
A Computer graphics image is composed of rectangular points on the screen. In a black and white picture, we can use 0 to represent white and 1 for black. The picture is a 5 x 5 square on the screen as...
Hello,
I'm having a problem understanding what to do in this program, I would appreciate any suggestions. Thanks in advance for the responses and the help. Here it is:
A Computer graphics image is composed of rectangular points on the screen. In a black and white picture, we can use 0 to...
Hey everyone. I have a program for the card game war. I have tested it, and it works. My question is this: how could i get the program to play a sequence of gmaes, rather than just a single game? Here is the program. its kind of long, but i would appreciate any help. I would like to ask a...
Hello, I really need help with this program. There are three parts, which i am having a problem understanding. If anyone has any suggestions or solutions, i would really appreciate it. Thanks. Here it is:
A driver generates two different arrays (integers and float numbers) and calls template...
Hello, I really need help with this program. There are three parts, which i am having a problem understanding. If anyone has any suggestions or solutions, i would really appreciate it. Thanks. Here it is:
A driver generates two different arrays (integers and float numbers) and calls template...
Hello everybody. I have a program to write, and I am having trouble with it. Can someone take a look at it and write out a possible code for it? i would really appreciate it. Thanks, here it is:
The program will develop a polynomial class. how do you represent a polynomial using an array and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.