Easy....
printf("\n Enter your choice ... :");
ch = getchar();
do
{
printf("\nEnter your choice ... :");
Your telling the program to print it twice...
User Profile
Collapse
-
-
It seems it doesn't work. I don't know where i am going wrong here? HELP !!!!Leave a comment:
-
-
C > Cpp
Totally.
This would be something C would be good with.Leave a comment:
-
Well..... I thought strcmp returned 0 if the comparison is equal. I have changed it to !=0 and this is the result
doskey@DosKeys-Xion-sys:~/Desktop/project/src$ gcc main.c -o test
doskey@DosKeys-Xion-sys:~/Desktop/project/src$ ./test -read c -f
doskey@DosKeys-Xion-sys:~/Desktop/project/src$ ./test -read c -fa
The file contains data,
please enter some data to create the file and save the text
kjh...Leave a comment:
-
On line 6 i see no reason why you should have the ( integer_value % 5 != 0) whatsoever.Leave a comment:
-
Well i will post 2 pages
It seems to be when the readit() gets called, it just jumps and writeit() gets processed
-------READ.C----------------
[CODE=c]#ifndef filesize
#define filesize 2001
#endif
struct tmpcommands{
FILE *fp;
};
extern void filehelp_text(c har file[]){
printf("\nFILE FUNCTIONS: ");
printf("\nUsage...Leave a comment:
-
I know the checkbuff() function is lame that's why it isn't being used.Leave a comment:
-
The function readit() seems to jump to writeit() when it shouldn't
::links not allowed, please read the Posting Guidelines::
The function readit() seems to jump to writeit() when it shouldn't in read.c This has got me stumped. After inside the readit() gets called it seems to when the function ends it seems to just process the writeit() when it isn't being called. Any help would be much appreciated :P
No activity results to display
Show More
Leave a comment: