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...
Type: Posts; User: Richie T
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...
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...
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...
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...
Post your attempt.
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...
>> 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...
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...
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...
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.
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...
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...
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...
Take a look here for questions such as this:
http://www.cppreference.com
More specifically, here:
http://www.cppreference.com/stdio/rename.html
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...
You're missing some braces so the second d++ is always executed.
while ( d < n )
{
if ( n % d )
d++;
else
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...
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...
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.
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...
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...
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...
First off, there's a mistake in this line:
scanf("%s %s",&str1,&str2);
Should be:
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...
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...