Search:

Type: Posts; User: Sake

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    3,421

    What is LEN defined as?

    What is LEN defined as?
  2. Replies
    13
    Views
    3,747

    Yes, a great deal. That was the primary reason...

    Yes, a great deal. That was the primary reason that I replaced 6.0 with .NET.
  3. Replies
    13
    Views
    3,747

    If you are doing C++ then it is definitely worth...

    If you are doing C++ then it is definitely worth it. But I got VC++.NET Standard for $99 for my personal copy. What edition was the one you looked at?
  4. Replies
    6
    Views
    3,421

    >>return (j-1); This is wrong. You need to...

    >>return (j-1);
    This is wrong. You need to return j, not j-1. Most likely the problem your having is that you are passing a size to clean_array that is one too much.
  5. Replies
    4
    Views
    5,995

    >>A Binary Tree is a map then? A map is an...

    >>A Binary Tree is a map then?
    A map is an abstract concept of a collection of items that are accessed by a key. It just happens that a binary search tree is a very close match to that concept...
  6. Replies
    21
    Views
    2,284

    >>No thanks, I know how to browse usenet with...

    >>No thanks, I know how to browse usenet with Google, so I can look it up myself if I choose.
    But you choose not to because you still think you're right and I'm not? People here are almost as...
  7. Replies
    6
    Views
    1,672

    Something like this? #include ...

    Something like this?


    #include <stdio.h>
    #include <stdlib.h>

    long int pctoi(const char *pc)
    {
    long int ret = 0;
    char *end;
  8. Replies
    1
    Views
    867

    stdafx.h is a precompiled header that will be...

    stdafx.h is a precompiled header that will be automatically included unless you create an empty project. mscorlib.dll is a header for managed C++ IIRC, but creating an empty project will solve both...
  9. Replies
    3
    Views
    935

    It would help to see what code you have already...

    It would help to see what code you have already so that I can help you write something a bit simpler. If you're a beginner than I don't imagine you're using C++ string objects.
  10. Thread: need help please

    by Sake
    Replies
    2
    Views
    762

    >>need help with displaying the numbers contained...

    >>need help with displaying the numbers contained the file
    I'm not sure I understand what you want. Do you want to print the numbers in the file before returning their average?


    while (infile >>...
  11. Thread: Strange Bus Error

    by Sake
    Replies
    5
    Views
    1,093

    >Any idea why these functions are running after...

    >Any idea why these functions are running after my code is apparently finished?
    There's a lot of hidden framework around your program. Consider destructors as a general example. They run behind the...
  12. Replies
    21
    Views
    2,284

    Since your misunderstanding won't break anything,...

    Since your misunderstanding won't break anything, you can believe what you want to. But if you want to further your understanding of C, feel free to post the following question on comp.std.c.

    ...
  13. Replies
    6
    Views
    1,672

    >>Its a product number that I am storing in a...

    >>Its a product number that I am storing in a structure. It has be an int.
    Do you have to put the dashes back at any point? Are product numbers consistent in the placement of dashes? Removing the...
  14. Replies
    4
    Views
    5,995

    The standard map is usually implemented as a...

    The standard map is usually implemented as a red-black tree. You can find an implementation and description here.
  15. Replies
    3
    Views
    935

    Loop over each character of the string and call...

    Loop over each character of the string and call toupper on it:


    #include <cctype>
    #include <string>

    using std::string;
    using std::toupper;

    for (string::size_type i = 0; i < str.length();...
  16. Thread: Strange Bus Error

    by Sake
    Replies
    5
    Views
    1,093

    It looks like some memory you allocated got...

    It looks like some memory you allocated got corrupted somehow. Not like that helps you debug it, but memory errors are among the hardest to find and fix.
  17. Replies
    21
    Views
    2,284

    >>Yet the standard is clear that the ways to...

    >>Yet the standard is clear that the ways to declare main are as the following
    You'll notice that it also provides for anything equivalent to the two definitions provided, which the section I quoted...
  18. Replies
    6
    Views
    1,672

    Can you be more specific about how you're going...

    Can you be more specific about how you're going to use it?
  19. Replies
    21
    Views
    2,284

    >>Quote it then, because it does not mean "no...

    >>Quote it then, because it does not mean "no arguments".
    You're wrong:

    >>As stated, this is not C++, this is the C board.
    I'm well aware of that, which is why I made it clear that I was...
  20. Replies
    21
    Views
    2,284

    You're confusing a declaration with a definition....

    You're confusing a declaration with a definition. In C, a declaration with an empty parameter list means that any number and type of arguments are allowed for compatibility with K&R style functions....
  21. Replies
    21
    Views
    2,284

    While I agree stylistically, syntactically the...

    While I agree stylistically, syntactically the two are identical.
  22. Thread: strings

    by Sake
    Replies
    14
    Views
    1,185

    It guarantees that fullname is a valid null...

    It guarantees that fullname is a valid null terminated string. If it isn't then strcat will search through memory until it finds '\0', which could potentially exceed the boundaries of the array.
  23. Replies
    12
    Views
    1,544

    Can you show the code that causes this error?

    Can you show the code that causes this error?
  24. Replies
    7
    Views
    1,610

    >>are these correct? For the most part. ...

    >>are these correct?
    For the most part.

    >>what's the difference between scanf() and gets() ?
    If you use scanf with the right format modifier then there's no difference. But for the most part,...
  25. Thread: Help with strings

    by Sake
    Replies
    13
    Views
    1,399

    >>Yes you need in scanf and printf & >>If I...

    >>Yes you need in scanf and printf &
    >>If I remove them then I get
    You missed the point. It's broken either way if the pointer doesn't point to anything except a random address.
Results 1 to 25 of 89
Page 1 of 4 1 2 3 4