# include <iostream>
# include <string>
using namespace std;
class Driller{
int Code;
string name;
viod setValue( int Code, int Depth){
if Code == 2000 then Depth ==300;
else
if Code == 3000 then Depth == 500;
else
if code == 4000 then Depth == 1000;
}
voidGetvalues int Code, int Depth){
???
}
Cost(...
User Profile
Collapse
-
Class has three data member
I need help in C++
.Class name Driller has three data member (int Code Private, int Quantity private and Name public)
it has 3 function:
1. Depth, the drills drills is based on the following:
code 2000 depth(m) 300, code 3000 depth 500 and code 4000 depth 1000.
2. Cost which computes the daily cost for using driller it uses the following:
depth (300) daily cost (quantity*100)
depth... -
flash started a topic Show/hide description onmouseover/onmouseout and change font color/size ondoubleclickin JavascriptShow/hide description onmouseover/onmouseout and change font color/size ondoubleclick
1-When the mouse is over the course title. Its description should appear. When it the mouse is out, the description should disappear.
2-when double click on a word, its color changes to (green) and gets larger.
=============== =============== =====
[HTML]<head>
<script type="text/javascript"> // i think this code need some modifying
function mover(text){
var x=document.getE lementById('des play');... -
AFTER LINKING (MICROSOFT VISUAL C++):
Compiling...
asss.cpp
c:\documents and settings\m8au\d esktop\assssss\ asss.cpp(50) : error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >' (or there
is no acceptable conversion)
c:\documents and settings\m8au\d esktop\assssss\ asss.cpp(59)...Leave a comment:
-
Thanks
could u try this program in microsoft visual c++ 6.0 (1998).
it is not working well....Leave a comment:
-
Need help with inheritance
I need to complete derived class and main class:
derived class should have data member: major(string), grades: an array of integrs (size 5).
it should have methods to:
1-set and get the major.
2-insert a grade in the grades array.
3-compute the gpa of the 5 courses.
THEN:
MAIN METHOD THAT :
1-Creat a diploma student.
2-et the name of the student to a value that program gets from the user.... -
flash started a topic Need hlep to delete array only because all function is ok (inser, sort andsearch)in CNeed hlep to delete array only because all function is ok (inser, sort andsearch)
Need hlep to delete array only because all function is ok (inser, sort andsearch)
#include <iostream.h>
//functions prototype
void Insert(int[],int);
void Delete(int[],int);
int Search(int[],int);
void Sort(int[],int);
int n=0,i=0,locatio n;
bool found;
//main
int main()
{
int grades[10],i,g;
for(i=0;i<4;i++ ){... -
-
This is my solution but not working well:
#include <iostream.h>
//functions prototype
void Insert(int[],int);
void Delete(int[],int);
int Search(int[],int);
void Sort(int[],int);
int n=0,i=0,locatio n;
bool found;
//main
int main()
{
int grades[10],i,g;
for(i=0;i<4;i++ ){
cout<<"Enter a new...Leave a comment:
-
-
-
Main program call 3 functions:Insert,Delete & Search
write a program that manipulates arrays of integers. The main program should call three functions: Insert, Delete, and Search. The Insert function should call a function Sort that sorts the array.
Here is a description of the three functions:
Insert: Accepts as input the array and the element you want to insert into the array. The function should insert the element at the end of the array and should call the function...
No activity results to display
Show More
Leave a comment: