Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3395976
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:21:10+00:00 2026-05-18T04:21:10+00:00

Hi there I am writing this program but I can’t get it to even

  • 0

Hi there I am writing this program but I can’t get it to even start to see if the other code has problems.

I have this:

    int main()
{
    int answer;
    int test;
    cout << "Please Enter the number to be tested: ";
    cin >> test; //Gets number to be tested
        cout << "here";
    answer = factor(test);
    cout << "The answer is:" << answer;
    return 0;
}

now then. It will print out the first cout, and then it gets to the cin, takes the number but then won’t do anything. Won’t even print the second cout. Any ideas?

I”m pretty new and haven’t really done much so any extra treating me like an idiot explanations are welcomed. 😀 Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:21:11+00:00Added an answer on May 18, 2026 at 4:21 am

    Maybe there is something wrong with the factor function? An infinite loop?
    Then cout << “here” << endl; (to flush the output) should at least print “here”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: There must be some way I can approach this without writing a whole
I wanted to throw this out there for some ideas. I'm writing a program
I'm writing a custom compound control that extends RelativeLayout. Inside this component, there is
I'll try to explain this with an example. I'm writing a chat application. There
I am writing a class to implement an algorithm. This algorithm has three levels
Are there any guidelines to writing Google App Engine Python code that would work
I am writing a large C program for embedded use. Every module in this
I'm actually writing about the same program as before, but I feel like I've
Edit: this describes my problem exactly, but I can't overcome it with PHP: http://kb.winzip.com/kb/entry/149
Recently I'm writing a program using Qt(PyQt)'s QTableView. But I find that the current

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.