本文介绍了主要保理程序给我带来问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要输出输入的整数的素数。我是C ++的新手,但是我和我的伙伴一起编写了这个程序,并且在编译时,这就是它所做的一切。我很确定它会在for循环中丢失,或者至少在我迷失的地方。

I need to print out the prime numbers of an integer entered in. I am new to C++ but wrote this program with my partner and while it compiles, that''s about all it does. I''m pretty sure it gets lost in the for loop, or atleast that''s where I get lost.

展开 | 选择 | Wrap | 行号

推荐答案

展开 | 选择 | Wrap | 行号






我在想这个,你的意思是在for循环中增加它?我不确定如何将每个因素打印出来。



I was thinking of this, you mean increment it in the for loop? I''m not sure how i would get each factor to print out then.


这篇关于主要保理程序给我带来问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 11:17
查看更多