Search:

Type: Posts; User: Codegeek892

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. I'll have to google it as I have never heard of...

    I'll have to google it as I have never heard of those terms before.
  2. So I guess the moral of the story is learn SQL?

    So I guess the moral of the story is learn SQL?
  3. Linking data elements within a database

    I am writing a contact book program in C that will run in the terminal. I am going to create a file to store the data separately, but have run into a few question areas:

    1) It has occurred to...
  4. Replies
    2
    Views
    666

    So basically the function that sets the pointer...

    So basically the function that sets the pointer to f is in the same file as f. Thank you so much.
  5. Replies
    2
    Views
    666

    Function Declarations/Pointers

    I was reading earlier on function declarations and they began saying that a function that is declared static when changed can not affect other files in the program. Then it remarks that "a...
  6. Replies
    5
    Views
    950

    Well I am pretty sleep deprived right now, but I...

    Well I am pretty sleep deprived right now, but I am pretty sure that the int on line 3 should not be there. Can you give a bit more info on your actual problem?
  7. Replies
    8
    Views
    2,244

    C being translated into x86 assembly

    So I am trying to learn how to step through memory by writing simple programs and examining them in GDB. However there is a section in the assembly dump of main that I do not understand. Can anyone...
  8. Replies
    20
    Views
    2,685

    @AndiPersti Thank you for the code. Using your...

    @AndiPersti

    Thank you for the code. Using your code as an inspiration I modified my code slightly to be a little less bulky. Can you tell me what you think?



    #include <stdio.h>
    #include...
  9. Replies
    20
    Views
    2,685

    I am using the same book to teach myself C. Is...

    I am using the same book to teach myself C. Is there anyway I could get a look at the code you wrote as I have NO idea how you did this in less than thirty lines?
  10. Replies
    11
    Views
    1,434

    in other words i=1; while(i

    in other words


    i=1;
    while(i<=8){
    if(i<5){
    j=0;
    while(j++=<i++)
    printf("#");
    printf("\n");
  11. Replies
    11
    Views
    1,434

    If it were me, I would have set a while loop to...

    If it were me, I would have set a while loop to print all the lines but used an if-else statement to control how it prints.
  12. Replies
    11
    Views
    1,434

    Why can't you use the same technique but with...

    Why can't you use the same technique but with decrementation after the "#" peak? Also, do you know how to use arrays?
  13. Also, concerning the indentation. Everyone on...

    Also, concerning the indentation. Everyone on this board wants to give and receive help with their programs. However, its only annoying when there is no discernable way to follow the progression of...
  14. To give you the reasoning, you are trying to in...

    To give you the reasoning, you are trying to in your original code to tell the compiler that the string your are putting in should be interpreted as an address of where you actually want to put your...
  15. I would say you have an array mismatch in...

    I would say you have an array mismatch in dimensions. If it were me I would try actually doing out one full row in the call of scanf working through both dimensions at once (or just use a 1-D array)....
  16. Replies
    20
    Views
    2,685

    @stahta01 Thank you for all of your help. I will...

    @stahta01 Thank you for all of your help. I will save the formatted version for future reference on formatting my code for others to read. Also I did not catch the "/5" mistake. I believe that may...
  17. Replies
    20
    Views
    2,685

    Alright. I've been working on it, but for some...

    Alright. I've been working on it, but for some reason I can't get all of the empty space out of my indentation. I've tried to set it the best way that I can.
  18. Replies
    20
    Views
    2,685

    Just realized my indentation sucks. Give me a...

    Just realized my indentation sucks. Give me a minute and I will fix it.
  19. Replies
    20
    Views
    2,685

    use of rand() for number generation

    I have recently finished coding a random walks type program. In order to generate the randomness I used a time-seeded call of rand(). Now for the most part this seems to work fine, but every so often...
  20. Replies
    2
    Views
    710

    Fair enough. And thank you.

    Fair enough. And thank you.
  21. Replies
    2
    Views
    710

    Random Walks/switch breakout

    I am writing a program that generates a Random Walks pathway. In a part of the program I have a Switch statement nested in a While loop. If I use continue, it should bring me back to the beginning of...
  22. Replies
    9
    Views
    912

    If this were me, I would try to store the valid...

    If this were me, I would try to store the valid ID as an array(one of characters but integers are fine as well). It would be easier to write the loop this way and cleaner.
  23. That's actually smart. I didn't think of that.

    That's actually smart. I didn't think of that.
  24. Make sure you either are working in a c99...

    Make sure you either are working in a c99 compatible implementation or one that allows for variable length arrays.
  25. Replies
    5
    Views
    1,036

    Thank you memcpy for your response. I'm kind of...

    Thank you memcpy for your response. I'm kind of starting to see this as I go through trying to write code for it. My book does teach about goto statements(as a part of the loops section) before...
Results 1 to 25 of 43
Page 1 of 2 1 2