Forum: C++ Jun 14th, 2008 |
| Replies: 2 Views: 418 double indexLowTemp()
{ind=1;
for (a=0;a<col;a++)
{if (low<=temp[a][0])
{low=temp[a][0];
ind=a;
}
} |
Forum: C++ Jun 14th, 2008 |
| Replies: 8 Views: 870 i had change the 3 lines yet it also has error.....
is there anything i need to change on the code you had given??? |
Forum: C++ Jun 14th, 2008 |
| Replies: 8 Views: 870 it also has error.....
am i going to change the code in 103
with the code you give???? |
Forum: C++ Jun 14th, 2008 |
| Replies: 8 Views: 870 i think it is on the row that has error....
what do i need to change?? |
Forum: C++ Jun 14th, 2008 |
| Replies: 8 Views: 870 #include<iostream.h>
#include<conio.h>
const int row=13,col=6,num=78;
int i,j,r,c,area;
int m[num],n[num];
int x,x1,x2,t=0,p;
char str[row][col];
char a='*',y,z; |
Forum: C++ Jun 14th, 2008 |
| Replies: 8 Views: 870 #include<iostream>
using namespace std;
int intro();
double getData();
double averageHigh();
double averageLow();
double indexHighTemp();
double indexLowTemp();
double table(); |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 /*first error checking!*/
if (row>ROWS || row < 0 || seat>SEATS || seat <0)
return 1; //error!
what are this for???? |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 when i input rows and column....
the print result are all X... |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 ah... i will make a userInput function.... where will i put it????
I edited it on Borland and it run.....
tnk you...
will i put the userInput array inside the do while statement??? |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 do i need to put #include<conio.h>
and
getch(); \\at the end.. |
Forum: C++ Jun 13th, 2008 |
| Replies: 4 Views: 1,581 can you give me the overall format for the program???
just a summary..
i dont really know how to use array function...
i am using Borland C++ |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 but i dont know how to make array function....
everyday i try it and i always got it wrong...
i had work on this for one week...
please help me...
day and night i work on it and its bad... |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 ouch....
i had re write it and that "-" error always appear..
is the code you give, the overall code of the problem???? |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 #include<iostream>
using namespace std;
int main()
{
int reserve;
char response = 'y';
char ans;
int choice; |
Forum: C++ Jun 13th, 2008 |
| Replies: 4 Views: 1,581 how can i make an array inside by a function?????
so that the value i will input will change....
I am using Borland C++.....
how can i start it????
1. [SOLO] Write a program that uses a... |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 i am from the philippines....
the error in Borland is
1.undefined function tupper in function main()
2. expression syntax in function main
3. while statement missing ) in function main |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 i am using the microsoft visual c++ 2008....
only one error appears because i change one error.... |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 it has error on Borland.....
I dont know why the school uses Borland compiler, it is a primitive compiler....
what will i do to make it run on Borland
tnx... |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 this is the only error i have.....
what will i do....
c:\users\ethelbert karl\visual studio 2008\projects\coe050\coe050\planesas.cpp(46) : error C2143: syntax error : missing ',' before '.' |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 bool is not accepted by the compiler borland c++.....
what is the header so that i can use the code bool |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 hahaha....
i hope it doesn't have any error now...
thank you mr..... |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 ------ Build started: Project: COE050, Configuration: Debug Win32 ------
Compiling...
new array.cpp
c:\users\ethelbert karl\visual studio 2008\projects\coe050\coe050\new array.cpp(17) : error... |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 i have a borland compiler....
what codes will i change...
using borland it has 15 errors... |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 i am using borland c++ and it doesnt run....
and i tried it also to visual c++ and it did not run...
it has failed... |
Forum: C++ Jun 13th, 2008 |
| Replies: 54 Views: 3,081 what will i write on the **?????
will i write there my array??? |
Forum: C++ Jun 12th, 2008 |
| Replies: 54 Views: 3,081 i dont know how to print array on a matrix....
do i nid to write a function();
or function(int);
here is my new code.....
please identify what is wrong...
#include<iostream.h> |
Forum: C++ Jun 12th, 2008 |
| Replies: 54 Views: 3,081 how can i print it to matrix?????....
i dont know how to print it... |
Forum: C++ Jun 12th, 2008 |
| Replies: 54 Views: 3,081 {
initialize_seat_array(); //what will i write here????
do
{
print_seat_matrix(); // it doesnt accept print...
result =... |
Forum: C++ Jun 12th, 2008 |
| Replies: 54 Views: 3,081 thank you very much jephthah...
i will try it...
and post it to this forum it is running...
thank you very much//.... |
Forum: C++ Jun 11th, 2008 |
| Replies: 10 Views: 734 #include<iostream.h>
#include<conio.h>
#include<iomanip.h>
void userInput();
int main()
{
clrscr();
int x,y;
const int row= 12,seat= 5; |
Forum: C++ Jun 11th, 2008 |
| Replies: 54 Views: 3,081 i have here now my code.....
how can i make the program run.....until all the ' * ' is change to ' X '
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
void userInput();
int... |
Forum: C++ Jun 11th, 2008 |
| Replies: 10 Views: 734 awhere will i put it?????
i had already tried it and it dont do anything....
will i put it after the row and seat number is entered????
im just a begginer hehehe.....
sori for my bad... |
Forum: C++ Jun 11th, 2008 |
| Replies: 10 Views: 734 i am near to finish if i can do that......
for those who can help me....
thhank you...
(Airplane Seating Assignment) Write a program that can be used to assign seats for a commercial... |
Forum: C++ Jun 11th, 2008 |
| Replies: 10 Views: 734 how can i change the ' * ' if a user inputs
his desired seat.... and change it to ' x '..... |
Forum: C++ Jun 11th, 2008 |
| Replies: 54 Views: 3,081 but i had already run the program and it run....
you mean even if i had value for row and seat
i nid to write array[12][5]????? |
Forum: C++ Jun 11th, 2008 |
| Replies: 10 Views: 734 i have here a code.....
can anybody tell me how to:-O change the '*' to 'X' when a user will input his desired seat.....
:(
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
int... |
Forum: C++ Jun 10th, 2008 |
| Replies: 15 Views: 1,146 #include<iostream.h>
#include<conio.h>
int userInput(int);
int main()
{clrscr();
int x,y;
int a;
const int row= 12,seat= 5;
char plane[row][seat];
cout<<"A\tB\tC\tD\tE\tF"<<endl; |
Forum: C++ Jun 10th, 2008 |
| Replies: 54 Views: 3,081 i have a code here....
please help me how can i put a label "row"
#include<iostream.h>
#include<conio.h>
int main()
{clrscr();
int x,y;
int a; |
Forum: C++ Jun 10th, 2008 |
| Replies: 54 Views: 3,081 thank you very much....
will it output juct like this??
month highest temp lowest temp
january 45 32 |
Forum: C++ Jun 10th, 2008 |
| Replies: 15 Views: 1,146 hahaha ok i'm sori....
now i know i little bit about array ...
i'm just a newbie...
i dont know why it is on my syllabus ...
i am taking up electrical engineering and yet i have c++ |