Search:

Type: Posts; User: jimblumberg

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    238

    You said you wanted open source on Linux, the two...

    You said you wanted open source on Linux, the two biggest players that meet that criteria are clang and gcc. There are probably others, some even listed in the link above that you can download and...
  2. Replies
    5
    Views
    238

    If you're using full blown Linux then clang or...

    If you're using full blown Linux then clang or gcc seem to fit.
  3. Replies
    54
    Views
    1,361

    Did you search your filesystem for that file?

    Did you search your filesystem for that file?
  4. Replies
    54
    Views
    1,361

    This is the C++ forum, and in C++ main() must be...

    This is the C++ forum, and in C++ main() must be defined to return an int. If you use a truly standard compliant compiler void main() is not allowed. And if you don't use a truly standard compiler...
  5. Replies
    54
    Views
    1,361

    True, but with some operating systems it must be...

    True, but with some operating systems it must be a very small positive integral value. And with C++ if no return value is supplied zero will be returned.
  6. Replies
    54
    Views
    1,361

    You'll need to post your code. However it is...

    You'll need to post your code. However it is telling you that your program returned a value other than zero, which usually indicates some kind of failure of your program.
  7. I hope "it argc" is a typo, it should be "int...

    I hope "it argc" is a typo, it should be "int argc".

    How exactly are you calling the program?

    What are your actual command line arguments?
  8. Do you realize that std::string.c_str(), returns...

    Do you realize that std::string.c_str(), returns a const C-string, which means that you can't modify that C-string?
  9. Replies
    5
    Views
    279

    Start by doing some research. Use your favourite...

    Start by doing some research. Use your favourite search engine, searching for something like "c string comparison" should give you a good start,

    By the way I'd judge about a 2 maybe 3.
  10. Thread: Struct.

    by jimblumberg
    Replies
    11
    Views
    257

    You need to show some actual effort, no one here...

    You need to show some actual effort, no one here is going to just give you the solution.


    Break the problem down to manageable chunks, don't try to solve the entire program in one go. I'd start...
  11. Thread: Struct.

    by jimblumberg
    Replies
    11
    Views
    257

    Why not? Explain yourself, your question really...

    Why not? Explain yourself, your question really doesn't make much sense. If you want more coherent answers you need to provide more coherent questions.

    Do you understand the difference between a...
  12. Thread: Struct.

    by jimblumberg
    Replies
    11
    Views
    257

    First thing I notice is that your structures...

    First thing I notice is that your structures contain no "strings" just some doubles, integers, and single character types.



    Second there are no "separators" involved in the structures, perhaps...
  13. Since sizeof is a compile time (except when...

    Since sizeof is a compile time (except when dealing with the horrible VLA) operator it really won't make much difference.
  14. Replies
    9
    Views
    772

    What did you change?

    What did you change?
  15. Replies
    9
    Views
    772

    First off why are you using the C-string...

    First off why are you using the C-string functions in the first place? Why not just use C++ strings and then directly compare the strings?

    Second I can't reproduce your results because the program...
  16. Replies
    11
    Views
    155

    What is the purpose of the program? What input...

    What is the purpose of the program?

    What input did you use that caused the program to crash?

    Why all the horrible global variables? You need to learn to pass variables to and from your...
  17. Replies
    11
    Views
    155

    Please post your current code, inside code tags.

    Please post your current code, inside code tags.
  18. Replies
    11
    Views
    155

    Do you see any if in that line? It either needs...

    Do you see any if in that line? It either needs to be a "bare" else or else if(pt[i].vp == vp). An else all by it's self has no conditions.
  19. Replies
    11
    Views
    155

    ---> else (pt[i].vp == vp) Again else...

    ---> else (pt[i].vp == vp)


    Again else statements have on conditions, the above should just be else.
  20. Replies
    11
    Views
    155

    The else statements have no conditions.

    The else statements have no conditions.
  21. Replies
    4
    Views
    190

    Well if you use the assignment operator= in an...

    Well if you use the assignment operator= in an if() statement the statement will always evaluate to true. If you use the comparison operator== it will evaluate to either true or false, depending on...
  22. Replies
    17
    Views
    470

    Okay work on one problem at a time. What...

    Okay work on one problem at a time.

    What exactly are you entering into the program, and what exactly is the expected results with that input?

    When I enter 5 5 1 I get the following output:
    ...
  23. Replies
    4
    Views
    190

    One is a comparison, the other is an assignment.

    One is a comparison, the other is an assignment.
  24. Replies
    17
    Views
    470

    So where is the complete code?

    So where is the complete code?
  25. Replies
    17
    Views
    470

    Post your modified code. And note without the...

    Post your modified code. And note without the complete program we will probably be guessing about where the problem lies because we can't see the problem.

    Did you run the program with your...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4