Search:

Type: Posts; User: xenodvs1

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,503

    get segmentation fault

    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>...
  2. Thread: need help

    by xenodvs1
    Replies
    1
    Views
    944

    need help

    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 (...
  3. Replies
    3
    Views
    1,196

    ok, when looking for a string in a certain part...

    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 ??
  4. Replies
    3
    Views
    1,196

    accesing pointer structures

    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];...
  5. Thread: need help

    by xenodvs1
    Replies
    3
    Views
    1,073

    thnx man , i learned alot from your help, i was...

    thnx man , i learned alot from your help, i was trying to get to many for loops going
  6. Replies
    12
    Views
    7,931

    hope this helps { Prime == 1; gpf =...

    hope this helps



    {
    Prime == 1;
    gpf = floor(sqrt(y));
    for(fact=2; fact <= gpf; fact++)
    {
    while( y % fact == 0)
  7. Thread: need help

    by xenodvs1
    Replies
    3
    Views
    1,073

    need help

    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....
  8. Replies
    6
    Views
    1,398

    just needed to compile wiht -lm thanx

    just needed to compile wiht -lm thanx
  9. Replies
    6
    Views
    1,398

    using gcc complier in unix

    using gcc complier in unix
  10. Replies
    6
    Views
    1,398

    snippet of prime factor

    int PrimeFactor()
    {
    int y;
    int fact;
    int r,i;
    int num1, num2, gpf, Prime;
    y=GetNum(num1);

    {
    Prime == 1;
  11. Replies
    6
    Views
    1,398

    compiler error

    Unresolved:
    sqrt
    floor
    collect2: ld returned 1 exit status

    included math.h


    gpf = floor(sqrt(y));
  12. Replies
    1
    Views
    1,015

    getting parse error

    in function PrimeFactor
    parse error before '0'



    int PrimeFactor()
    {
    int y;
    int fact;
    int r,i;
  13. Replies
    3
    Views
    1,438

    this worx thnx man int Factor () { ...

    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");
  14. Replies
    3
    Views
    1,438

    your code compiles execpt there is no printed...

    your code compiles execpt there is no printed output, i guess there is an error in logic somewhere thnx for the help
  15. Replies
    3
    Views
    1,438

    passing values in array

    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...
  16. this is the code

    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...
  17. how do you check for a floating point vlaue in c??

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