Okay, thanks for the help. I am still getting a return value of "6" for this, and after making the change you thought in your last post, it only prints one entry of "6" and does not print the name of the variable it's counting.
As for the variable that counts the spacing, I...
thanks! now it's outputting, but each counter has a value of "6", which is strange because my file has 7 lines of code, and each counter should have a value of 1 each. no idea what the problem is....
------------------------
open(FILE,'tt') || die "Unable to open 'tt'...
I am coding a simple program that counts the amount of lines in a file that have specific things, like the string "ing" or begins with a capital letter. My program runs without printing any output, just the top "Word Count" header. If anyone can see what I'm doing wrong, I'd...
ok, Thanks again! Here's where I'm at, but it's not even compiling and I'm feeling stuck... it's getting a problem with the line above my first If statement. Thanks again for the help!
--------------------
dPrint();
exit (0);
sub dPrint()
{
open( F,'tt') || die
while (<F>)...
I am working on making a simple program that reads a file and does these things:
Counts the amount of lines that have "ing" in them
Counts the amount of lines that begin with a capital letter
Counts the amount of lines that begin with a space
Counts the amount of lines that end with a...
I am writing a program that takes a file, reads all the words as lower case, and then prints alphabetically the list of the all the words used, and the frequency of how often they appear in the program. i am using a simple file with just this:
You like this
you cant wait to do this
And I need...
does anyone have the c++ code for a simple hashing function with a modulo? i am trying to figure out how to read numbers from a data file and hash them into specific locations using a simple modulo function, any help would be greatly appreciated.
thank you! that was definitely my problem.
and fyi, the program was just a small program that alphabetizes a list of names that the user enters, a "X" entered will print out the list. now if only i could figure out how to keep the X out from being printed at the end..
i cant for the life of me figure out what's wrong with this perl program. it takes the first input, and then freezes after that, missing all the other lines. anyone who can solve this (probably simple) problem for me, i'd really appreciate it!
print "Please enter names, enter X to quit...
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.