By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,816 Members | 2,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,816 IT Pros & Developers. It's quick & easy.

Programming sequences in eclipse and it wont work.

P: 1
I have been at this for hours now, and I cant get the damn thing to work. every time I try to just stuff that should work it comes back with weird errors. Please help I have no idea how to fix it. Ill put the errors i get at the bottom of the code.

#include <stdio.h>
#include <stdlib.h>

void arithmeticSequence(void) {
int a = 1;
int y = 11;
int k;
printf("Arithmetic sequence: ");
for (k=0; k<10; k++) {
printf("%5d", a);
a = a + y;
} /*for*/
printf("\n");
} /*artithmeticSequence*/


void harmonicSequence(void) {
printf("Harmonic sequence: ");
printf("print sequence\n");
}

void fibonacciSequence(void) {
printf("Fibonacci sequence: ");
printf("print sequence\n");
}

void leonardoSequence (void) {
printf("Leonardo sequence: ");
printf("print sequence\n");
}

int main() {
printf("main\n");
arithmeticSequence();
harmonicSequence();
fibonacciSequence();
leonardoSequence();
return EXIT_SUCCESS;
} /*main*/



//Errors

Description Resource Path Location Type
cannot open output file Sequences Assingnment.exe: Permission denied Sequences Assingnment C/C++ Problem


Description Resource Path Location Type
Program "g++" not found in PATH Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings MinGW] options C/C++ Scanner Discovery Problem


Description Resource Path Location Type
Program "g++" not found in PATH Sequences Assingnment Project Properties, C++ Preprocessor Include.../Providers, [CDT GCC Built-in Compiler Settings MinGW] options C/C++ Scanner Discovery Problem
Sep 27 '15 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
The first error on permission to open Sequences Assingnment.exe may be due to the fact that your previous debug session is still open making the .exe file unavailable for writing.

Check that first and repost.
Sep 27 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.