Search:

Type: Posts; User: justin69enoch

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,569

    Re:

    not really, My book doesn't show how to pass them. it shows everything globally defined...
    I just need to know how to do the prototype, function call and function header... An example of any kind...
  2. Replies
    6
    Views
    2,569

    passing structures??

    Hello, I need to know how to pass structures from one function to another as well as the correct syntax for the Prototype and function call as well as the function itself..




    #include...
  3. Thread: Dbl list

    by justin69enoch
    Replies
    9
    Views
    1,272

    RE Please help

    Can someone please help me pass the pointers correctly back and forth from main () to add_word().
  4. Thread: Dbl list

    by justin69enoch
    Replies
    9
    Views
    1,272

    Okay, I have my code working using global...

    Okay, I have my code working using global variables. Every time I try to simplify this, I either get a Seg fault or a bus error. Mainly, I want to get rid of the global variables before I try to...
  5. Thread: Dbl list

    by justin69enoch
    Replies
    9
    Views
    1,272

    can someone at least tell me what is wrong with...

    can someone at least tell me what is wrong with my code; how to pass the linked list back and forth from main to another function?
  6. Thread: Dbl list

    by justin69enoch
    Replies
    9
    Views
    1,272

    can someone at least tell me what is wrong with...

    can someone at least tell me what is wrong with my code; how to pass the linked list back and forth from main to another function?
  7. Thread: Dbl list

    by justin69enoch
    Replies
    9
    Views
    1,272

    I have to have a previous and a next. My code...

    I have to have a previous and a next. My code has to be this way due to other functions that work in the program ... is there anyway to fix this? or at least tell me what is going sooo bad wrong .??...
  8. This should work, however I haven't tested it. ...

    This should work, however I haven't tested it.



    int main(void)

    {
    FILE *inp;
    double abs; //absolute value for each number
    double squart; //square of number
  9. There are several ways to do this. For instance,...

    There are several ways to do this. For instance, as you read in the integers,

    1. Set the first integer to min && max.
    2. compare the second to both, if it is lower than the min value, replace...
  10. Thread: Dbl list

    by justin69enoch
    Replies
    9
    Views
    1,272

    Dbl list

    I am having problems with my doubly linked list. Can anyone help, I get a bus error after the first word is added. Thanks.




    #include <stdio.h>
    #include <ctype.h>
    #define Z 21

    struct...
  11. Replies
    3
    Views
    1,328

    thanks...

    Thank you.
  12. Replies
    3
    Views
    1,328

    random number between 0 and n??

    okay, I know that the following will give me a number between 0 and 100; however, if I wanted to go from 0 to a number n, how would i do that ? Perhaps 44 or any number ?? Thanks



    ...
  13. Replies
    7
    Views
    1,170

    last question.. I promise..

    Thanks for all of you help, I have learned a lot in the last hour or so. Okay so now I understand the prototype and and function call from main(),

    In the function, how would i declare the...
  14. Replies
    7
    Views
    1,170

    RE

    Okay, so the structure is global... okay I get that, how do i send the file pointer to functions other than main() ?? also, in the function, how do i redeclare the structure?


    somefunction(s2) ...
  15. Replies
    7
    Views
    1,170

    RE

    so you put the structure itself outside of the main() ?? and what about the file pointer?
  16. Replies
    7
    Views
    1,170

    Passing Structures ??

    Okay, In main I have the following declaration for structure




    main() {
    struct temp {
    char strg1[N],strg2[N];
    int test[N];
    float fraction;
  17. Replies
    4
    Views
    892

    Thank you quzah

    Thank you so much. I got it working. I think I am beginning to get a small grasp of this programming thing. By the way, on another note, does anyone know what the envelopes with a black hole in...
  18. Replies
    4
    Views
    892

    Thanks for the heads up on gets(). I can fix...

    Thanks for the heads up on gets(). I can fix that on my own, the & is storing the answer in the address of flag and str_int so that main () can use the newly stored values. Any suggestions on how...
  19. Replies
    4
    Views
    892

    Error ???

    can anyone tell me what's wrong with this. My compiler for some reason only tells me that I have a couple "invalid lvalue in assignment" and "conflicting types for int_check", but it will not give...
  20. Replies
    2
    Views
    902

    Integer into a String ????

    how would you get an integer into a string ?

    For example



    int main() {
    int temp,temp2;
    char string[20];
  21. Replies
    7
    Views
    1,122

    I appologize, I thought that that was just a...

    I appologize, I thought that that was just a sample. It worked great with my code. There isn't a simple function that does hex to binary is there? That's all I like and then I can put it with the...
  22. Replies
    7
    Views
    1,122

    now back to the first question, how do i convert...

    now back to the first question, how do i convert a hexadecimal into a decimal? I have completed the other code and only need help with the hex conversions.
  23. Replies
    7
    Views
    1,122

    Re:

    I guess, how would i use it ?
  24. Replies
    7
    Views
    1,122

    convers. problem.

    Okay, I have actually two problems but after I get the first, I should be able to do the second. First, I have to write code to convert a hexadecimal to a decimal and its binary as well. The...
  25. Replies
    6
    Views
    1,208

    string problem

    how do i get a double variable stored into a string? I cannot just let the string get thh double.

    here's what i have: assume var's initialized and declared:



    double temp=90;
    char...
Results 1 to 25 of 53
Page 1 of 3 1 2 3