Search:

Type: Posts; User: aslak

Search: Search took 0.00 seconds.

  1. Replies
    35
    Views
    6,338

    Okay, but when I try with almost the same loops I...

    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 +...
  2. Replies
    35
    Views
    6,338

    Okay I have tried to change my coorinate but it...

    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] =
  3. Replies
    35
    Views
    6,338

    Okay I have tried to change my coorinate but it...

    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] =
  4. Replies
    35
    Views
    6,338

    when I try to plot this, i do not see anything at...

    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, "&#37;.1f", ((maxy-miny)/5)*n);
    Putstr(13 + 4*n, 14 + (n % 2),...
  5. Replies
    35
    Views
    6,338

    For the x-axe, I have this loop: for(n = 0;...

    For the x-axe, I have this loop:


    for(n = 0; n < 6; n++)
    {
    char s[32];
    sprintf(s, "&#37;.1f", ((maxx-minx)/5)*n);
    Putstr(13 + 4*n, 14 + (n % 2), s);
    }
  6. Replies
    35
    Views
    6,338

    sprintf("%.1f", ((maxx-minx)/5*n) Putstr(13, 14,...

    sprintf("&#37;.1f", ((maxx-minx)/5*n)
    Putstr(13, 14, *1*)

    Or am I completely wrong??
  7. Replies
    35
    Views
    6,338

    Can I do It like this: for(n = 0; n < 6;...

    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);
  8. Replies
    35
    Views
    6,338

    I think I'm not quite with. But it is something...

    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)
    }
  9. Replies
    35
    Views
    6,338

    Yes I think they really fills the space. I've...

    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...
  10. Replies
    35
    Views
    6,338

    I said absolutely right to you because you said...

    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[] =...
  11. Replies
    35
    Views
    6,338

    you are absolutely right! should I change every...

    you are absolutely right! should I change every loop to the following:


    for(n = 0; n < 1; n++)
    {
    char s[32];
    sprintf(s, "&#37;.1f", ((maxx-minx)/5)*n);
    Putstr(13, 14, s);
    }
  12. Replies
    35
    Views
    6,338

    yes that maybe sounds cracy, it is because I...

    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...
  13. Replies
    35
    Views
    6,338

    My code is incorrect beacuse the program does not...

    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...
  14. Replies
    35
    Views
    6,338

    The reason why I have 6 loops is because I want...

    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...
  15. Replies
    35
    Views
    6,338

    Right now I can make the values for both x and...

    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.
  16. Replies
    35
    Views
    6,338

    No thats not my problem. The problem is that I do...

    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...
  17. Replies
    35
    Views
    6,338

    maximum and minimum

    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...
Results 1 to 17 of 17