Search found 17 matches

by ghostrider_gr
Tue Apr 05, 2011 1:47 pm
Forum: Linux
Topic: help with script
Replies: 6
Views: 5312

Re: help with script

Neo wrote:me either. I worked out a similar job but that's on Windows long time ago. I'm sure doing this on Linux would be tricky.
awk seems to be a method but I can't tell you anything about it without knowing it.
can you help me to do this on windows? i will copy my files and do it on windows... thanks!
by ghostrider_gr
Tue Apr 05, 2011 12:27 am
Forum: Linux
Topic: help with script
Replies: 6
Views: 5312

Re: help with script

i am on linux.. is there any way of copying the statistics i need in columns so as to copy/paste them in excel... i think it can be done with awc script but i do not knwo awk script at all..
by ghostrider_gr
Mon Apr 04, 2011 5:30 pm
Forum: Linux
Topic: help with script
Replies: 6
Views: 5312

help with script

well i need your help.. i have run many simlations and saved their results in files.. no i need to "take" certain statistics frow that files and copy them into an excel document so as to make some graphs.. cn anyone help me write a script to do this automatically and not manually cause i have 350 fi...
by ghostrider_gr
Fri Jan 14, 2011 6:56 am
Forum: C/C++ Programming
Topic: help with code..
Replies: 11
Views: 9865

Re: help with code..

This is a very simple requirement and getting it sorted with your code is not easy. Can you write a pseudo code first so you will understand what is required here rather than changing a code which is written for something else. Something like, Read N, M, B Read from stdin to buffer for i = 1 to M /...
by ghostrider_gr
Fri Jan 14, 2011 1:57 am
Forum: C/C++ Programming
Topic: help with code..
Replies: 11
Views: 9865

Re: help with code..

Your requirement is not clear and your code is very badly organised. No indents maintained. Can you reorganize it and explain your problem by naming what is N, M and B. I don't see that you open a file for reading with fopen. The other point is, we can't write codes for you. We just can try to give...
by ghostrider_gr
Fri Jan 14, 2011 12:46 am
Forum: C/C++ Programming
Topic: help with code..
Replies: 11
Views: 9865

Re: help with code..

thanks a lot! i got many of them on my own.. anyway my attempt is this: i want to read first 2 numbers, N,M,B and for the next M lines i will read 3 numbers per line, and store them in an array.. for example, if the input is: 2 3 50 1 2 3 4 5 6 7 8 9 i must have N=2, M=3,B=50 and an array A ={1,2,3 ...
by ghostrider_gr
Thu Jan 13, 2011 8:19 pm
Forum: C/C++ Programming
Topic: help with code..
Replies: 11
Views: 9865

help with code..

well i have some questions.. its given to me a routine so as to read large inputs faster than using scanf.. the problem is that i do not quite understand what this rutine does? the code is: #include <stdio.h> #define BSIZE 1<<16 char buffer[BSIZE]; int bpos = 0, bsize = 0; int readInt() { int d = 0,...
by ghostrider_gr
Fri Jul 16, 2010 2:16 pm
Forum: Java Programming
Topic: newbie in java_help
Replies: 1
Views: 2370

newbie in java_help

hello.. i am new to java.. what i want to do is read a series of datas. f.e read: 1234 4 5 2345 5 6 2345 6 7 and so on.. i do not know how many lines of data i will have so i am thinking that i will no use an array.. i am thinking of using something like a list but i haven't understood how do they w...
by ghostrider_gr
Wed Apr 28, 2010 1:54 am
Forum: C/C++ Programming
Topic: code help
Replies: 5
Views: 4494

Re: code help

Neo wrote:It sounds like listS is NULL.
yes but in the first printf i get the right result... i mean its like my programm doesn't work from that point.. :cry:
by ghostrider_gr
Wed Apr 28, 2010 1:22 am
Forum: C/C++ Programming
Topic: code help
Replies: 5
Views: 4494

Re: code help

The sequence looks like p (2+k) < UPPER_LIMIT where k = -1, 0, 1, 2, 3, ...... N If you take the first prime number on the list.. i.e.: 2 k = -1, 2 (2+(-1)) = 2 1 = 2 ? Save same number to the list k = 0, 2 (2+( 0)) = 2 2 = 4 k = 1, 2 (2+( 1)) = 2 3 = 8 k = 2, 2 (2+( 2)) = 2 4 = 16 k = 3, 2 (2+( 3)...

Go to advanced search