Search Results

Search: Posts Made By: giampoul
Forum: Programming 02-08-2016
7,010
Posted By giampoul
Anyone ?
Anyone ?
Forum: Programming 01-19-2016
7,010
Posted By giampoul
C: scatterv/gatherv a 2D array
Hello everyone,

I am new to MPI in C, and i am trying to scatter the rows in a 2D array of char, do some computations and after gather the 2D array again. Let's say that i use 4 processes:

I...
Forum: Hardware 08-24-2012
2,319
Posted By giampoul
qosmio f50-freeze when trying to update bios-black screen
Hi! I own a Qosmio f50 laptop and today i download the file from toshiba to update my bios. Everything went well until installer reaches block 16 when system freezes. I left it half an hour and then...
Forum: Programming 05-20-2012
4,394
Posted By giampoul
One last question on this.. Kind of stuck in...
One last question on this.. Kind of stuck in that:
What is the routine, if my equation is n = 1 - i^2 ?
I'm a little new handling minus numbers in hex.
Maybe, something with MSB bit which is the...
Forum: Programming 05-17-2012
4,394
Posted By giampoul
With Virtual 8085 I get 2 errors. line 2: only...
With Virtual 8085 I get 2 errors.
line 2: only 8-bit second operand.
I changed that with:MVI A,00H
line 7: Invalid register specified.

Ok, i think that do the job!

MVI B,03H
MVI A,00H...
Forum: Programming 05-15-2012
4,394
Posted By giampoul
I found something with some help... This: ...
I found something with some help...
This:

MVI A,00
MVI C,0AH
LXI D,0100H
LOOP: STAX D
INX D
INR A
DCR C
JNZ LOOP
...
Forum: Programming 05-13-2012
4,394
Posted By giampoul
MVI A,0 MOV A,B loop CMP 05,A ...
MVI A,0
MOV A,B

loop CMP 05,A
BEQ end_for

ADD 01,B
ADD 01,A
JMP loop
end_for HLT

I think this must be better..
Error in line 4: Invalid command.
Forum: Programming 05-10-2012
4,394
Posted By giampoul
Yes, sorry.. I get: unfinished code in line...
Yes, sorry..
I get:
unfinished code in line 3.

:wall:
Forum: Programming 05-10-2012
4,394
Posted By giampoul
Assembly 8085
Hi eneryone,
Im trying to learn about assemply 8085 in order to make a project i have.

First of all which emulator to use? I work in linux and I currently istalled GNUSim8085.
Also, maybe...
Forum: Programming 04-18-2012
1,515
Posted By giampoul
A little more about this? Maybe an example?...
A little more about this? Maybe an example? :confused:
Forum: Programming 04-17-2012
15,906
Posted By giampoul
Thanks for your example! I didnt understand a...
Thanks for your example!
I didnt understand a lot at the beginning, but then i looked for strtok_r() more at the manual and finally i got what i wanted.
Sorry for the late answer, and thanks for...
Forum: Programming 04-12-2012
1,515
Posted By giampoul
Thanks! I used this code : #include...
Thanks! I used this code :

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main()
{
char str[20] = "ls -l text.txt";
FILE *fp;
int status;
char terminal[512];

fp...
Forum: Programming 04-12-2012
1,515
Posted By giampoul
Save system() into char[]
Hi!
I have something like this :

...
char buffer[25] = "ls -l";
system(buffer);
...

and i just want to save what i get to the terminal from ls -l into a char.
I first think of doing...
Forum: Programming 03-31-2012
2,012
Posted By giampoul
Yes, that's solved my provlem! And if i want to...
Yes, that's solved my provlem!
And if i want to refer to an item from Stu arr ??
My new global variables, after your help, are:

//these are global
typedef struct{
int x;
char na[20]; ...
Forum: Programming 03-31-2012
2,012
Posted By giampoul
typedef help
Hi!
This is part of my my code :

typedef struct{
int x;
char na[20];
char sur[20];
} Stu;

typedef struct{
Stu *arr;
int size;
int sort;
} Stus;

I want to ask how can...
Forum: Programming 03-27-2012
15,906
Posted By giampoul
Yes, the way you changed it works perfectly...
Yes, the way you changed it works perfectly thanks!
But, i will connect this code with another part which read the arrays from a .txt file.
I have already done the reading part, but i think that...
Forum: Programming 03-22-2012
3,927
Posted By giampoul
OK. It work pretty nice now! Its funny that...
OK.
It work pretty nice now!
Its funny that before some days, when my teacher show me an example of realloc, from where is based this program, i had almost the same question ( why we put * there )...
Forum: Programming 03-22-2012
3,927
Posted By giampoul
Random... Like : 1st Product name : a Code...
Random...
Like :
1st Product name : a
Code : 1
Stock : 1
Value : 1

so goes for the rest...
Its only for learning purposes nothing special ..
Forum: Programming 03-22-2012
3,927
Posted By giampoul
So sorry gcc compiler :p With my little...
So sorry gcc compiler :p
With my little experience i understood linux are more accurate so they need more accuracy.
You mean that if for example want an array magazi[4] i malloc it with 4 ofcourse...
Forum: Programming 03-22-2012
3,927
Posted By giampoul
problem with realloc( i think is gcc :/ )
Hi everyone,
i made this program. is a simple one for practising malloc, realloc and structs.
I have a struct named shop as global variable in which i take the size of the matrix from the keyboard...
Forum: Programming 03-22-2012
15,906
Posted By giampoul
First of all thanks for the help you giving to...
First of all thanks for the help you giving to me.
I am new in programming. Actually i am studying in informatics. That's also the reason my code is a mess, i mean lining and everything ...
I tried...
Forum: Programming 03-19-2012
15,906
Posted By giampoul
I look your comments and tried to adjust my...
I look your comments and tried to adjust my program. I think i correct these :

The code is now :

//multiply a[2][3] * b[3][4] = c[2][4]
//with fork
//each child completes one c[2][4]'s row
...
Forum: Programming 03-18-2012
15,906
Posted By giampoul
I'm trying to correct the code. i have this now: ...
I'm trying to correct the code. i have this now:

//multiply a[2][3] * b[3][4] = c[2][4]
//with fork
//each child completes one c[2][4]'s row

#include<stdio.h>
#include<stdlib.h>...
Forum: Programming 03-14-2012
15,906
Posted By giampoul
Looking for it and will reply back! Thanks :b:
Looking for it and will reply back!
Thanks :b:
Forum: Programming 03-13-2012
15,906
Posted By giampoul
I didnt knew that child processes use a copy of...
I didnt knew that child processes use a copy of the variables i use. i should re-check the man fork(). Yes i want to update array c in the parent. Looking pipes ...

---------- Post updated at...
Showing results 1 to 25 of 48

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