Thanx I see I have alot to learn any recommended reading material much appreciated for all your help over the last few days ive learnt a bit to thanx again
Type: Posts; User: Bazza
Thanx I see I have alot to learn any recommended reading material much appreciated for all your help over the last few days ive learnt a bit to thanx again
I never did under stand that return thing
Such a noob
Enlighten me
Thanx guys much appreciated
Thanx dog much appreciated I didnt think order could mes u up that much cheers m8 very much appreciated
Anybody know whats worng with that original code it should work but I cant understand why it wont
Thanx anyway Dog
cheers againmaybe this is one for prelude or hammer the gods of C programming
Hi thanx for your interest
int main(void) /* Main program consits of menu*/
{
char option; /* sets choice as an integer value starts at 0*/
I have a peice of code which accesses different sub functions of a menu. For some reason it runs.
But when i type A,B,C etc it doesnt take me to the relevant subprogram it just exits
...
OK im getting there I think but for some reason the error i.e Hello just for the sake of a message comes up when the program begins as well
I know its probably something simple but i cant figure...
Hmmmmm
I cant seem to do it because if I put the if statement before the while statement it still ignores it. But if I change the int choice=0 it automatically runs the if statement
your...
Thanks hammer sorry about that I type
{/code]
by accident at the end dont know how to delete other thread doh
thx again
[Code]
efterew
[\Code]
On a particluar menu option I have different option 1-6. I have put an if statement in my code to produce an error mesage if the input is greater than 6 but my program just seems to ignore it and...
Thanx for all your help guys got it all sorted :-)
Now I feel like programming something else but nothing to hard
Thanx again
[CODE]
if ( ( ch = fgetc ( fp ) ) != EOF )
[\CODE]
Also unsure of this part
cheers
man im dumb
Thanx prelude you have been a great help I really appreciat the amount of help you have given me im not sure if you said it above but i didnt see it
Im unsure about this line as i do not recgonise...
Thanx for that guys but prelude I think that was more what I was looking for.
But I wouldnt mind understanding the code coz im not gr8 at c
[Code]
#include <stdio.h>
#include <string.h>
...
Basically I want to pointer to start at the end of the file and count backwards so i can print a text file in revese character and reverse line order
anyone off to look up fseek and ftell
thanx...
When using a pointer for a text file to point at either the next char, string, or line etc
How is it posible to initiate the pointer at EOF and for it to start counting backwards?
ive tried...
Thanx hammer most appreciated your help has been great couldnt of asked for anymore. Cheers again if only I knoew some of the **** you did.
P.s. Just out of interest if i wanted to block out...
[Quote]
I thought I'd given you the answer?
Please don't create multiple threads on the same subject.
If you have questions on my sample code, just ask.
[\quote]
The reason im trying...
Sorry Hammer I just wanted to try different techniques to se which proved to be the best
thanx
As part of my project I am getting my program to counter all characters within a text file, and it is doing this with little trouble. But I want the counter not to increase when it encounters blanks...
As part of my project I need a line counter i am doing this by making the program counter how many time ASC 10 comes up this is then the amout of lines
The problem im having with my code is when...
I didnt want you to do it for me thankyou I have worked on the code and managed to get a wordcount if you type a textfile called textfile.txt
The problem Im having now is when i do the character...
Cracked the menu bit now the hard bit the actual function the menu was for thanks for your help guys really appreciated
As you can guess im a bit of noob the problem I am having with this code is for the menu to activate the sub sections of code
Thankyou for your interest