Search:

Type: Posts; User: dailysflash

Search: Search took 0.01 seconds.

  1. Replies
    23
    Views
    9,933

    Thanks, guys for your advice and teaching I...

    Thanks, guys for your advice and teaching I finally arrived at this,
    copied from local text editor.



    #include <stdarg.h>
    #include <unistd.h>
    #include <stdlib.h>

    int my_putchr(char);
  2. Replies
    7
    Views
    3,920

    Do you mind giving me a format

    Do you mind giving me a format
  3. Replies
    7
    Views
    3,920

    It returns an int with the data gotten from the...

    It returns an int with the data gotten from the user, However the codes works perfectly, the only issue i'm having with this code is that i only want the randomly generated code to be displayed after...
  4. Replies
    7
    Views
    3,920

    Creating a mastermind game

    I have an assignment to create a mastermind game where the player has 10 attempts to find the secret code. After each input, the game indicates to the player the number of well placed pieces and...
  5. Replies
    1
    Views
    1,852

    creating an implementation of ngram

    In computational linguistics and probability, an n-gram is a contiguous sequence of n items from a given sample of text or speech. The items can be phonemes, syllables, letters, words or base pairs...
  6. Replies
    16
    Views
    7,538

    I am having problems with the read function...

    I am having problems with the read function
    "Copy as text from vscode"


    char* ans = (char*) malloc(5 * sizeof(char));
    int i = read(0, ans, 5);
    if (i == 0) return;
    while (!isCorect(ans))
    ...
  7. Replies
    16
    Views
    7,538

    made some modifications and here is my code i'm...

    made some modifications and here is my code
    i'm having a little problem with the read format

    #include<stdio.h>
    #include<stdlib.h>
    #include<stddef.h>
    #include<string.h>
    #include<unistd.h>...
  8. Replies
    23
    Views
    9,933

    these are the authorized function for the...

    these are the authorized function for the assignment

    Authorized function(s)



    • write(2)
    • malloc
    • free
    • va_start, va_arg, va_copy, va_end (see man 3 stdarg)
  9. Replies
    23
    Views
    9,933

    Creating a printf function

    Hello guys,
    Please i need guidelines on working on this assignment

    The my_printf() function produce output according to a format as described below. The my_printf() functions write output to...
  10. Replies
    16
    Views
    7,538

    Thanks for your reply but the reason i used the...

    Thanks for your reply but the reason i used the read is because i can't use the scanf function
  11. Replies
    16
    Views
    7,538

    Creating a mastermind game

    I have an assignment to create a mastermind game where the player has 10 attempts to find the secret code. After each input, the game indicates to the player the number of well placed pieces and the...
Results 1 to 11 of 11