Welcome to E8 :: [eon8]

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll also be able to use the shoutbox, customize your profile, change themes, gain reputation points for submitting content, while also communicating with other members via your own private messenger, plus much more!

 

This message will be removed once you have signed in.

Sign in to follow this  
kxrxoxnxixc

Why does this cause a segmentation fault?!

1 post in this topic

cin >> z;

		 if(isalpha(z))

		  { cout << red << "That was not an integer" << normal << endl;

		   return(-1); }

		else  if( (z > 0) && (z < 46) )

		{

	cout << "The Fibonnaci Sequenece corresponding to the number ->" << endl; 

			 for(n = 0; n < z; n++)

			 {

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this