Search:

Type: Posts; User: Furious5k

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    19
    Views
    3,651

    Pardon if I'm missing the answer in that, but my...

    Pardon if I'm missing the answer in that, but my question is which one is true:



    or
  2. Replies
    19
    Views
    3,651

    From a couple of sources: "The only type of...

    From a couple of sources:
    "The only type of identifier with function scope is a label name." I'm not sure why this term is now being used.

    This is how I'm understanding what you mean by function...
  3. Replies
    19
    Views
    3,651

    Hehe, I like the last code comment. So is...

    Hehe, I like the last code comment.



    So is this untrue then? Or is it a true definition and this is simply a pedantical technicality under which it doesn't hold up? or what?
  4. Replies
    19
    Views
    3,651

    That was the best way I could type it which...

    That was the best way I could type it which wasn't untrue and reflected the way I was thinking about it earlier, though I was reading too much into it at the time.


    I am aware. I was using past...
  5. Replies
    19
    Views
    3,651

    A local variable name hides any nonlocal variable...

    A local variable name hides any nonlocal variable of the same name. So, if you have a local variable you use it, if not you use a nonlocal one.

    I interpreted this as being key to how the compiler...
  6. Replies
    19
    Views
    3,651

    Could you please explain what part of scope I am...

    Could you please explain what part of scope I am unclear on?




    Even assuming I was absolutely wrong about everything I said, an honest attempt to point out another person's (perceived)...
  7. Replies
    19
    Views
    3,651

    First of all, thank you for replying. I...

    First of all, thank you for replying. I appreciate you taking time to answer my post and I do mean that. So I hope nobody takes this the wrong way, it is meant to be constructive criticism with a...
  8. Replies
    19
    Views
    3,651

    multiple nonlocal variables

    Hello,

    I am reading a book and am curious about a statement it makes:

    "Anything declared in a block that contains a nested block is nonlocal to the inner block. (Global identifiers are nonlocal...
  9. Thread: Class arrays

    by Furious5k
    Replies
    1
    Views
    747

    Class arrays

    I have two classes. The .h files go something like this:



    class ClassA {
    ...
    public:
    ClassA::ClassA();
    ClassA::ClassA(int x, char array1[], char array2[]); <-- constructor which sets some...
  10. Replies
    6
    Views
    6,574

    *facepalm* I was doing C last semester and...

    *facepalm*

    I was doing C last semester and I've been trying to use #include <stdio.h>, which is of course why printf works and cout doesn't.

    Thanks for sorting me out.
  11. Replies
    6
    Views
    6,574

    Okay, I followed the steps in that link under the...

    Okay, I followed the steps in that link under the "Installing MinGW". However, I still get errors on statements such as "cout" and "endl". C stuff seems fine, such as "printf".

    I did not...
  12. Replies
    6
    Views
    6,574

    compiling C++ with NetBeans

    Hi, I'm having problems setting up a working C++ using NetBeans. But some things aren't working, as if it doesn't have the needed libraries.I tried following this guide, but it didn't sort it out:...
  13. Replies
    3
    Views
    3,814

    Problem with #include

    I have installed NetBeans 6.7.1 IDE and Cygwin.

    I have a c++ class file and as soon as I add

    #include <list>

    I get a ton of errors:


    In file included from...
  14. Replies
    2
    Views
    1,086

    Ack! What a rubbish mistake. Thank you.

    Ack!

    What a rubbish mistake. Thank you.
  15. Replies
    2
    Views
    1,086

    Makefile problem

    Hi, I'm trying to use a makefile, but for some reason I am receiving this error:
    "make: *** No rule to make target `main.oo', needed by `main.o'. Stop."

    I am puzzled, because I've had to...
  16. Replies
    3
    Views
    1,680

    I was just painting in wide strokes so I forgot...

    I was just painting in wide strokes so I forgot to add the types.

    Putting a variable to capture the return value is what I was looking for. Thanks!
  17. Replies
    3
    Views
    1,680

    How to use return values

    Really simple question, can't seem to find an answer. How do I do anything with a return value from a function. For example, I want to check the value of the return value with an if statement, what...
  18. Replies
    34
    Views
    3,330

    Book Books [BOOK_MAX]; User Users [USER_MAX];...

    Book Books [BOOK_MAX];
    User Users [USER_MAX];
    Loan Loans [BOOK_MAX];
    string Sort [BOOK_MAX];
    string Unique [BOOK_MAX];

    int main()
  19. Replies
    34
    Views
    3,330

    Uhh, all my code is int main. I'm still not very...

    Uhh, all my code is int main. I'm still not very good with functions and due to deadlines I decided to just do it the way I can. Here's the whole case, if that helps any:


    int select;
    cin...
  20. Replies
    34
    Views
    3,330

    string Unique [BOOK_MAX];

    string Unique [BOOK_MAX];
  21. Replies
    34
    Views
    3,330

    I updated the code with everything up to the...

    I updated the code with everything up to the closing of the first bracket. It definately has to be something there, because if I wrap comment around that code it compiles.
  22. Replies
    34
    Views
    3,330

    for (int q = 0; q < uniquecount; ++q) ...

    for (int q = 0; q < uniquecount; ++q)
    {
    for (int w = 0; w < BOOK_MAX; ++w)
    {
    if (Unique[q] == Books[w].Author)
    {
    ...
  23. Replies
    34
    Views
    3,330

    uniquecount = 0; worked. It still seems that...

    uniquecount = 0; worked.

    It still seems that the [x+1] would be accessing an array location that does not exist. But if it works, it doesn't matter, I guess, since it wouldn't cause wrong output.
  24. Replies
    34
    Views
    3,330

    int uniquecount; for (int x = 0; x

    int uniquecount;
    for (int x = 0; x < count; ++x)
    {
    if (Sort[x] == Sort[x+1])
    {
    }
    else
    {
    ...
  25. Replies
    34
    Views
    3,330

    I am now trying to eliminate duplicates from the...

    I am now trying to eliminate duplicates from the list before sorting it and after adding the code again getting blanks.


    int flag = 0;
    int count = 0;
    for (int i = 0;...
Results 1 to 25 of 67
Page 1 of 3 1 2 3