C code - 530 lines - codepad
lines 89-99. what's the point of capitalizing letters and later doing it back?
Type: Posts; User: jacek
C code - 530 lines - codepad
lines 89-99. what's the point of capitalizing letters and later doing it back?
OK guys. I have taken care of these erros and none of them are present. It was my connection fault, I think.
I get this segm fault when I want to use dodajBaze. How to fix it?
Hello.
For this code: C code - 503 lines - codepad I get these errors:
projekt3.c: In function `znajdz_baze_w':
projekt3.c:209: error: `bieza' undeclared (first use in this function)...
I mean how this program outputs that answer.
Hello. Our teacher gave us this piece of code:
#include <stdio.h>
#define PR(a,f) printf (#a "= %#f"\t", (int)(a) )
#define PRINT(a,f) PR(a,f); putchar ('/n')
#define PRINT2(a,b,f1,f2)...
ok, could you point me to some good tutorials?
This is exaclty what I mean - but how to do it?
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
int a;
int b;
struct node *next;
} *list;
void print(list head);
ok, it executes.
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
int a;
int b;
struct node *next;
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
int a;
int b;
struct node *next;
} *list;
void print(list head);
what's wrong here? i get ExitFailure 7.
#include <stdio.h>
#include <math.h>
typedef struct
{
int x;
int y;
ok. so far i have this. it compiles, but doesn't check those 4 poinst...
#include <stdio.h>
#include <math.h>
typedef struct
{
int x;
int y;
So what in my example?
so, before that for example:
printf("Enter x1:\n");
scanf("%d", point1.x);
printf("Enter y1:\n");
scanf("%d", point1.y);
?
Obviously the first one.
The problem is that I have no idea how to put x1..x4 and y1..y4 into this (I have already algorithm checking wheter 4 points for a square).
Here's the list:
c: In function `write':
c:30: error: `x' undeclared (first use in this function)
c:30: error: (Each undeclared identifier is reported only once
c:30: error: for each function it...
OK, but still there are a lot of errors...
Hi guys. I need to create a progam with struct of 4 points that define a square (and something more - that's why there are 3 structs, not one). The goal of the program is to check wheter those points...
Hi there. I have a question to people like you - who spend millions of hours in front of their PCs.
Do you really care about typing keys with propers keys? For example, the letter P with right...
Could you point me out some good tutorial on arrays?
Hi guys. I need to calculate the values of sine function between 45 and 90 degrees (5 degrees step).
So far I have the following code:
#include <stdio.h>
#include <math.h>
void fprint();
It doesn't... I enter x=3 and it says to enter something between -pi and pi :)
Do you have any idea why this program isn't working for x=3 or x=-3?
OK, seems like everything is done.
Last question: isn't there going to be any problem with radians or degrees?
Do you mean switching
element=(sin(n*x))/pow(n,3); to
element=(sin(n*x)*pow(-1,n))/pow(n,3);?