Search:

Type: Posts; User: Derek Lake

Search: Search took 0.01 seconds.

  1. Thanks, that clears up alot and my issues are...

    Thanks, that clears up alot and my issues are resolved (for anyone who may be reading this thread with a similar issue).
  2. Hey. Sorry for the late response. I haven't been...

    Hey. Sorry for the late response. I haven't been able to rid myself of my dependency of bzero() calls, but I have realized where I went wrong. It was in performing operations on response, a pointer....
  3. I have a problem with basic socket programming using TCP

    This is my first project in a networks class. I am sorry if my code is attrocious, I'm still trying to wrap my head around socket programming.

    I have developed my client-server programs so that I...
  4. The ? : operators comprise a "Ternary Conditional...

    The ? : operators comprise a "Ternary Conditional" Hope that helps!
  5. Replies
    3
    Views
    1,025

    I was going to edit my last post but for whatever...

    I was going to edit my last post but for whatever reason it won't let me. I need to update my post to let you know that there is a sticky post in this very forum to answer your question as far as...
  6. Replies
    3
    Views
    1,025

    Hey Andersonsacanno. As std10093 has said, C...

    Hey Andersonsacanno.

    As std10093 has said, C is commonly evolving and many commonly used conventions are changing. There are two big families of standards POSIX and ANSI. I would look up on these....
  7. Hey, Tanu. I would make sure that you have...

    Hey, Tanu.

    I would make sure that you have added all source files to your current project if you are using Dev. I'm not sure what you mean by "with GCC", I didn't know you could get GCC...
  8. Replies
    11
    Views
    2,262

    Ah, I figured. :) That's ok, just so you know...

    Ah, I figured. :)
    That's ok, just so you know the code I put up compiles and works logically. Now you just need to see my comments and write your account() function.
    By the way, I wouldn't put your...
  9. Replies
    11
    Views
    2,262

    int main() { int A = 0;//Your variable...

    int main()
    {
    int A = 0;//Your variable needs to be initialized, always. If you don't set it to 0, it will be whatever value is stored in the memory A is currently using (unless your compiler...
  10. Replies
    12
    Views
    14,018

    No problem :) A great alternative to gets is...

    No problem :)

    A great alternative to gets is fgets. std10093 has provided a great link on the problems inherent in gets, and here is a link on how to use fgets from this site as well:
    FAQ > Get a...
  11. Replies
    12
    Views
    14,018

    Hey, YannB. Here is some sample code to take a...

    Hey, YannB. Here is some sample code to take a string and separate it into words, or "tokens."


    #include <stdio.h>
    #include <string.h>

    int main()
    {
    int i,garbage;
    char *tokenPtr;
  12. Replies
    10
    Views
    1,636

    Ah, ok. I am trying to only offer the advice that...

    Ah, ok. I am trying to only offer the advice that I'm sure is right, but I have a lot yet to learn! I think it is funny because every time I have seen that number in the parenthesis it has seemed to...
  13. Hey, terminusest. Can you link us to the BASIC...

    Hey, terminusest.

    Can you link us to the BASIC code for this?

    I'm looking into some articles on solving Schrodinger's equation using the finite method. This is some complex stuff! What is your...
  14. Replies
    7
    Views
    1,823

    Hey shansajid. A couple more tips: Instead of...

    Hey shansajid.

    A couple more tips:
    Instead of using getch(), you can make a garbage variable and scan it in. This will put a prompt to the user so the program doesn't automatically exit.
    ...
  15. Replies
    18
    Views
    2,560

    Ah, good call laserlight. Come to think of it,...

    Ah, good call laserlight. Come to think of it, case switch is just a specialized form of an if statement. Utilizing arrays by element number would control the flow of the code without using control...
  16. Replies
    18
    Views
    2,560

    Hey, facebook1978200. A great way to select an...

    Hey, facebook1978200.

    A great way to select an option based on an integer (0, 1, 2, etc) is using the "case switch." I'm not sure if this is exactly what you're looking for but it surely works...
  17. Replies
    10
    Views
    1,636

    Hey, trial123. Firstly, regarding "If you have...

    Hey, trial123.

    Firstly, regarding "If you have main() or printf() in there you are not doing what I am asking." What this is referring to, I believe, is that you are not to make an executable...
  18. Replies
    5
    Views
    12,787

    Hey, Arthur91. I have signed up here recently...

    Hey, Arthur91. I have signed up here recently too. I don't have too many tips to give but I also noticed that you were passing a pointer-to-pointer in your memcpy(). I notice there are comments in...
  19. Memory leak and making 2^n copies

    Hey, thanks for your swift reply again Salem - you helped me before as well!

    Okay, I haven't put the free function in yet , but that is coming, I realize it doesn't have it.

    About making 2^n...
  20. Sorting function will not sort a .dat file of 100,000 integers

    My program will sort a .dat file with 2,000 integers just fine, and write it to a text file just fine as well. It will also sort 10,000 integers with no problem whatsoever. But when I try to sort a...
  21. Replies
    2
    Views
    988

    Thank you for your time Salem! This worked.

    Thank you for your time Salem! This worked.
  22. Replies
    2
    Views
    988

    Scanf pit of doom

    Hi, I have included ample explanatory comments in my code, so I think it will be most efficient just to post it to you:



    #include "Queue.h"

    int main(void)
    {
    QueueT Queu;
    QueueT...
  23. Thanks, all. I have Visual Basic 2010 full. I'll...

    Thanks, all. I have Visual Basic 2010 full. I'll test this.
  24. I do not believe so. That would set the title of...

    I do not believe so. That would set the title of the console window of your program, correct? I don't want that, if that's the case - and I tried to input it in my code to test, it would not compile,...
  25. Editing the process description of your .exe file (Console Application)

    How do you do it? I refer to the process description listed in the "Processes" tab of the Task Manager in Windows 7 specifically, although one that would list in XP or newer OS would be ideal also.
    ...
Results 1 to 25 of 25