thanks. I got it to work.
Type: Posts; User: Alienchicken
thanks. I got it to work.
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...
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...
Wow. My Occupied function was the problem all along.
Works perfectly.
Thanks alot for the help!
Yeah it is.
Ok i tried this
if (j < 0)
j += half;
if (i >= half)
i -= half;
But here is my matrix now
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...
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...
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
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];
...
should have == there instead of =
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...
Ah yes, that's the problem there you're right. Thanks alot it really helped. My struct declaration was wrong.
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.
I'm using Dev C compiler
I'll have to review my code again
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...
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");
...
yeah i tried but i can't quite seem to traverse the array to print the desired output
Yep i fixed that
The input is a follows;
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 (){
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...