Hello everyone,
I have now finished the 'Sams Teach Yourself C for Linux Programming in 21 Days' book. now I'm looking for something more advanced but every advanced level book that I find is about...
Type: Posts; User: Rhodium
Hello everyone,
I have now finished the 'Sams Teach Yourself C for Linux Programming in 21 Days' book. now I'm looking for something more advanced but every advanced level book that I find is about...
Well, as I said I don't really understand the difference that Pedro's code makes but it works perfectly.
It seems to me like this code will only copy the first character because after it does,...
Sams Teach Yourself C for Linux Programming in 21 Days.
Thanx for the manual, mart.
What is your book, chrismiceli?
Thanx
Thanx, Pedro: It is solved.
Could you explain to me what the problem was!?
I mean, in my old way, shouldn't the programme first check for end of file and then copy a character? I don't really...
Hi everyone,
I wrote a programme to copy the contents of one file into another and I agree that I wrote some useless and extra code. The programme works fine except that it adds an extra ÿ at the...
The only preprocessor directives covered in my book were:
#if
#elif
#else
#endif
defined() // an operator
and
#undef
I can understand what the others are (like ifndef = if not defined)...
Hi all,
Could you tell me if the following header file prevents multiple inclusions of this file?
Thanks a lot for your help
Yes Hammer, you are right case 3 is a menu option.
For everyone who is confused, this is the output I get when I choose option 3.
3 enter
Are you sure you want to quit?
Are you sure you...
Hi everyone,
could someone please tell me WHY THE 'Are you sure you want to quit?' question gets asked twice, I've trid to put every possible condition on it but no matter what it is asked twice:
...
The purpose of the programme was practicing and experimenting with pointers!!!
Thanx for all the helps...appreciated.
OK. There's the CODE tag.
Anyhow, Thanx XSquare, That problem is solved now.
However, another one's come up:
Could someone tell me what's wrong with this code:
#include <stdio.h>
The following programme is supposed to use pointers totype double variables to accept 10 numbers, sort them, print them.
/* D14Ex7.c - programme to use pointers to type double to accept 10...
could someone tell me what each part of the following line does?
compare= (sort_type) ? reverse : alpha;
Thanx
Does anyone know the printer stream for LINUX? Like stdprn for DOS!
Thanx
SAM'S Teach Yourself C for Linux Programming in 21 Days
In a listing in my C book, there was code that was unexplained for a while loop that looked like this:
while ( n < MAXLINES && fgets(buffer, 80, stdin) != 0 &&
[ic:ccc]buffer[0] != '\n')...
YES ................. IT FINALLY WORKED THANK YOU ALL FOR HELPING >>> SPECIALLY POLYMORPHIC OOP>>> RHODIUM
Thanks to All, it took me too weeks to get it working!
This is the code I wrote trying to use malloc ( and I didn't free the allocated space 'cause I didn't know how to ). The code is error free to the compiler but the output is still not what I...
Thanx a lot Polymorphic OOP,
As I said, I changed a lot of things trying to fix numerous problems - the problems were a page long at the begining! - so for example I used to use malloc() but after...
Can someone tell me what's wrong with the following?
Do you think that my assignment 'makes integer from pointer without a cast' on line 22? That's what gcc seems to be thinking
#include...
Thanx a LOT personification,
That made a lot of things clearer; thanks....
just so you'd know, this is the entire code
#include <stdio.h>
#include <string.h>
char *a = "was--up?";
char *b...
Hi all,
I'm in the most confusing period of learning the C language. What's worse is that my book keeps writing exercises using commands and method that have not been taught yet! Anyhow, could...
Thanx,
I'll try that but I think I've already tried 'return;' with nothing in front of it but it doesn't hurt to try again...
Hi all,
This is my first post here! I have two questions:
1. I'm learning C by using 'Sams Teach yourself C for Linux Programming in 21 days'. I have finished the first week and have...