Search:

Type: Posts; User: Richie T

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: heLppp

    by Richie T
    Replies
    5
    Views
    1,220

    Listen to your compiler: test.cpp:16:...

    Listen to your compiler:



    test.cpp:16: error: declaration of `int Soru1::Average'
    test.cpp:11: error: conflicts with previous declaration `double Soru1::Average()


    You can't have two class...
  2. Replies
    5
    Views
    2,360

    Add fflush(memo_pntr) after you use fputs, or...

    Add fflush(memo_pntr) after you use fputs, or replace fputs with an fprintf. fputs must not flush the output buffer on completion.



    This explains the behaviour - and I'll guess that without...
  3. Replies
    5
    Views
    2,360

    Are you sure that you're entering the loop? To...

    Are you sure that you're entering the loop? To enter that loop the value of done must be zero. Post a short example that both compiles and demonstrates the problem - without seeing how you've set...
  4. Thread: Hi again

    by Richie T
    Replies
    0
    Views
    4,721

    Hi again

    Hi all,

    Some of you may remember me from a few years back. I disappeared off the board (with an ocassional post or two) due to a busy schedule of college and part time work, exams, work...
  5. Post your attempt.

    Post your attempt.
  6. Replies
    3
    Views
    2,185

    Without being familiar with the Allegro library,...

    Without being familiar with the Allegro library, I would have to say that it should be possible to implement some form of program that completes this task using a graphics library, but I got the...
  7. Replies
    25
    Views
    2,858

    >> is there any way I could improve upon this...

    >> is there any way I could improve upon this implementation?

    Yes, try getting it working with a single iterating variable. It can be done. As a hint, try printing out the values of i, b and...
  8. Replies
    3
    Views
    2,185

    Without knowing your particular level of...

    Without knowing your particular level of experience, it is hard to say. I'm guessing that you are a beginner so my answer would be: yes, it would be hard for you. Tell us more about your experience...
  9. Replies
    9
    Views
    1,741

    It is very unfortunate that you are required to...

    It is very unfortunate that you are required to use that compiler, I can remember a number of instances where I found that it was not standards compliant in my early days of programming, which was...
  10. Replies
    9
    Views
    1,741

    First off, post some code. Secondly, get a...

    First off, post some code. Secondly, get a bettter compiler - Miracle C isn't great. Popular ones would be code::blocks with MinGW or MS visual C++ Express.
  11. Replies
    6
    Views
    2,168

    I have to agree with the others on this one -...

    I have to agree with the others on this one - learn the language you want to use. Usually I would recommend learning C as it is very useful for branching out into other programming languages, but if...
  12. Thread: Linker Error

    by Richie T
    Replies
    11
    Views
    2,462

    Post some code - I doubt that the problem is with...

    Post some code - I doubt that the problem is with missing library files unless you were foolish enough to go deleting stuff in the compiler's directories. If you did, the easiest way to fix it is...
  13. Replies
    7
    Views
    3,151

    When you type a character, you press enter and...

    When you type a character, you press enter and then type another, you press enter again and so on in this manner. The problem is that when you press enter, that is represented as a newline character...
  14. Replies
    2
    Views
    1,524

    Take a look here for questions such as this: ...

    Take a look here for questions such as this:

    http://www.cppreference.com

    More specifically, here:

    http://www.cppreference.com/stdio/rename.html
  15. Replies
    10
    Views
    8,737

    I think that we just have a terminology clash...

    I think that we just have a terminology clash here. The OP has probably seen code like the following before, thinking that the variables are initialised "inside the class" without realising that...
  16. Replies
    17
    Views
    3,948

    You're missing some braces so the second d++ is...

    You're missing some braces so the second d++ is always executed.



    while ( d < n )
    {
    if ( n % d )
    d++;

    else
  17. Replies
    2
    Views
    1,993

    I'm confused by your question: are you saying...

    I'm confused by your question: are you saying that you have an array of 9 integers in your program, and you want a user to be able to select which values are not copied from the first array to a...
  18. Replies
    21
    Views
    3,050

    You're not expected to, but it would help if you...

    You're not expected to, but it would help if you read your compiler output carefully and read documentation about language features before you try to use them.

    www.cppreference.com

    The above...
  19. Array indices are zero based - A 5 element array...

    Array indices are zero based - A 5 element array has indices 0, 1, 2, 3 and 4. Subtract 1 from the numbers the user provides and it'll behave in the manner you want.
  20. Replies
    9
    Views
    2,296

    Sure weak typing isn't great in practice, but I...

    Sure weak typing isn't great in practice, but I would say that it would be advantageous to learn a weakly typed language to really understand the importance of type safety. It's all good and well to...
  21. Replies
    9
    Views
    2,296

    Probably should have been posted in GD, but oh...

    Probably should have been posted in GD, but oh well.

    I started C and C++ because of coursework, got hooked on them right away. As for advantages and disadvantages, well that's often application...
  22. Replies
    4
    Views
    11,332

    Well you'll have to start going through them -...

    Well you'll have to start going through them - first one is obvious enough - you destructor should not take parameters. Secondly, your class actually has no data members - only a typedef and a...
  23. Replies
    2
    Views
    4,696

    First off, there's a mistake in this line: ...

    First off, there's a mistake in this line:



    scanf("&#37;s %s",&str1,&str2);


    Should be:
  24. Replies
    2
    Views
    1,288

    Read your compiler's output - it should tell you...

    Read your compiler's output - it should tell you that you can't use strings in switch statements - you have to use a simpler type. My suggestion would be to use a character or an integer, e.g. for...
  25. Replies
    5
    Views
    3,371

    The MXE package is for the ModelSim simulator,...

    The MXE package is for the ModelSim simulator, but ISE has its own built in simulator so you won't need that, besides it only comes with a trial licence I believe. The Service Pack 3 package should...
Results 1 to 25 of 478
Page 1 of 20 1 2 3 4