Eclipse Mars settings [message #1744029] |
Wed, 21 September 2016 10:18  |
Eclipse User |
|
|
|
Dear all,
thanks for your help.
I am a beginner using Eclipse and I really wish to get deep into using it.
Starting using it, I have to admit that I can hardly understand if it is well setted because anytime I am writing a code, there is no way to build and lounch it.
The program I am writing are simple examples of some exercise coming from a learning book "Deitel & Deitel" ...
The point is, if I copy the exactly code in the new file of a new C program, it doesn't work anything, nor building nor lounching.
How can I solve this problem once for all? What really does change from other IDE?
In my last topic I did ask more or less the same question and I've learned that when I have to printf ..., I have to add fflush(stdout); otherwise it doesn't charge the integer ...
How to understand settings?
Here we are, another example of a very simple program which drive me crazy today:
#include <stdio.h>
int main( void )
{
int x;
for ( x = 1; x <= 10; x++ ) {
if ( x == 5 ) {
break;
}
printf( "%d ", x );
}
printf( "\nBroke out of loop at x == %d\n" , x );
return 0;
}
The console is dislaying: ".. no progam to build"....
Thanks for any advice.
Massimo
|
|
|
|
|
|
|
|
|
|
|
Re: Eclipse Mars settings [message #1744300 is a reply to message #1744299] |
Sat, 24 September 2016 07:14  |
Eclipse User |
|
|
|
I solved it.
The reason why I didn't succeeded it's because at the console I didn't enter the input but the point is that there is no evidence of inputs' requirements. Now I understand, it should be written better the code.
Thanks again Tauno and have a nice weekend.
Massimo
|
|
|
Powered by
FUDForum. Page generated in 0.06700 seconds