Search:

Type: Posts; User: new2C-

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    584

    Off topic I know (Java Question)

    I came here because this place seems to have the most knowledgeable programmers on the internet :)

    My question is: In java if everything is essentially an object (aside from primitive data types),...
  2. Replies
    7
    Views
    1,173

    Thank you all for your input.

    Thank you all for your input.
  3. Seems to work for me. What input are you using?

    Seems to work for me. What input are you using?
  4. Replies
    7
    Views
    1,173

    Jobs in C outside of Embedded Systems

    Are there any other jobs/applications that C attributes to. Something other than embedded systems.

    I would like to go into embedded systems because I enjoy this language but I feel that being an...
  5. Replies
    2
    Views
    636

    It frees the memory what the pointer was pointing...

    It frees the memory what the pointer was pointing to. As long as the memory was allocated dynamically.
  6. Replies
    1
    Views
    609

    You will have to parse the string. Anytime you...

    You will have to parse the string. Anytime you come across an character that is an int, add it to a string. Then you can use atoi() function to convert it to an integer. That should get you started....
  7. Replies
    14
    Views
    1,226

    I can't argue with that. It just seems that when...

    I can't argue with that. It just seems that when I hear about "Bad Programmers" it's in the workplace.
  8. Replies
    14
    Views
    1,226

    Definition of a bad programmer

    I have read many articles online about the software engineering workplace and how bad programmers can be. What does that typically mean? I imagine it as being someone who uses ill practices like...
  9. Replies
    2
    Views
    3,036

    while(ch != 'Q' || ch !='q'); need to be an...

    while(ch != 'Q' || ch !='q');

    need to be an AND statement


    while(ch != 'Q' && ch !='q');
  10. Replies
    3
    Views
    608

    Make sure you always check for null in your...

    Make sure you always check for null in your looping conditions, this will make sure that you do not access any invalid memory locations.


    ex.
    for(curr;curr!=null;curr=curr->next)

    you can add...
  11. Replies
    8
    Views
    40,143

    I believe so, yes.

    I believe so, yes.
  12. Replies
    8
    Views
    1,047

    x = fscanf(fp,"%s", &x);//x should be of type...

    x = fscanf(fp,"%s", &x);//x should be of type int, and the &x should be a string

    //for example
    int x,status;
    char array[256];
    x = fscanf(fp,"%s", array)
  13. Replies
    8
    Views
    1,047

    All you are doing is printing out the file name,...

    All you are doing is printing out the file name, you arent printing anything out from the file itself. I think you are experiencing some undefined behavior.
  14. Replies
    8
    Views
    1,047

    Your fscanf is reading a string but only storing...

    Your fscanf is reading a string but only storing it in a char, (x). You should have a string to store the values.

    x should be of type int I believe, EOF is int.
  15. Replies
    8
    Views
    1,047

    What does the file look like?

    What does the file look like?
  16. Replies
    1
    Views
    1,205

    Hash table determing load factor

    I have a file that has 70k words in it. I am trying to determine how big my hashtable should be, I suspect it should be 75 to 80% of the file size (ex. 70000 x .75) If I make it that size, what sort...
  17. Replies
    1
    Views
    612

    question about linkedlists

    Why do most C examples pass a double pointer when manipulating linkedlists? Why can not we just pass a single pointer to the struct?
    I think using an external reference accessor for a linked list...
  18. Replies
    6
    Views
    1,483

    void foo() { int a, b, i; scanf("%d",...

    void foo()
    {
    int a, b, i;
    scanf("%d", &a);
    scanf("%d", &b);
    while (a != b)
    {
    if(a<b)
    for (i = a; i <= b; i += 1)
    printf("%d ", i);
  19. Replies
    7
    Views
    1,286

    Let me guess, you are using Bloodshed Dev-C++...

    Let me guess, you are using Bloodshed Dev-C++...
  20. What specialization is regarded as very complex in the software engineering realm?

    ^TITLE

    I want to be something special and will dedicate myself to becoming an expert in the hardest most sought after (by employers) job.

    I just want to be worth something in the world, no pity...
  21. Replies
    33
    Views
    9,841

    int main(int argc, const char * argv[]) //remove...

    int main(int argc, const char * argv[]) //remove the const key word

    if (scanf("%s", &in_name) != 1) //%s is used for strings, %c is used for char
  22. Sizeof(words) returns the size of the pointer not...

    Sizeof(words) returns the size of the pointer not the actual length of the array, I believe. You should pass in the length of your arrays into the function parameters.
  23. I was thinking it did due to the name. I noticed...

    I was thinking it did due to the name. I noticed in the prototype it takes an int parameter, I also noticed the examples in main have some parameters passed as a char, shouldn't that create some...
  24. Does putchar automatically cast the int to a...

    Does putchar automatically cast the int to a char?


    int c;

    while ((c = fgetc(fp)) != EOF)
    {
    putchar (c);
    }
  25. Replies
    35
    Views
    4,166

    Laserlight, will this book give me a good grasp...

    Laserlight, will this book give me a good grasp on the "Standard" and underlying layer of abstraction?
Results 1 to 25 of 31
Page 1 of 2 1 2