Search Results

Search: Posts Made By: littleboyblu
Forum: IP Networking 04-19-2009
10,831
Posted By littleboyblu
try wireshark
try wireshark
Forum: Ubuntu 04-13-2009
2,219
Posted By littleboyblu
kubuntu installation problem
Hi, i had a problem during kubuntu installation from ubuntu and now i can't start ubuntu correctly. it loads only desktop and doesn't work. Is there a way to solve this problem? I have ubuntu 8.10...
Forum: Programming 04-10-2009
5,294
Posted By littleboyblu
thanks
thanks
Forum: Programming 04-10-2009
5,294
Posted By littleboyblu
i have a function that reads the first line and...
i have a function that reads the first line and another function that must read all lines. i don't want open the file two times so i pass the file pointer to the second function which starts to read...
Forum: Programming 04-10-2009
5,294
Posted By littleboyblu
i have to read the first line and after the file...
i have to read the first line and after the file completely
Forum: Programming 04-10-2009
5,294
Posted By littleboyblu
rewind the pointer to 0
rewind the pointer to 0
Forum: Programming 04-10-2009
5,294
Posted By littleboyblu
C reading file
Hi,
how can i read first line two times without close file?
Forum: Programming 04-09-2009
10,730
Posted By littleboyblu
ok, can i for example declare a pointer to...
ok, can i for example declare a pointer to integer and allocate memory to it inside any function? how can i deallocate memory?
Forum: Programming 04-09-2009
10,730
Posted By littleboyblu
global variables and dynamic allocation
Hi,
is it possible in C to allocate dynamically a global variable??
Forum: Programming 04-09-2009
2,318
Posted By littleboyblu
Sorry, it was a stupid problem, i solved it,...
Sorry, it was a stupid problem, i solved it, thanks
Forum: Programming 04-09-2009
2,318
Posted By littleboyblu
buffer over flow detected
Hi,
my program stops with a buffer overflow error, but i can't understand the problem. I have a file like:

int array[n]; //global variable
void func(){
int i;
for(i=0;i<n;i++)array[i]=-1;...
Forum: Programming 03-31-2009
3,476
Posted By littleboyblu
comparison between float numbers
Hi, i have a simple control like this:
if(sum>1.0)...
If i try to print sum i get 1.000000 but the check returns true. I think it depends on float precision. How can i modify the check?
thanks
Forum: Programming 03-30-2009
6,864
Posted By littleboyblu
thanks pshaikh
thanks pshaikh
Forum: Programming 03-28-2009
6,864
Posted By littleboyblu
Sorry Shamrock but I did not understand your...
Sorry Shamrock but I did not understand your answer.Should ptr be a pointer to array??
I tried the following and it seems to work fine:

int main(){
int *array;
int **ptr = &array;
sub(ptr);
}...
Forum: Programming 03-27-2009
6,864
Posted By littleboyblu
ok but in this way i lose the array when sub...
ok but in this way i lose the array when sub returns...
Forum: Programming 03-27-2009
6,864
Posted By littleboyblu
shamrock could you correct my code please??
shamrock could you correct my code please??
Forum: Programming 03-26-2009
6,864
Posted By littleboyblu
array dynamic allocation
Hi,
I have the following problem: i must allocate a dynamic array from a subroutine which should return such array to main function. The subroutine has already a return parameter so i thought of...
2,114
Posted By littleboyblu
perl hash
i have an hash table in which each value is an array. How can i print for each key the array values??? something like this:


thanks
Forum: Programming 03-14-2009
3,939
Posted By littleboyblu
ok, thanks very much.
ok, thanks very much.
Forum: Programming 03-13-2009
3,939
Posted By littleboyblu
ok, it works fine. thanks very much. Could you...
ok, it works fine. thanks very much. Could you explain me why y(float **pf){}
is not correct and in which cases i have to use it?
Forum: Programming 03-13-2009
3,939
Posted By littleboyblu
What should the formal parameter be?? I tried ...
What should the formal parameter be?? I tried
float **table
but doesn't work
Forum: Programming 03-12-2009
3,939
Posted By littleboyblu
C programming working with multidimensional array
Hi,
I have the following variable declaration which looks like a 3d array or N matrixs KxK of floats
float (*table[N])[K];
I have to pass to a function only the first table.
How can I do it??...
Forum: Programming 03-10-2009
2,210
Posted By littleboyblu
ok, thanks
ok, thanks
Forum: Programming 03-10-2009
2,210
Posted By littleboyblu
ok, how can i avoid it happens??
ok, how can i avoid it happens??
Forum: Programming 03-10-2009
2,210
Posted By littleboyblu
variables overwritten
Hi, i have some problems with the following code:

char *tab_path[num_classifiers];
char *sep=" \t\n";
char line[MAXLINE];
char *p;
FILE * file;
int i = 0;
...
Showing results 1 to 25 of 39

 
All times are GMT -4. The time now is 12:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy