i tried but it is still showing the same errors. like the program is using it like this
static void Main(WeatherStation station, DateTime predictionDate)
Type: Posts; User: pokhara
i tried but it is still showing the same errors. like the program is using it like this
static void Main(WeatherStation station, DateTime predictionDate)
no one is replying in my thread so i posted on yours.sorry for that.
WeatherStation station, DateTime predictionDate
can we define the variables in c sharp like this?i am looking through some codes here and while compiling got the error saying"are you missing a...
WeatherStation station, DateTime predictionDate
can we define the variables in c sharp like this?i am looking through some codes here and while compiling got the error saying"are you missing a...
WeatherStation station, DateTime predictionDate
can we define the variables in c sharp like this?i am looking through some codes here and while compiling got the error saying"are you missing a...
what is the command for compiling and running the c sharp program?
I wrote a program and compiled it using mcs filename.cs
But I don't know how to run the program. I tried mono filename.exe but...
what are the compiling and running command for c sharp program? I wrote a c sharp program and for compilation i used mcs filename.cs. But for running, I don't know the command. So please help me.
yah but i need to get the 0 too and the number of 1 should be 111...but m getting all 240 number of 1's. and i checked using taking the value individually and it is giving 0. but while reading the...
hello MK27...I have posted my problem..please do help me
i tried to calculate the following formula but it is not taking the -ve sign due to which it is giving the wrong value.
#include <stdio.h>
#include <string.h>
#include <math.h>
void...
how can i add the number of 1's ..like i need to count the number of 1 and store it an another variable.
hello MK27..do u have yahoo id..so we can chat on yahoo..coz it is my work at office and i don't want this to get displayed...would u mind doing this?or can't we have private forum also
if(VPD < 0.5)
{
printf("value is %d ",1);
}
else
{
printf("val is %d ",0);
}
if(VPD < 0.5)
{
set = strcpy(store, 1);
printf("value is %s",set);
}
else
{ set1 = strcpy(store1,0);
printf("val is %s",set1);
...
@tabstop...i got that problem solved..it reads the first line too now..thnks
@MK27...i got that problem solved..it reads the first line too now..thnks
@MK27..i didnot get u..so u mean that the formula is also reading the first line ..that is line with time 0..as far as i beleive it is taking from the line with time 1...
@MK27..i did that step too but still it is taking from line 1 with time 1..its not taking the time 0 line..
@tabstop...yah it is the giving the same result...so the first line is not read
i don't want to skip the first line..instead i need to use it too for the calculation. while reading the file the first line is also read but i need to use that line for the calculation too..but why...
if(VPD < 0.5)
{
set = strcpy(store, 1);
printf("value is %s",set);
//printf("value is %d ",1);
}
else
{ set1 = strcpy(store1,0);
printf("val is %s",set1);...
"Time" "DryTempC" "DewPointC" "RH"
0 0.6 -5 67
1 0 -3.9 75
2 0 -3.9 75
this is the file looks like..there is line 0..so i need to read that too..that one is read but while calculating it is...
void read();
int Time, RH, retv;
float DewPointC;
float DryTempC;
float val, val1;
float VPD,vapourp, setvapp;
char line[256];
FILE *in;
#include <stdio.h>
#include <string.h>
#include <math.h>
void read();
int Time, RH, retv;
float DewPointC;
float DryTempC;
hello MK27..thnks a lot for ur help...now i solved the previous problem...now i am working on next step...thnks
oh yah....thnks...how can i do such a silly mistake...in the above code i have mention % f and here i am doing %s...thnks
int main(){
char line[256];
int i, VPD;
float vapourp, setvapp;
float val;
FILE *in = fopen("KBIS_2005.txt", "r");
for(i = 0; i<=240; i++)
{
fgets(line,256,in);