Search:

Type: Posts; User: purple

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    2,350

    Sorting will just cause more problems because of...

    Sorting will just cause more problems because of the restriction "for j >= i."

    If I sort then I will have no way to tell if the ith value preceeds the jth value. Also the overhead involved in...
  2. Replies
    10
    Views
    2,350

    No we don't have to show big O, but efficiency is...

    No we don't have to show big O, but efficiency is key here. From friends of mine that are previous students of his, supposedly the teacher is a real jerk off and will actually halt processing early...
  3. Replies
    10
    Views
    2,350

    Faking it won't work. Here is a sample test file...

    Faking it won't work. Here is a sample test file he gave us and you'll see what I mean by huge files.
  4. Replies
    10
    Views
    2,350

    Efficient Algorithm

    I have a program that I need an efficient algorithm for and I was hoping someone could lend some insight. This program will eventually be written in Java for my Advanced Data Structures class, so...
  5. Thread: Best C Book

    by purple
    Replies
    11
    Views
    2,695

    Problem Solving Using C Structured Programming...

    Problem Solving Using C
    Structured Programming Techniques
    by Yuksel Uckan

    This is a great book for beginners and I still use it to this day as a reference. I have the second edition, however...
  6. Replies
    3
    Views
    1,572

    Thanx Hammer, that site owns. If anyone else...

    Thanx Hammer, that site owns.

    If anyone else has any good examples or sites please let me know.
  7. Replies
    3
    Views
    1,572

    client/server program

    I have a UNIX client/server program I need to write for school and I am pretty clueless when it comes to forming and sending/receiving packets.

    Our teacher gave us a hint, but not much real...
  8. Replies
    4
    Views
    1,624

    No, your major problem is that you are trying to...

    No, your major problem is that you are trying to use scanf for both input and output.

    scanf: inputs (scans in) values
    printf: outputs (prints out) values and/or strings of text
  9. Replies
    13
    Views
    5,341

    Great Point!!!

    Yes I totally agree Hammer, although this program was just for fun to see if I could code it.
  10. Replies
    13
    Views
    5,341

    Heh...you beat me to it

    Heh...you beat me to it
  11. Replies
    13
    Views
    5,341

    Sweet...thanks for pointing that out. I made...

    Sweet...thanks for pointing that out. I made some minor alterations and now it works flawlessly.

    - I increased the size of c1 by one to allow room for one char and the NULL.

    - I also increased...
  12. Replies
    13
    Views
    5,341

    The only difference that I know of between malloc...

    The only difference that I know of between malloc and calloc is that calloc zeros out the array if it's of a numeric type, or NULLs out the array if it's of type char.

    I don't see how that would...
  13. Replies
    13
    Views
    5,341

    Dynamic array allocation and reallocation

    Well my other thread regarding the best way to get user input got me thinking. Using fgets() and fgetc() are great if you have an array of a predetermined size and you don't want to overflow the...
  14. Replies
    8
    Views
    6,034

    I appreciate you clarifying and I apologize for...

    I appreciate you clarifying and I apologize for calling you a smart ass, but your "See a pattern here?" comment came by as a little cocky.

    Anyone else have any other decent methods to prevent...
  15. Replies
    8
    Views
    6,034

    quzah you failed to understand the main point of...

    quzah you failed to understand the main point of my post: sincere replies only please.

    I don't know why everyone must act like a smart ass when people ask legitimate questions.

    However, you did...
  16. Replies
    8
    Views
    6,034

    Best way to get user input?

    I'm trying to hone and expand my C programming skills and I wanted to get some ideas on the best way to get user input at runtime, not command line, to avoid overflow.

    This isn't for any program...
  17. Replies
    31
    Views
    8,321

    High level programming languages are all so...

    High level programming languages are all so similar (at least logically speaking), so the benefits of knowing one language thoroughly will spill over.

    The best reason to learn C is that most...
  18. Replies
    15
    Views
    3,807

    That is the natural tradeoff in Computer...

    That is the natural tradeoff in Computer Science...and I agree a hashtable would be your best bet in this case even though you're probably sh!t out of luck if it's due tomorrow and you're not...
  19. Replies
    3
    Views
    2,151

    This is a good question and it has many uses as...

    This is a good question and it has many uses as well.

    One of the more common uses relates to hashing and how to handle collisions when more then one item hashes to the same location. A very easy...
  20. I've been programming in C/C++ for years and I...

    I've been programming in C/C++ for years and I just recently started learning about window creation.

    Here is an excellent site for learning the basics of window creation step-by-step:...
  21. Replies
    1
    Views
    939

    Underlined ALT keys in XP?

    I was wondering if anyone has run into this problem with XP and how they were able to fix it.

    Here is a sample menu entry in my resource file if someone could tell me how I can fix it so it...
  22. Replies
    6
    Views
    3,863

    Yes I believe you are right. I thought at first...

    Yes I believe you are right. I thought at first that renaming the folder worked, but after closer inspection the program still had not encrypted the files. The only thing that had actually occured...
  23. Replies
    6
    Views
    3,863

    No stupid questions, just stupid people...(just...

    No stupid questions, just stupid people...(just kidding) =)

    There is a function prototype in DIRECT.H called _mkdir() for creating directories. This is part of the Visual C++ 6.0 headers,...
  24. Replies
    6
    Views
    3,863

    I was hoping to avoid encrypting each file within...

    I was hoping to avoid encrypting each file within the folder one-by-one.

    I did figure out a way to kind of rig-it and force it to work. I simply used the rename() function within stdio.h to first...
  25. Replies
    11
    Views
    1,177

    Hmm...good idea...thanks I'll try that

    Hmm...good idea...thanks I'll try that
Results 1 to 25 of 28
Page 1 of 2 1 2