Hi!
I have:
char str[100];
int temp;
I use fgets to read in like [2 3 +].
When i = 0, str[i] points at the character 2.
How can I get temp to be 2??
Type: Posts; User: valhall
Hi!
I have:
char str[100];
int temp;
I use fgets to read in like [2 3 +].
When i = 0, str[i] points at the character 2.
How can I get temp to be 2??
/**/
Thanks for the example. It looks a bit difficult in some parts.
Let me explain a bit easier.
Maybe I want to write integers from 1 to 10 in the first row with a loop.
THen in another loop I want...
Hi!
I am trying to learn how to read and write integers into a file in severreral rows.
Then I want to read the Integers from each row and put the integers in separate arrays.
Example of how the...
the purpose is that someone else can't see the struct and funktions. He can only view the header file.
I can make changes in the functions without him knowing about it.
That's why the declarations...
Hi!
I'm trying to make an implementation of the datatype RATIONAL in ADT way. The probleme is when I try to allocate memory for a new struct that I create in main.c.
I send the adress of the struct...