Search:

Type: Posts; User: m.mixon

Search: Search took 0.00 seconds.

  1. Thread: do...while

    by m.mixon
    Replies
    3
    Views
    969

    Wonderful, thank you so much. BTW, is this a...

    Wonderful, thank you so much. BTW, is this a common way to loop the main section of a program? Do many other programmers do it this way? It seems suited perfectly for that use.
  2. Thread: do...while

    by m.mixon
    Replies
    3
    Views
    969

    do...while

    I thought I understood the tutorial well enough, but I keep getting an error when I try to compile. The error states "20 C:\transfer\cpp\junk\main.cpp `lm' undeclared (first use this function) " ...
  3. Replies
    5
    Views
    2,736

    If you were to copy the contents of a text file...

    If you were to copy the contents of a text file into a string, i've been using fread(), then would it not copy EOF to the last element of the string?

    My line array is designed as such,


    ...
  4. Replies
    5
    Views
    2,736

    Copying a string, into a string array.

    I'm having trouble taking a string, fed from a text file, and changing that string into an array of strings.

    My goal is, everytime i hit a '\n' in the string, it creates another string in the...
  5. Replies
    5
    Views
    8,628

    I think i have more of a handle on that now. ...

    I think i have more of a handle on that now.

    So using your example, if i open notepad, and type 12 numbers, such as "123412341234", then using data_len = fread(buffer, 1, sizeof(buffer), in); ...
  6. Replies
    5
    Views
    8,628

    return value of fread()

    This is a continuation of my previous post, but since the problem in question has changed, I thought I'd make a new post.

    My original post was:...
  7. Replies
    24
    Views
    16,526

    good job, you figured it out with minimal help. ...

    good job, you figured it out with minimal help.

    This project looks alot like one of my first projects. The idea was that the program would generate 8 random characters, and the user would then...
  8. Replies
    4
    Views
    3,376

    ok, i have that part figured out, but now i have...

    ok, i have that part figured out, but now i have a new question. When I store the text file into a string, I think that setting the string to 512 bytes, it automatically fills in the rest of the 512...
  9. Replies
    4
    Views
    3,376

    ok, by "it only works with one word", i mean, if...

    ok, by "it only works with one word", i mean, if i use a line of text that includes a space, the text file created by the program, is completely empty.
  10. Replies
    4
    Views
    3,376

    storing text file contents into a string

    I've wrote a program that takes a text file in as a string, and encrypts it, using my own, very weak, encryption key. The program works, as long as the text file contains only a single word, with no...
  11. Replies
    5
    Views
    6,034

    That would make for a funny headline, "XP...

    That would make for a funny headline, "XP Attacked by the Backspce Virus!!"
  12. Replies
    5
    Views
    5,233

    I'm not sure if I asked my question correctly. ...

    I'm not sure if I asked my question correctly. By "When are you a programmer?" I was really looking for, when would you be comfortable advertising yourself as a programmer? Such as on a resume??
  13. Replies
    5
    Views
    6,034

    I dont know about a "beep()" function, but I know...

    I dont know about a "beep()" function, but I know you can use "\a" in any printf() to achieve a beep. Its especially funny when a cat is sitting next to your laptop :)
  14. Replies
    5
    Views
    5,233

    When are you REALLY a programmer?

    I've been studying C off and on for about a month. I've got a pretty good grasp on things like functions, structs, and I'm working on file I/O and pointers again. My question is, when do you know...
  15. Replies
    6
    Views
    4,029

    I've been researching similiar ideas. And I'm...

    I've been researching similiar ideas. And I'm having trouble understanding alot of the assembly code. I've been using gdb to disassemble a couple of little programs, but I never know exactly what...
  16. Replies
    1
    Views
    1,791

    Porting Beej to Windows,

    I've mostly figured out how to port Beejs guide to windows.

    I'm trying out the "Gethostbyname" lookup program. And I keep getting linker errors saying,

    Undefined reference to "herror"

    My...
  17. Replies
    7
    Views
    8,930

    awsome. That worked. Do I have to do that for...

    awsome. That worked. Do I have to do that for every program I write that uses networking stuff??
  18. Replies
    7
    Views
    8,930

    I tried Johnnys winsock, but I get a bunch of...

    I tried Johnnys winsock, but I get a bunch of linker errors when I try to compile.

    Using Dev-C++ for compiling.

    I've tried using the code straight from the tutorial, and I downloaded the zip...
  19. Replies
    7
    Views
    8,930

    Network Programming in C for Windows

    First of all, I'd like to thank everyone who participates in this forum. I've been reading some of the posts for a while, but not posted myself until now. Everyone who so freely offers their...
  20. Replies
    2
    Views
    1,157

    True "if" not executing

    Ok, i'm having trouble with this if statement. I'm pretty sure I understand if statments well enough to make one this simple work right.

    For aurguments sake, and also because I've tried this...
Results 1 to 20 of 20