Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
1
vote
1
answer
43
views
pset 3 runoff help again
I still dont know what to put in for loop :(
I still dont know what to put in the for loop
for(int k = 0; k < voter_count; k++)
{
for (int j = 0; j < candidate_count; j++)
{
i …
1
vote
2
answers
131
views
PSET3 Runoff Help Please
for(m = 0; m < voter_count; m++)
{
for(t = 1; t < 4; t++)
{
string name = get_string("Rank %i: ", t);
}
printf("\n");
}
}
bool vote(int voter, int rank, string name)
{
for (z = 0; z < candidate …