Search:

Type: Posts; User: killiansman

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    784

    Printing \n?

    How do I effectively add a "\n" to a string without the compiler interpreting it as a new line? For example, if I want to print out the following line:



    blahblah\nblahblah



    rather than
  2. Replies
    11
    Views
    1,019

    the simplest way i can think of to do that would...

    the simplest way i can think of to do that would probably be:



    FILE *fp;
    char string[26]
    int i;

    fp = fopen("filename","r");
  3. Replies
    11
    Views
    1,019

    What are the contents of the text file?

    What are the contents of the text file?
  4. Replies
    4
    Views
    1,585

    Copying Structures

    I'm having a problem copying structures. As you can see below, MOLECULE contains different types of members, including other structures and strings. I tried making a temporary copy of variable of...
  5. Replies
    5
    Views
    1,969

    Thanks a lot guys (or girls)... I appreciate it.

    Thanks a lot guys (or girls)... I appreciate it.
  6. Replies
    5
    Views
    1,969

    I forgot to say that i declared "c" as a type...

    I forgot to say that i declared "c" as a type char. What I'm trying to do is determine if the file extension matches the expected one. Therefore, the "[^.]" simply reads up to where it encounters a...
  7. Replies
    5
    Views
    1,969

    Problems with sscanf()?

    I'm getting a segmentation fault with this piece of code. I pretty sure it has something to do with my use of sscanf(). Any tips would be greatly appreciated.



    char c;
    .
    .
    .
    .
    ...
  8. Replies
    19
    Views
    3,587

    Finding the smallest value

    I'm running a loop where I'm trying to find the smallest value in an array. Does anyone know of a way in which I can assign the first value in the first pass to the variable that is supposed to hold...
  9. Replies
    6
    Views
    4,693

    Sweet!

    thanks a lot Salem, that worked.
  10. Memory allocation error (Nicely formatted this time)

    Once again I would like to appologize for posting that previous mess; hopefully this will be a lot easier to read and understand. The problem that I'm having is that I'm getting the following message...
  11. Replies
    6
    Views
    4,693

    Ignore This Post

    it should be better now, please help.
  12. Replies
    6
    Views
    4,693

    HELP!!! Memory allocation error!

    im getting the following message: "error for object 0x3fd6a7ef: pointer being reallocated was not allocated". It's got something to do with the way i am allocating memory to the pointer "acceptors."...
Results 1 to 12 of 12