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

  • Home
  • SEARCH
  • 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

Is there any advantage to writing a PHP conditional like this: if ($variable !=
There are many tools out there for writing and managing requirements, but are there
Are there any guidelines on writing database tests so that you can refactor database
I am writing a large C program for embedded use. Every module in this
Recently I'm writing a program using Qt(PyQt)'s QTableView. But I find that the current
OK, so this should be simple... But I still can't figure it out. I
I'm writing a program using the Managed WiFi API . Here's how I get
I am writing Eclipse plugins where there are quite a few running jobs. In
Is there a good method for writing C / C++ function headers with default
Would there a more elegant way of writing the following syntax? Thread t0 =

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.