Thanks, I didn't even know what parsing meant. It made my search alot easier.
Type: Posts; User: n4rush0
Thanks, I didn't even know what parsing meant. It made my search alot easier.
can anyone give me an example program or functions that let me extract and use csv files to calculate things?
Thank you so much! With all your hints, I finally got most of it. The program runs smoothly except the first value for Tarray and Varray are zero's when they're not supposed to be.
can someone give me an example of using a .csv file and making a program to process,extract, synthesize, and/or calculate something.
this can be really simple. i just have no idea where/how to...
Okay, here's what I have now:
#include <stdio.h>
int main()
{
float Tarray[] = {0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 100, 120, 140, 160, 180, 230, 280, 380};
float Varray[] = {.21, .30,...
i get these errors:
18: redeclaration of 'i' with no linkage
13: previous declaration of 'i' was here
18: ISO C90 forbids mixed declarations and code
24: redeclaration of 'i' with no linkage...
I tried to do it like this:
#include <stdio.h>
int main()
{
float Tarray[] = {0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 100, 120, 140, 160, 180, 230, 280, 380};
Can someone show me how to edit the program so that Tarray, Varray, Vavg, and Tperiod will print?
Btw the most recent version is:
#include <stdio.h>
int main()
{
float Tarray[] = {0, 5,...
Thanks everyone! I fixed the printf statement and the array boundaries and it works now. I'm not sure if the time averaged voltage is a little off through. It gave me about .21, but i got about .22...
Does anyone know what the concept of "the worst possible values" means? I need to create/explain a program in C/Python demonstrating them
Anyone know a good way to find a .csv file and writing a C program to process this file by extracting, synthesizing, and/or calculating something of interest. (Like, iunno, calculating averages,...
#include <stdio.h>
int main()
{
float Tarray[] = {0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 100, 120, 140, 160, 180, 230, 280, 380};
float Varray[] = {.21, .30, .37, .45, .49, .50, .49, .47, .45,...