- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I need to finish this program, but i have no idea how to! please help me figure this out. [code] #include <iostream> #include <fstream> using namespace std; void printShips(char [15][15]); void fire(int row, int col, char ocean[15][15], char &result, char &ship); struct counter { int B, C, D, F, T, … |
|
i have no clue how to sort using the array. it is not 2d. this is what i have [code] for(int i=1; i <=num; i++) { do{ cout <<"enter score " << i << ": "; cin >> scores[i]; if((scores[i] <= 0)||(scores[i] >=100)) cout << "invalid score\n"; }while((scores[i] <= 0)||(scores[i] … |
|
i really need help!!! i am a noob, just getting started in c++ and i need help sorting my array. please don't suggest me std::sort because i don't really know how to use those! sorry i am such a noob, but i prefer it the simplest way possible please help … |
|
how do i get int in fstream? i am in need to change my char to int. i am not allowed to use anything above and including fuctions. this includes sstream. is there any way for the program to read "3" in the program as an interger? |
|
i need to know how many times the while loop is done. while (myin) { myin >> name; cout << name ; myin >> num1 >> num2 >> num3; cout << " " << fixed << setprecision(0)<< num1 << " "<< num2 << " "<< num3 ; average = (num1 … |
|
CSCI 1170: Open Lab Assignment #5 Program due: Thursday, Oct 29, 2009 at midnight as the day turns to Friday Oct 30, 2009. Professor: c8296800 code: ola5 Purpose of this assignment: The purpose of this assignment is to understand the while loop programming construct. This assignment will let you 1. … |
|
i got to do this for my class and i am a total noob! i don't know what to do from this point on. first, i need to use fstream to do this. 3 Tracy 80 91 67 Dana 0 66 44 Scott 50 41 64 Jamie 82 90 87 … |
|
i have this Tracy 80 91 67 and it is read from a file, making it fstream. i want the computer to reconize the numbers and add them and divide them, excluding the name. how do i do it? i can't use fuction so please make it easy. |