Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.19 seconds; generated 49 minute(s) ago.

  1. > int array[13195]; > int...

    > int array[13195];
    > int new_array[13195];
    This approach is totally impractical for any large number.

    Write a loop which just gives you the next prime number to begin with, then progress...
  2. > Does this mean the function addnumbers is...

    > Does this mean the function addnumbers is expecting two variables num1 and num2?
    As far as the function is concerned these are what they're called.

    The names of your variables where you call...
  3. Replies
    4
    Views
    138

    Post your code.

    Post your code.
  4. > It needs to be 0 - 1 - 10 - 11 - 12 - 13 -14...

    > It needs to be 0 - 1 - 10 - 11 - 12 - 13 -14 -15 -16 -17 - 18 - 19 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9
    OK, so you tweak john.c's code a little bit.

    > cmp = ra->x - rb->x;
    You basically have 4...
  5. Step 1 is indent your code. ...

    Step 1 is indent your code.


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

    float **MatriceInput(int R);

    int main(void)
    {
  6. > - [0,0], [1,0], [10,0], [11,0],...[19,0],...

    > - [0,0], [1,0], [10,0], [11,0],...[19,0], [2,0], [3,0], ...[9,0]
    There's no 19 in your example input.

    Post an example of actual input, and an actual desired output.


    Does this match your...
  7. > How do you pass variables between functions? ...

    > How do you pass variables between functions?
    Erm, how did you manage to call printf and scanf then?
  8. Replies
    5
    Views
    151

    It helps to copy the very bare minimum into a...

    It helps to copy the very bare minimum into a file and try it.


    #include <stdio.h>

    // a function pointer
    typedef int (*ifunci)(int);

    // a const pointer to a function pointer
    typedef ...
  9. Replies
    1
    Views
    78

    You can replace the inner while loop with...

    You can replace the inner while loop with suitable application of / and %
  10. > Space is important? In printf and scanf format...

    > Space is important?
    In printf and scanf format strings it is.
  11. Well it seems to me that your attempt to read the...

    Well it seems to me that your attempt to read the "last name initial" failed, because you used "%c" as the format.

    Try instead a leading space in the format.


    char initial;
    printf("Enter...
  12. No it doesn't. Different how? Different...

    No it doesn't.

    Different how?
    Different position on screen - well, that's windows for you.
    Different contents - well, that's your program.
    Different termination message - maybe your program, if...
  13. Replies
    1
    Views
    95

    Well for small one-off functions, the simplest is...

    Well for small one-off functions, the simplest is to just copy the code - providing the licence terms are something you can agree to.

    If you only have /sbin/rarp, then you're stuck with just...
  14. Replies
    3
    Views
    166

    > I suck at programming and i rlly need help as...

    > I suck at programming and i rlly need help as it's due in a week's time
    You have plenty of time then to practice a few things, do some reading, post code attempts, get feedback etc etc.

    A...
  15. bank management system.c ...

    bank management system.c
    Get your money back, and stop trying to copy/paste your way to knowledge.
  16. Replies
    5
    Views
    181

    while ( 1 ) { if (kbhit) { what =...

    while ( 1 ) {
    if (kbhit) {
    what = getche();
    }
    switch(what)
    {
    case '1': writeBill(); break;
    case '2': retrieve(); break;
    // . . . .
    ...
  17. Replies
    1
    Views
    144

    Accessing command line parameters/arguments...

    Accessing command line parameters/arguments
    So for example, you could type
    myprog ./input/images/*.bmp ./output

    Or you could just specify the names of your input and output directories, and use...
  18. Replies
    15
    Views
    371

    Well since you have things like "Money...

    Well since you have things like "Money Heist,8,4,Y" in the 2nd file, you can't decide what to write until you have read both files into memory.

    Some ideas for you to think about.


    typedef...
  19. Replies
    1
    Views
    133

    Well there is enough info in your previous thread...

    Well there is enough info in your previous thread to at least have a go at some code.
    Problems with Reading and copying string from txt to console
  20. Replies
    15
    Views
    371

    Tell us more about the format of your two input...

    Tell us more about the format of your two input files.
  21. Replies
    72
    Views
    853

    > Just occurred to me a brilliant way to grab...

    > Just occurred to me a brilliant way to grab random values,
    You sound like a noob who just "discovered" bubble sorting and thinks it's the most awesome thing they've ever seen.

    > I've tested a...
  22. Replies
    15
    Views
    371

    Are your two input files line for line identical...

    Are your two input files line for line identical as far as the names go?
    Eg.


    Big Little Lies,355,7,Y
    Riverdale,401,1,N
    The X-Files,402,3,Y
    Dark,444,2,Y

    Big Little Lies,55,7,N
  23. Replies
    1
    Views
    150

    First, you should print your requirements out (on...

    First, you should print your requirements out (on paper), with decent paragraph and sentence breaks (not a wall of text like you posted).

    Give yourself room to add information on the page, like...
  24. Replies
    8
    Views
    232

    > int i; > for (int i = N-1; i >= 0;...

    > int i;
    > for (int i = N-1; i >= 0; i--)
    There's no point having the first declaration of i.

    > printf("\n read address %p \n ", (p + N-1));
    Try
    printf("\n read address %p \n ", (p...
  25. Replies
    8
    Views
    232

    Looks better. Now just complete the code for...

    Looks better.

    Now just complete the code for the comments.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4