I have the following program. Everything seems ok, the only problem is that the wight always prints 0.
How can i fix that
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#define...
Type: Posts; User: goran00
I have the following program. Everything seems ok, the only problem is that the wight always prints 0.
How can i fix that
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#define...
what should I have it output instead of c. strg?
I am making a program that will check a documents nd print the number of times that it had the word 'pets'.
The program runs ok, but it prints: I got the word: <null>.
The code is included...
i also tried inputText with no luck
so how would i go about fixing that
i tried using c and c* and thats not working
I am using the following program to print the document GPA.txt and to figure out how many times the word "pets" is in that document.
I manually counted it and it's in there 4 times.
The document...
Hello,
I am trying to make my program read a file thats on my desktop.
When I run the code all I get is smiley faces.
What is the problem with my code?
#include <stdio.h>
#include...
i am trying to run the following program, but for some reason it does not genetare random numbers, it always gives me the same number ( i believe its the lowest negative number that c has).
How do I...
i am sorry to keep bothering you but i am very new to this whole programing thing.
do i use void instead of double*
i got the prototype down and i indented, and I am trying to figure out why it still tells me that foo is not a function?
#include <stdio.h>
#include <stdlib.h>
double* makeAnArray(double...
i am trying to run the following program and i keep getting a compiling error that says that foo is not a function. What am I doing wrong?
#include <stdio.h>
#include <stdlib.h>
double*...
what is it used for? when do you use it? what is the purpose of it???
thanks for help
just a quick question
fflush(stdout);
what is this? what does it do?
what is foo?????
if i swich the two lines of the code
return 0;
free(makeAnArray);
it seems to work. The question that I have is if I am using the right array makeAnArray or is it supposed to be anArray...
I have searched online read books and I can not figure out how to this.
can you shouw me an example of it. I do not recall an example of this.
i have been strugling with this for quite a few days now. This is my first time using c so I am having an extremely hard time with it. I understand that you have been telling me the same thing...
i have been through my book and that was no help at all.
from what i get from it is that the array size has to be declared at he beggining and cannot be changed, but how am i supposed to have the...
i made all the corrections and it is still not working
this is the errror that i get
Windows has triggered a breakpoint in Assignment 8.1.exe.
This may be due to a corruption of the heap, which...
i fixed
int anArray[]={0}
in the declarations
now when i run the program i get an error msg what is wrong with it?
i am trying to make an array where user choses the size, and i dont seen able to get it right. What am I doing wrong?
#include <stdio.h>
#include <stdlib.h>
double* makeAnArray(double...
i changed that to free(array)
but the problem i am having with that is
error C2072: 'array' : initialization of a function
here is the code. How can i fix that
#include <stdio.h>
#include...
i changed everything over to doubles
not when i run the program i get this error box:
Windows has triggered a breakpoint in Assignment 8.1.exe.
This may be due to a corruption of the heap, which...
what would i have to keep as an int since size is going into the function as an int???
or could i just make everyhting a double?
i am not understand this, i understand what you are saying but where am i making the mistake?