I tried this , but it doesn't work , I think I have problem to determine the length of line
* Read First line into z
for ( i = 0; i < k; i++) /* k is length of y */
{
...
Type: Posts; User: taj
I tried this , but it doesn't work , I think I have problem to determine the length of line
* Read First line into z
for ( i = 0; i < k; i++) /* k is length of y */
{
...
Plz guys I need your help in this problem
OK , could you help me , plz I tried and tied and i couldn't . I said before am not very good in C , really i need your help to do what i need , and plz if possible , can you explain in detalis !!! ...
Hi quzah
No , this is another problem , Here i need to search on file
i have this for loop , but I need to improve it to do what i need , and it is not good , plz cprrect me
for ( i = 0, ptr = line; sscanf(ptr, "%d%n", &z[i], &n) == 1; ++i )
Hi guys !!!
Suppose we have a data file like this
0 2 4
1 2
2 3
3 4
Hi guys ,,
Now , I have another problem , I tried but it doesn't work , suppose we have data file as before
0 1 3 4
1 3
2 4
I don't need print out the 2ed row because is already in...
Hi quzah
Please could you explain to me , i didn't understand what you did , I am not very good in C
Thanks alot Dave_Sinkula , it works , and as what i need , agian thanks alot
Thanks Dave_Sinkula , But I would like the out put will be same as the data file !!! any help
Thaks mitakeet , But it doesn't work !!!
Thanks for that , I forgot to say that i am not good in C programming , I just start to do so , so please help me !!!
This my code
int main()
{
int i,j;
int z[500];
hi all, i'm so mess up with this problem.
suppose a data file Data.dat:
0 1 3 4
1 3
2 4
how can i stop read those numbers when matching the newline?
PS: # of numbers must be...