Search:

Type: Posts; User: Izzy123

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,686

    IPC thread question

    i'm currently doing sample questions to practice for my exam, and one of the questions about IPC(Inter process communication) stated that processes need to communicate to:
    1. pass some information...
  2. Hey tabstop thanks for the quick reply, so you...

    Hey tabstop thanks for the quick reply, so you are suggesting that I open the file again in the "read file" function?
  3. Control Program for microcomputers simulator problem

    The program first initialize disk, then creates and read file and delete file. I have no problem initializing and deleting But I'm having problem on reading the file that I created

    Create file...
  4. Replies
    5
    Views
    2,381

    I now need to use fork() and Use one of the...

    I now need to use fork() and Use one of the exec() family to run the program requested which is the Inputting and tokenizing lines I wrote above. But I'm not sure how to put the code into the exec...
  5. Replies
    5
    Views
    2,381

    Hi thanks again for the reply. I never used scanf...

    Hi thanks again for the reply. I never used scanf before. It's also the first time I've ever program with C using Linux, I used to do C++ programming in Windows but I found out they are quite...
  6. Replies
    5
    Views
    2,381

    thanks for the reply. I added the sscanf : ...

    thanks for the reply. I added the sscanf :

    main ()
    {
    char line [ MAX_LINE ] , * words [ MAX_WORDS ] , message [ MAX_LINE ];
    int stop =0 , nwords =0;
    int i;

    while (1)
    {
  7. Replies
    5
    Views
    2,381

    Detect "Exit" as first word

    Hi im making a shell program that reads a line of input from the user, then if "cont" is detected as the first word of the line inputted, the line will be tokenized.

    here's my main code

    main...
  8. Replies
    1
    Views
    2,559

    linux vs windows?

    I was asked to code a C program on Linux. But I've never used Linux before, all I used for coding was Dev C++ for Windows. So I'm just wondering what's the difference for coding in Linux and Windows?...
  9. Replies
    5
    Views
    2,629

    I have a print deck function, I try to put the...

    I have a print deck function, I try to put the function in but it gives error

    void printdeck( const Card * const Deck )
    {
    int i;
    for ( i = 0; i <= 51; i++ ){
    ...
  10. Replies
    5
    Views
    2,629

    HI thanks for the reply. Can you give me an...

    HI thanks for the reply. Can you give me an example on how to outputting from each hand instead of from the array? Sorry Im beginner at coding and really confused now.
    Thanks again.
  11. Replies
    5
    Views
    2,629

    Help with deal cards program.

    Hi I'm making a poker game program and I need to deal 5 hands of cards(each hand has 5 cards each) in the program, each hand needs to contain different cards and we need to then display the number of...
  12. Replies
    5
    Views
    1,454

    Hi thanks for the reply. I tried to change the...

    Hi thanks for the reply. I tried to change the fill deck function to:

    void fillDeck( Card * const wDeck, const char * wFace[], const char * wSuit[], const char * wColor[])
    {
    int i;
    ...
  13. Replies
    5
    Views
    1,454

    need help with Card Dealing Program

    I'm currently making a card dealing program, it is suppose to display a list of cards like this:
    "Ace of Heart, is red"
    "Two of Heart, is red"
    .
    .
    "Ace of Spade, is black"
    and so on for all...
Results 1 to 13 of 13