it doesnt return any numbers it all it returns 1.#QNAN0 1.#QNAN0 1.#QNAN0 1.#QNAN0 1.#QNAN0 1.#QNAN0. Instead its supposed to return 6 floating point numbers, the first one being 28
Type: Posts; User: youngvito
it doesnt return any numbers it all it returns 1.#QNAN0 1.#QNAN0 1.#QNAN0 1.#QNAN0 1.#QNAN0 1.#QNAN0. Instead its supposed to return 6 floating point numbers, the first one being 28
the number for the first row is supposed to be 28, i havent calculated the other ones
6 11
21 22 23 24 25 26 27 28 29 30 31
-21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31
0 1 0 1 0 1 0 1 0 1 0
1 2 3 4 5 6 7 8 9 10 11
12 13 14 15 16 17 18 19 20 21 22
11 10 9 8 7 6 5 4 3 2 1
0 1 -1...
i checked my code over and over again and i cant seem to find a problem. Please take a look at my program and see if i made a mistake anywhere.
i know the loop executes six times which is correct its just not printing out the sums of the products of the 1 d array and 2d array
sorry i mean 6 numbers
the last loop in the main function is supposed to print the sums of the products of a one D array and the 2 D array. It prints the works of the second function. What is printed is this 1.#QNAN0...
yes, i know everything is correct but im not getting the numbers printed, the problem is in my second function and i tried it, can you give me some more advice please.
my second function does not seem to work. It is supposed to multiply each row of a 2D array by a 1D array. Im reading in a 2D and a 1D array from a file using I/O redirection <data1.txt > out1.txt....
i have to use a function its the way my assignment is
can you please give me an idea of how to do that please. Im totally new to this i dont have an idea of what to do
my problem is to add up the rows of a 2D array. im reading the values from a file using I/O redirection. <file3data.txt > out1.txt. My first function adds up the rows and it works fine but my second...
i still havent figured out how to initiate my first loop so that it reads the data till the end of the file, can you give any suggestions
in this loop does the loop keep looping until the end of file is reached or does it go on to the other loops after the first 3 numbers have been scaned using scanf.
[code[
while (scanf("%d%d%d",...
but i dont know how many characters there are in total is there a way to do this without a buffer cause we didnt learn that yet
oh ok , i think you made things a little clearer for me, thanks alot
thats exaclty what im trying to figure out, i dont know how to read data from a file until EOF is reached.
thats what im trying to figure out though, i dont know how to do that
its an assignment for school, the file saved as a textfile, its called data0.txt and your supposed to scan the file till the end of it using Input/Output redirection, it reads the file through the...
Im have trouble reading a file till its the end of a file using I/O redirection with my Quincy 2005 compiler. My first while loop is supposed to do this and i dont know how to start it. Can someone...
i am using I/O redirection through my compiler i dont need to open the
i read through the text but i still havent firgured out how to implement that in my program an you please give me some more advice.
how can i make my first loop read from a file until i have reached the end of the file
i have a problem to read a DNA strain ( a sequence of the letters A G T C) im confused about my first loop its supposed to read dada from a file and end when the file is done can someone please give...
i did that and it still doesnt work. Can you please show me the code to run the program.
#include <stdio.h>
int main (void)
{
int counter = 0;
int num1;
int largest = 0;