i want to dynamically locate 5 spaces for spa struct inside of client struct, get segmentation fault and core is dumped any help would be appreciated
#include <stdio.h>
#include <stdlib.h>...
Type: Posts; User: xenodvs1
i want to dynamically locate 5 spaces for spa struct inside of client struct, get segmentation fault and core is dumped any help would be appreciated
#include <stdio.h>
#include <stdlib.h>...
trying to see how to enter data into the spa struct for visit_date,
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int client_info (struct client *D);
int visit_info (...
ok, when looking for a string in a certain part of the structure and you find it, how do i get all info in struct where the string was located ??
i am trying to search for a string in a structure allocated for 100 clients, just get confused on how to access variables in ptr structure for example
struct fac
{
int a[50];
int b[50];...
thnx man , i learned alot from your help, i was trying to get to many for loops going
hope this helps
{
Prime == 1;
gpf = floor(sqrt(y));
for(fact=2; fact <= gpf; fact++)
{
while( y % fact == 0)
need out put to be like this:
The initial values are 0 0 0 0 0 0 0 0 0 0 0 0.
Enter an integer: 10
The updated array is 10 0 0 0 0 0 0 0 0 0 0 0....
just needed to compile wiht -lm thanx
using gcc complier in unix
int PrimeFactor()
{
int y;
int fact;
int r,i;
int num1, num2, gpf, Prime;
y=GetNum(num1);
{
Prime == 1;
Unresolved:
sqrt
floor
collect2: ld returned 1 exit status
included math.h
gpf = floor(sqrt(y));
in function PrimeFactor
parse error before '0'
int PrimeFactor()
{
int y;
int fact;
int r,i;
this worx thnx man
int Factor ()
{
int i=0, x=0, num1 , j=0;
int n[50];
x=GetNum(num1);
printf("The Factors are:\n");
your code compiles execpt there is no printed output, i guess there is an error in logic somewhere thnx for the help
trying to take values at i, if x is moded by i and equals 0 then scan factor into array, then print value of factored array,,, problem is it loops permanently or gives me a whole bunch of garbage, if...
in the function getnum() when i enter a floating point value it infintley loops, i guess its because my value is declared as int, what i want to do is when they try to use the program and enter a...
every time i enter a floating point, my program overflows , need to figure out how to test for floating point in while loop, any help is apprecited,,,,
thnx