# Search:

Type: Posts; User: crypto_quixote

1. ## Thread: Help creating function of sin cos and tan

by crypto_quixote
Replies
12
Views
6,543

### Howdy Quzah, Yep, I see your *point. A void...

Howdy Quzah,

Yep, I see your *point. A void pointer is useless overkill.

The whole thing was an exercise of my own to use void pointers, void functions, and typecasting.

Thanks again for...
2. ## Thread: Help creating function of sin cos and tan

by crypto_quixote
Replies
12
Views
6,543

### Howdy, Just so happens, I'm working on getting...

Howdy,

Just so happens, I'm working on getting a better understanding of pointers right now myself- so your question
inspired me to hack the following:

/*code to pass a pointer to a...
3. ## Thread: C Mentor Wanted

by crypto_quixote
Replies
0
Views
1,287

### C Mentor Wanted

Howdy,
First you should know: I'm willing to pay \$.

I've been studying C - mostly from Sam's Teach Yourself C for Linux Programming in 21 Days(years ?) for a couple of years now. I'm starting to...

by crypto_quixote
Replies
9
Views
1,157

### Testing for one is a true or false test. Yes, the...

Testing for one is a true or false test. Yes, the loop must start at 2, because the of using the modulus
operator. "is_prime = 1; " is merely an arbitrary starting point of a true or false...

by crypto_quixote
Replies
9
Views
1,157

### Hello lleon, The program you posted is clever....

Hello lleon,

The program you posted is clever. I think the the "is_prime = 1" and "is_prime = 2" functions as boolean
test operators (someone please correct me if I'm wrong.).

I found a cool...
6. ## Thread: prime numbers re-posted

by crypto_quixote
Replies
3
Views
1,228

### Thanks, however if using (number % a) == 0 should...

Thanks, however if using (number % a) == 0 should only tell me whether or not the number is divisible
by a whole number in such a way that it will not leave a remainder. If the number is prime the...
7. ## Thread: decrementing for loop help needed

by crypto_quixote
Replies
5
Views
2,578

### What is the test for. Clarify that, and try...

What is the test for.

Clarify that, and try nesting an "if" loop to achieve the desired result.

Good luck.
8. ## Thread: prime numbers re-posted

by crypto_quixote
Replies
3
Views
1,228

### prime numbers re-posted

Hello everyone,

I finally figured out how to write the code I originally thought I was posting
on the weekend.

The purpose of this small program is to identify prime numbers.

It seems to...
9. ## Thread: C Book Recommendations

by crypto_quixote
Replies
160
Views
279,128

### Sticky: Sam's Teach Yourself C for Linux Programming...

Sam's Teach Yourself C for Linux Programming.

Well presented and good explanations for learning C.

Out of print but still findable on amazon.com
10. ## Thread: setting array to 0

by crypto_quixote
Replies
2
Views
772

### That has to be the fastest response I have ever...

That has to be the fastest response I have ever had on a post.
(less than 5 minutes)
Thanks!
11. ## Thread: setting array to 0

by crypto_quixote
Replies
2
Views
772

### setting array to 0

Hello everyone,

I'm learning about code used to open files.

I got the following code from "Sam's Teach Yourself C for Linux Programming"

I don't understand why he set filename[ ] and mode [...

by crypto_quixote
Replies
2
Views
1,501

### That worked! Thanks.

That worked!

Thanks.

by crypto_quixote
Replies
2
Views
1,501

### using gdb

Hello everyone,

I'm trying to learn to use gdb v5.3-25mdk (Mandrake Linux).

I wrote a test.c file according to instructions I found in "Sam's Teach Youself
Linux Programming in 24 Hours"
...

by crypto_quixote
Replies
4
Views
950

### okay

Okay,

Thanks everyone.

I'll try the functions route.

by crypto_quixote
Replies
4
Views
950

Beating my head against my desk trying to understand how linked lists work.
(all those pointers pointing to pointers, then pointing to the same pointer that
started the pointing....)
The tutorial...
16. ## Thread: best gcc instruction book

by crypto_quixote
Replies
4
Views
2,905

### thanks

Thanks.

Those were good starting points. I'll track further reviews/prices etc.

Must limit the total yards/pounds of books on Linux!

All further recommendations are appreciated.
17. ## Thread: best gcc instruction book

by crypto_quixote
Replies
4
Views
2,905

### best gcc instruction book

Hello all,

I've been learning C from a couple of different books.
(Teach yourself C for Linux Programming in 21 Days and C Programming
in Easy Steps)

I'm compiling using gcc v 3.3.1 on...
18. ## Thread: why does this code do something diff on 2 diff boxes?

by crypto_quixote
Replies
3
Views
1,028

### Found it!

Yes,

In the main() it the on line 29 the print_strings() is called:

print_strings(lines, number_of_lines);

Also, the prototype for print_strings() is declared befor main():
19. ## Thread: why does this code do something diff on 2 diff boxes?

by crypto_quixote
Replies
3
Views
1,028

### why does this code do something diff on 2 diff boxes?

Hello,
I'm learning C via Sam's Teach Yourself C for Linux Programming in 21 Years...
I mean Days.

I typed out the below code on my laptop and compiled it three times with GCC with the following...
Results 1 to 19 of 20