Skip to content

Instantly share code, notes, and snippets.

@mischief
Forked from anonymous/tempcode
Created October 16, 2012 22:11
Show Gist options
  • Save mischief/3902374 to your computer and use it in GitHub Desktop.
Save mischief/3902374 to your computer and use it in GitHub Desktop.
C++tempcode
#include <iostream>
using namespace std;
int value;
void test(unsigned i) {
// test i, print, etc
}
void find_things_in_range(unsigned start, unsigned end) {
for(unsigned i = start; i < end; i++) {
// test i, see if it is the right number
test(i);
}
}
void calcdiv(int number)
{
for (int i=1;i<=number/2;i++)
{
if (number % i == 0)
{
value+=1;
}
}
}
int main()
{
unsigned start = 0,end = 0;
cout<<"numbers plz\n";
cin>>number1>>number2;
find_things_in_range(start, end);
cout<<value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment