User Profile

Collapse

Profile Sidebar

Collapse
cecnik
cecnik
Last Activity: Jun 22 '14, 09:24 PM
Joined: Jun 13 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cecnik
    started a topic program skipping lines
    in C

    program skipping lines

    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    
    struct kart
    {
           float x;
           float y;
    };
    
    struct polar
    {
           float r;
           float fi;
    };
    int main()
    {
        
        struct kart T1_kart;
        struct kart T2_kart;
        struct polar T1_polar;
        struct polar
    ...
    See more | Go to post

  • cecnik
    replied to 1.#inf00
    in C
    again, my unexperience bites me.. in my country we use commas for decimals, doesnt translate in c unfortunately..
    thanks by the way
    See more | Go to post

    Leave a comment:


  • cecnik
    replied to 1.#inf00
    in C
    ok so I added the line "a=kt*9,81; " just above the line "zav_pot1=(v0*v 0)/(2*a);" but the problem is still there.. I'm sory if it is realy obvious but I just can't see it..
    See more | Go to post

    Leave a comment:


  • cecnik
    replied to 1.#inf00
    in C
    thanks, I have to be more precise when writing code.. sory for the post btw, new on the forum and still getting used to it.
    See more | Go to post

    Leave a comment:


  • cecnik
    started a topic 1.#inf00
    in C

    1.#inf00

    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    
    int main()
    {
    float zav_pot1, zav_pot2, v0, a, kt, g, t;
    int x;
    	
    	printf("with this program we will calculate the stoping distance of a car\nwhile taking and not taking in account the reaction time of the driver.\n");
        printf("enter starting speed of the vehicle in km/h:\n");
    ...
    See more | Go to post
    Last edited by Rabbit; Jun 13 '14, 07:53 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

  • cecnik
    replied to 1.#IND00 error in equasion solver
    in C
    shit.. can't believe I missed that.
    It used to say "-D" in the brackets but then I changed some stuff around and must have missed it.

    thanks man
    See more | Go to post

    Leave a comment:


  • cecnik
    started a topic 1.#IND00 error in equasion solver
    in C

    1.#IND00 error in equasion solver

    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>

    int main()
    {
    float a, b, c, D, x1, x2, j, x1real, x1imag;



    printf("S pomocjo tega programa lahko izracunamo kvadratno enacbo oblike ax^2+bx+c=0\n") ;
    printf("vnesi prvo (a) spremenljivko enacbe: \n");
    scanf("%f", &a);
    printf("vnesi drugo (b) spremenljivko...
    See more | Go to post
No activity results to display
Show More
Working...