Search:

Type: Posts; User: dl27

Search: Search took 0.01 seconds.

  1. wondering why output is for a on first print is 2686780

    #include <stdio.h>
    #include <stdlib.h>
    int f(int *d, int c, int b, int *a);
    int main(void){
    int a=1, b=3, c=2, d=4, e=5;
    e = f(&a, f(&b,a,e,&c), e, &d);
    printf("a =%d b=%d c=%d d=%d...
  2. Replies
    11
    Views
    1,543

    ok ill try to make things as simple as possible...

    ok ill try to make things as simple as possible and go through notes... thanks for the help
  3. Replies
    11
    Views
    1,543

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #define MAX_LEN 30
    #define SIZE 20
    struct employee {
    char first[MAX_LEN];
    char last [MAX_LEN];
    double payperhr;...
  4. Replies
    11
    Views
    1,543

    so bascially just keep the scan and everything...

    so bascially just keep the scan and everything needed for the scan of the char... correct?
  5. Replies
    11
    Views
    1,543

    * that lil guy?

    * that lil guy?
  6. Replies
    11
    Views
    1,543

    #include #include #include...

    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    int main(){

    char state[30];

    printf("enter:");

    scanf("%s", state);
  7. Replies
    11
    Views
    1,543

    promblem with sending struct through function

    So far i haven't started the calculation of the program but more worried about getting the first and last name to copy over to the output file w2.... even when i try to put it into a printf output of...
  8. Thread: hit a wall

    by dl27
    Replies
    2
    Views
    1,371

    ahh ok thanks.. does any one know what would the...

    ahh ok thanks.. does any one know what would the basic format of sending a structure though a fucntion be? kinda as in the case above but not really important more for just trying to see another...
  9. Thread: hit a wall

    by dl27
    Replies
    2
    Views
    1,371

    hit a wall

    I am writing a program that is supposed to read info from a file clock.txt that has the number of employees then a name and then payrate and then another name and payrate. I have a struct


    ...
  10. Thread: lil tips

    by dl27
    Replies
    7
    Views
    2,072

    For some reason throwing files into the structs...

    For some reason throwing files into the structs and with functions is jamming me from being able to completely think this program through but thanks for the help im gonna try working the rest out...
  11. Thread: lil tips

    by dl27
    Replies
    7
    Views
    2,072

    so when i am printing, i am printing to the file?...

    so when i am printing, i am printing to the file? therefor i should have fp= fopen("clock.txt", "w"); instead of "r"?
  12. Thread: lil tips

    by dl27
    Replies
    7
    Views
    2,072

    yes it was spelled wrong... its located above int...

    yes it was spelled wrong... its located above int main

    when I compile it shouldn't the information from the file be on the output? cause right its just showing the system("pause") function
  13. Thread: lil tips

    by dl27
    Replies
    7
    Views
    2,072

    lil tips

    since this is a need help page... stuck on a little homework right now.. but just seeing if someone can maybe help me get past this not give me the answer. but in int main i have an Linker error...
  14. Thread: Need Help....

    by dl27
    Replies
    6
    Views
    1,353

    since this is a need help page... stuck on a...

    since this is a need help page... stuck on a little homework right now.. but just seeing if someone can maybe help me get past this not give me the answer. but in int main i have an Linker error...
Results 1 to 14 of 14