Search:

Type: Posts; User: g_p

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Hello and thanks for replying, I just use...

    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...
  2. Thank you very much for replying. Well i did...

    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...
  3. Thanks for replying, Well something is weird...

    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,...
  4. Problem with calculating the cutime,stime,utime of "times( )", they return zero.

    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...
  5. Thank you very much!It worked! :)

    Thank you very much!It worked! :)
  6. Could you please give a simple example?because...

    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 ?
  7. Is there any function for converting a character to a binary value?

    Thanks in advance!
  8. Replies
    11
    Views
    2,419

    after struct my_Expr

    after struct my_Expr
  9. Replies
    11
    Views
    2,419

    Well as i saw in the tab file the 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...
  10. Replies
    11
    Views
    2,419

    Everything looks fine in the tab file.Well, the...

    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...
  11. Replies
    11
    Views
    2,419

    What i would like also to mention is that when i...

    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!!!
  12. Replies
    11
    Views
    2,419

    Well the code is a bit confusing, i'm trying to...

    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>
  13. Replies
    11
    Views
    2,419

    Wow really quick reply!Thanks a lot! Well i...

    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...
  14. Replies
    11
    Views
    2,419

    How do i find the gcc version i have?

    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! :)
  15. Thread: Problem using itoa

    by g_p
    Replies
    2
    Views
    4,900

    Yeah, thanks a lot! It worked! :)

    Yeah, thanks a lot!
    It worked! :)
  16. Thread: Problem using itoa

    by g_p
    Replies
    2
    Views
    4,900

    Problem using itoa

    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...
  17. Thread: How to printf NULL

    by g_p
    Replies
    5
    Views
    10,068

    Hi, thanks for replying! It works and i get a...

    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...
  18. Thread: How to printf NULL

    by g_p
    Replies
    5
    Views
    10,068

    How to printf NULL

    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...
  19. Error:request for member in sthg not a structure or union

    Hello to all

    i have a union in Yacc (parser.y) like that :



    &#37;union {

    int intValue;
    char *stringValue;
  20. Replies
    6
    Views
    3,063

    I'm trying to link the parser and the scanner...

    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...
  21. Replies
    6
    Views
    3,063

    Well you were right, I had forgotten a ';' in a...

    Well you were right, I had forgotten a ';' in a previous definition/declaration of a struct.
    Thank you!!!
  22. Replies
    6
    Views
    3,063

    Well i have already done that and it doesn't...

    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!
  23. Replies
    6
    Views
    3,063

    Yacc problem with YYSTYPE

    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:...
  24. Replies
    0
    Views
    3,240

    Yacc question related to %type

    Hi to all!

    I have made a yacc program example.y




    %{

    #include <stdio.h>
  25. Thread: Hash function

    by g_p
    Replies
    1
    Views
    2,210

    Hash function

    Hi to all!

    I want to make a hash table using a hash function.

    I do:




    #include<stdio.h>
Results 1 to 25 of 85
Page 1 of 4 1 2 3 4