Hello and thanks for replying,
I just use a Unix shell and i don't really know what's happening inside the system.
I tried to solve the problem with the zero values by placing a for loop...
Type: Posts; User: g_p
Hello and thanks for replying,
I just use a Unix shell and i don't really know what's happening inside the system.
I tried to solve the problem with the zero values by placing a for loop...
Thank you very much for replying.
Well i did all the following:
So, i made some modifications to the program:
1) I first call the times function before i fork().
2) I use the waitpid...
Thanks for replying,
Well something is weird with my program.
Well i removed the following lines with the string "Hello World"
(placed them into comments)
write(fd[1], string,...
Hello,
i'm writing a program in C and i'm trying to implement the function "times".
In my program,i establish a pipeline and afterwards i create a child by using the fork() function.
The child...
Thank you very much!It worked! :)
Could you please give a simple example?because i'm a bit confused!Let's say we have 'w' and we wold like to get its value how do we use divide and modulo ?
Thanks in advance!
after struct my_Expr
Well as i saw in the tab file the struct my_Expr is defined before
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
well when i do make this is what happens:
flex lex.l...
Everything looks fine in the tab file.Well, the problem is that Lex and Yacc were working fine but when i tried to add the new struct in the %union the compiler didn't accept it. I had googled the...
What i would like also to mention is that when i do int exprValue,or char *exprValue it is compiled fine, the problem is when i use a struct!!!
Well the code is a bit confusing, i'm trying to make a parser for a compiler.
i have the parser.y program which is like that:
%{
#include <stdio.h>
Wow really quick reply!Thanks a lot!
Well i have two types of versions
a)gcc (GCC) 3.4.2
Copyright (C) 2004 Free Software Foundation, I
b)gcc (GCC) 4.1.3 20080114 (prerelease) (Debian...
Hello to all,
i have a shell and i use gcc in order to compile my programs.Can anyone tell me if there is any command which can tell me what kind of version of gcc i use?
Thanks in advance! :)
Yeah, thanks a lot!
It worked! :)
Good morning to all!
I have a program and i'm trying to use itoa but i get the following error :
Undefined first referenced
symbol in file...
Hi, thanks for replying!
It works and i get a warning: pointer type mismatch in conditional expression but it's ok cause the program runs now!!!
Do you know what i shall do in order not to have...
Hello, i have made an array of pointers and i have filled the array with NULL values in every index
When i'm trying to print the value of each cell/index i do:
printf("%s\n",array[i]); and i...
Hello to all
i have a union in Yacc (parser.y) like that :
%union {
int intValue;
char *stringValue;
I'm trying to link the parser and the scanner together and i get the following:
Does anybody know what do i do wrong?
#gcc -o hello scanner.c parser.c
Undefined first...
Well you were right, I had forgotten a ';' in a previous definition/declaration of a struct.
Thank you!!!
Well i have already done that and it doesn't work, if you see a link referring to %unions in Yacc a ';' is not needed.
Thanks for replying!
Hello to all,
I 'm trying to make a compiler.I have already made the lexical analyzer and the parser and i'm trying to link them together. When i link them , i get the error :
parser.y:28:...
Hi to all!
I have made a yacc program example.y
%{
#include <stdio.h>
Hi to all!
I want to make a hash table using a hash function.
I do:
#include<stdio.h>