Search:

Type: Posts; User: Alienchicken

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,068

    thanks. I got it to work.

    thanks. I got it to work.
  2. Replies
    4
    Views
    2,068

    Copying an array into another

    Hi i'm currently working on trying to create a concentric magic square for an array of size n.

    So far what i have done in my method was determine the smalles magic square i can generate.

    i.e...
  3. Replies
    0
    Views
    1,090

    Copying an array into another

    Hi i'm currently working on trying to create a concentric magic square for an array of size n.

    So far what i have done in my method was determine the smalles magic square i can generate.

    i.e...
  4. Replies
    9
    Views
    1,919

    Wow. My Occupied function was the problem all...

    Wow. My Occupied function was the problem all along.


    Works perfectly.



    Thanks alot for the help!
  5. Replies
    9
    Views
    1,919

    Yeah it is.

    Yeah it is.
  6. Replies
    9
    Views
    1,919

    Ok i tried this if (j < 0) j +=...

    Ok i tried this


    if (j < 0)
    j += half;
    if (i >= half)
    i -= half;


    But here is my matrix now
  7. Replies
    9
    Views
    1,919

    Hi thanks for that insight, so far i am on the...

    Hi thanks for that insight, so far i am on the right track,

    this is what i have done so far:

    However, it prints only a few of the blocks. This is my square now



    Am i still missing...
  8. Replies
    9
    Views
    1,919

    LUX problem

    Hi I've been trying to implement the LUX method for singly even magic squares. However I've run into a problem. Can someone please tell me where I'm going wrong;

    For example here's my output for a...
  9. Replies
    4
    Views
    1,242

    Why is this faster

    Hi everyone, I'm working on a program here and came across this discovery


    for(i=0;i<Nli++){
    while(arr[i] * h[index[i]] <= h[num-1]) index[i]+=1;
    }

    AND
  10. Replies
    42
    Views
    4,907

    You should have listened to this post here. Its...

    You should have listened to this post here. Its much simpler than it looks



    for(i=0;i<length;i++){
    while(num % S[i]==0) num= num/ S[i];

    ...
  11. Replies
    42
    Views
    4,907

    should have == there instead of =

    should have == there instead of =
  12. Replies
    8
    Views
    3,582

    Ok well all that is done but my program still...

    Ok well all that is done but my program still doesn't compile i now get this error message



    Can some one explain what i am doing wrong there


    I am almost done with this prograam once i get...
  13. Replies
    8
    Views
    3,582

    Ah yes, that's the problem there you're right....

    Ah yes, that's the problem there you're right. Thanks alot it really helped. My struct declaration was wrong.
  14. Replies
    8
    Views
    3,582

    Ok thanks guys reviewed my program forgot to...

    Ok thanks guys reviewed my program forgot to declare the fuctions at the top


    But I'm still getting this error





    in all my functions where i search the next node.
  15. Replies
    8
    Views
    3,582

    I'm using Dev C compiler I'll have to review my...

    I'm using Dev C compiler
    I'll have to review my code again
  16. Replies
    8
    Views
    3,582

    Buggy C code

    Hi yall i needed to write a program that reads all the words from a file and stores the unique words in a linked list and counting how many of them appear in the text. Here's my code but it seems to...
  17. Replies
    12
    Views
    1,928

    OKay this is just a rough draft, (forgive me if i...

    OKay this is just a rough draft, (forgive me if i made any syntax errors so far)
    Still i can't seem to execute this one as well.

    while (j!=n){
    printf ("\n");
    ...
  18. Replies
    12
    Views
    1,928

    yeah i tried but i can't quite seem to traverse...

    yeah i tried but i can't quite seem to traverse the array to print the desired output
  19. Replies
    12
    Views
    1,928

    Yep i fixed that

    Yep i fixed that
  20. Replies
    12
    Views
    1,928

    The input is a follows;

    The input is a follows;
  21. Replies
    12
    Views
    1,928

    Thanks for the welcome my friend ok here's what...

    Thanks for the welcome my friend
    ok here's what i have

    insert
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #define Max 1000

    main (){
  22. Replies
    12
    Views
    1,928

    Formatting using arrays

    Ok I have a file called paragrapgh.txt, in which i store into an array, now i ask the user to enter W, the maximum number of character allowed per line.

    Now i need a function to start displaying...
Results 1 to 22 of 23