Forum: C++ Sep 21st, 2009 |
| Replies: 4 Views: 196 I thought we checked all the values in the array? how do I fix this |
Forum: C++ Sep 21st, 2009 |
| Replies: 4 Views: 196 //This function prints all scores, but if a score occurs more than once, it only prints it one time
void scores_once(int x[20], int size, int new_array[20])
{
for(int i=0; i<size; i++)
... |
Forum: C++ Aug 27th, 2009 |
| Replies: 3 Views: 195 I am only in programming 2 for C++ i have no idea what all that means...so can you make it more simple...? |
Forum: C++ Aug 27th, 2009 |
| Replies: 3 Views: 195 I have to write code to shift all the values in the array to the right of position P, one place to the left. I can make up my own array and position P. would this code work?
for (j=6; j>1;j--)
{... |
Forum: C++ Dec 9th, 2008 |
| Replies: 2 Views: 263 The following function mixes call by reference and call by value parameters.
void T ( int & a, int b )
{
int c = a - 1;
a = c + b;
b = a + 2;
}
Suppose that in main we had the following:... |
Forum: C++ Dec 9th, 2008 |
| Replies: 5 Views: 307 umm no i'm trying to study for my exam tom. and i just wanted to justify that i'm doing this right....this is my practice exam she gave us to study with thanks... |
Forum: C++ Dec 9th, 2008 |
| Replies: 5 Views: 307 26. What is printed in the following code segment?
I = 1;
do
{
I = I + 25;
}
while ( I > 50 );
cout << I + 50;
a) 50 |
Forum: C++ Dec 9th, 2008 |
| Replies: 2 Views: 262 23. To convert Fahrenheit ( F ) temperatures to Centigrade ( C ) temperatures people use the formula: (32 degrees F is 0 degrees C, 212 degrees F is 100 degrees C, etc.)
double C,F;
cin >> F;... |
Forum: C++ Dec 9th, 2008 |
| Replies: 1 Views: 218 14. What will be outputted given the segment of code, if 11 is entered from the keyboard?
int number;
cin >> number;
if ( number > 0 )
cout << "C++";
else
cout << "Soccer";
cout... |
Forum: C++ Dec 4th, 2008 |
| Replies: 6 Views: 902 below is the info that is in the file "grades.txt" i had it in notepad
134 Johnson 50
156 Murray 33
145 Lowes 45
111 Adams 15
678 Wright 46
890 Smith 10
433 Price 50 |
Forum: C++ Dec 4th, 2008 |
| Replies: 6 Views: 902 This is the updated version, see if you can run it.
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
using namespace std;
const int size=20; |
Forum: C++ Dec 4th, 2008 |
| Replies: 6 Views: 902 ok when ever i compile and try to run this program my computer windows cuts the program off...but without this bubble thing my computer runs it fine...I don't understand?
windows says that the... |
Forum: C++ Dec 4th, 2008 |
| Replies: 6 Views: 902 What is <snip>? and thank you i will try it |
Forum: C++ Dec 4th, 2008 |
| Replies: 6 Views: 902 I just learned about bubble sort and still don't know how to make it work in my program I hope someone can help me.
This is my task
I should use parallel arrays (of size 20) for student name,... |