I've been given a nice C programme to make from my lecturer at uni. I've got to open a file then find out the average word length and frequency of each letter.
I've written it all and gotten rid of most of the errors apart from one which reads "Expression syntax in function main". I've read your guide on answering students questions, just really hoping you can point me in the right direction with what to look for. I've gone through it many times and I'm sure all the silly mistakes have gone (like missing off ; and spellings). It works fine when it asks the user for the file name of the text file and it recognises if the file is not there so I'm hoping this means that it is opening the file, however after this istead of working out the average word length etc and displaying it on the screen it gives me an 8 letter code that is constant for the file I created to test my programme on.
I've got about 18 hours before the deadline, any help would be much appreciated,
Thanks
I've written it all and gotten rid of most of the errors apart from one which reads "Expression syntax in function main". I've read your guide on answering students questions, just really hoping you can point me in the right direction with what to look for. I've gone through it many times and I'm sure all the silly mistakes have gone (like missing off ; and spellings). It works fine when it asks the user for the file name of the text file and it recognises if the file is not there so I'm hoping this means that it is opening the file, however after this istead of working out the average word length etc and displaying it on the screen it gives me an 8 letter code that is constant for the file I created to test my programme on.
I've got about 18 hours before the deadline, any help would be much appreciated,
Thanks
Comment