Can you plese help me , Ive been reading up on this for more than 2 hours now and I still cant mak a working program :(
Type: Posts; User: ICool
Can you plese help me , Ive been reading up on this for more than 2 hours now and I still cant mak a working program :(
I dont understand that formula you posted , I need to find square root of a number not a root of a function
Thanks for that ssharish2005 now when I changed it it works BUT
0.082106 , I always get that as the result . No matter which number I enter . Any other ideas ?
Ok thanks guys , I changed it to a do while loop , and I aded a variable x to do 10 repetitions , to achieve accuracy . However it still crashes.
#include<stdio.h>
#include<math.h>
int...
Thanks for that nadroj , I tried changing it to :
temp_root=(1/2*(temp_root+(2/temp_root))); , ( within while loop ) , but this makes my program crash . Is this undefined behaviour or am I doing...
I'm having some problems with this program , it hangs during operation :
#include<stdio.h>
#include<math.h>
int main(void)
{
// Calculates the square root of number...
Do NOT help this person, he has copied word by word ( just changed some variable names ) a bunch of code that I posted on this site for an assignement to get help , and this has costed me in getting...
Hi everyone , can someone please double check that this should work :
// A procedure that will scroll an image vertically and return back into matrix
void Image_vertical_scroll(int...
Ok cheers , thank you very much for your help
Yes but the problem is I don't have a graphical interface . So I have no idea what it's doing to my image . Unless somehow I can make an executable and then somehow send it to my computer ... Do you...
Sorry matsp , I didn't know how to add the :
.c.obj:
cc -o ${CFLAGS} $@ $<
But I'm afraid that no matter what I do it will not work , as it needs a library that is in this folder :...
FILE=Image
CFLAGS=-I. -I/usr/units/ep100/ass2.072/ `imlib2-config --cflags` -g
$(FILE): $(FILE).obj
Image_lib.obj
cc $(FILE).obj Image_lib.obj -o $(FILE) `imlib2-config --libs`...
I have been trying to get putty / xwin32 working for the last hour but it seems as there is a proble with uni server . ANyone know how I can use my dmccompiler to compile it ?
I tried dmc make ,...
> 3. You have duplicate defintions of the same function - that will just confuse everyone.
Believe me it's hard to be more confused than me right now . But I will try to fix :)
Hi , thanks for the ep100lib.h file matsp . I ended up putting it at the top of Image.c , as we are only meant to submit 2 files , the Image_lib.c and Image.c ...
Now it looks like this :
...
Uhm I just don't know how to solve my errors . I gave you all the information I can .
The header is present in both Image.c and the Image_lib.c ??
Header ? Do you mind checking the Image.c file , I' m not able to post the contents now , the network is clogged up at uni , and I can't even get terminal to open .
Please help , I have no idea how to get it working .....
If these are just warnings maybe I can still run it ?
................. working
I got it working , can someone please delete my attached files to avoid plagiarism
It's Image_lib.h ....
The make file , links the ep 100 libraries . Just typing make , and hitting enter should compile it.
> for (; choice != 0;)
I never knew you could do this . Mind explaining what the ; does ? This could be a replacement for all while loops than.
No problem , I'll be able to use the makefile tomorrow . Thanks for your help