Please Prelude take the time to look at the last line of the post that I made.
I see no way that he could learn from getting code back that is perfect. I learn on the basis of getting a push...
Type: Posts; User: WolfPack
Please Prelude take the time to look at the last line of the post that I made.
I see no way that he could learn from getting code back that is perfect. I learn on the basis of getting a push...
#include <stdio.h>
char english_number( char *string ) ;
void get_string( char buffer[], int size ) ;
const int LENGTH = 81 ;
int main( void )
{
char line[ LENGTH ] ;
#include <stdio.h>
char english_number( char *string ) ;
void get_string( char buffer[], int size ) ;
const int LENGTH = 81 ;
int main( void )
{
char line[ LENGTH ] ;
Look at either the header file io.h or dir.h. I'm not sure which it is for Borland as I am on DevC++ but in either of the two there should be a struct called wither _finddata_t or ffblk which has...
Through a program I believe it is possible but it seems that you would need information on BIOS dependent functions or you would have to make them as well as possibly some ASM. As far as manually...
Nevermind. I figured it out.
I didn't look all the way through it as I am working on a program myself but on line 26 and 27 you always want to make sure that the two files were actually created, so add some error checking for...
This is not on topic of this thread but Arrummzen are you a common visitor to the HDC BBS?
Im learning linked lists so I can't help you with that but to help other people give you advice.....use the code tags when posting code.
Hehe...sounded like one.
Most languages that I know of support list like data structures. I was wondering if you can get the same effect in C. More specifically I am doing a program that will need to refer to days of the...
c/c++:
http://www.knowledgehound.com/topics/cpp.htm
http://www.stickysauce.com/scriptdirectory/c/
http://www.gustavo.net/programming/c.shtml
http://www.planet-source-code.com/ ...
http://www.rt.com/man/execl.3.html
There are several functions that allow you to excecute a file and are better to use than system("whatever.exe").
hehe
You can also use 'system("pause");'
stdlib.h
Thank you for the tip Dave as well the link explaining it.
Here are two very basic examples of file i/o. I don't like to do this because it defeats the purpose of learning but this was how I learned.
/*small example of file writing one character at a...
Yea I picked up on that manual site after I posted, hehe. Good link though.
To a degree I knew the difference between the two in what code I have written. I have myself have always used EOF and when flipping through the book I saw the feof(), and read the several pages...
By no means is this book my "manual." It has been my first book on C yes, but i hardly use the thing due to the fact that reading it bores the hell out of me. I do not need you to sit there and...
So hammer is one better suited for one instance and one for another? The statement I made came from Sams Teach Yourself C in 24 hours.
"This function [feof()] is more useful when you're reading a...
This I know Salem. I used a for loop to get the 4 digits that the user would input and used the for loop again to print out the 4 sorted digits.
I believe feof() is used more for binary files and EOF is used more for text type files.
This is a program that will ask the user for 4 numbers and sorts them from highest to lowest. It compiles fine with no errors but when I run the program it will not display the sorted array.
...
Also check out some of the big book sites like amazon.com. You can also check out http://blacksun.box.sk and go to the book section. It is down right now but when they get it up it should be a big...