Okay, but when I try with almost the same loops I used in the x-axe, does it still not work:
for(n = 0; n < 6; n++)
{
char s[32];
sprintf(s, "%.1f", ((maxx-minx)/5)*n);
Putstr(13 +...
Type: Posts; User: aslak
Okay, but when I try with almost the same loops I used in the x-axe, does it still not work:
for(n = 0; n < 6; n++)
{
char s[32];
sprintf(s, "%.1f", ((maxx-minx)/5)*n);
Putstr(13 +...
Okay I have tried to change my coorinate but it did not help.
#include <stdio.h>
#include <string.h>
char xText[] = "Tid(sek)";
char yText[] = "Temp(C)";
char a[16][45] =
Okay I have tried to change my coorinate but it did not help.
#include <stdio.h>
#include <string.h>
char xText[] = "Tid(sek)";
char yText[] = "Temp(C)";
char a[16][45] =
when I try to plot this, i do not see anything at the coodinatesystem:
for(n = 0; n < 6; n++)
{
char s[32];
sprintf(s, "%.1f", ((maxy-miny)/5)*n);
Putstr(13 + 4*n, 14 + (n % 2),...
For the x-axe, I have this loop:
for(n = 0; n < 6; n++)
{
char s[32];
sprintf(s, "%.1f", ((maxx-minx)/5)*n);
Putstr(13 + 4*n, 14 + (n % 2), s);
}
sprintf("%.1f", ((maxx-minx)/5*n)
Putstr(13, 14, *1*)
Or am I completely wrong??
Can I do It like this:
for(n = 0; n < 6; n++)
{
char s[32];
sprintf(s, "%.1f", ((maxx-minx)/5)*n);
Putstr(13, 14, s);
I think I'm not quite with. But it is something like:
int n;
for(n = 0; n < 6; n++)
{
char s[32];
sprintf(s, "%lf", max*n/6)
PutStr(13 + 4*n, 14, s)
}
Yes I think they really fills the space. I've tried to look a bit in my book about how to make them smaller, but I could not find anything. And since I am new to the profession, I have made the loops...
I said absolutely right to you because you said that I should make the last code on my on. But my code works ABSOLUTELY right now:
#include <stdio.h>
#include <string.h>
char xText[] =...
you are absolutely right! should I change every loop to the following:
for(n = 0; n < 1; n++)
{
char s[32];
sprintf(s, "%.1f", ((maxx-minx)/5)*n);
Putstr(13, 14, s);
}
yes that maybe sounds cracy, it is because I could not figure out how to get the program to get make the axes to the value for max.and min. I wrote to start with. But now I am totally lost how to...
My code is incorrect beacuse the program does not take care of what I write the maximum an minimum values. When the program ask me to write a the maximum and minimum for x-axes, and maximum for...
The reason why I have 6 loops is because I want them to be displayed on the screen like this:
Minimums og maksimums værdi på x-aksen: 0.0, 50.0
Minimums og maksimums værdi på y-aksen: 0.0, 50.0...
Right now I can make the values for both x and y-axes to be graphed, but my program does not care for the maximum and minimum values I enter.
No thats not my problem. The problem is that I do not know how to make a simple code that can receive a maximum and minimum value for both the x and y-axes, and the be able to calculate and write...
I working with a program which have too plot a two-dimentionelt coordinates on the screen. I am almost finished except for one small problem which has caused me problems in a few days now. The fact...