path going to..?
Show me the input n output..
In the main func
while (!x.isfull())
carrying in
while(!instream.eof())
{
if (x.isfull())
break;
// ...
}
In the main func
// try
x.print_reverse(9);
// not data
Have you delete the outstream from main function..
Sure..
void print_reverse(int i)
{
if(i<MAX)
{
ofstream out;
out.open("output.txt");
for(int j=i;j>=0;j--)
{
cout<<st[j];
out<<st[j];
}
out.close();
}
}
void print_reverse(int i)
{
if(i<MAX)
{
for(int j=i;j>=0;j--)
cout<<st[j];
}
}
// what's this
ITEM_atribut getAtribut();
Semicolon is missing..
Example..
class Cmy
{
//...
}; // here
int main()
{
stack x;
int data;
ItemType item;
ifstream instream;
ofstream outstream;
while(!x.isfull())
{
while ( !instream.eof() )
{
instream>> data;
item.Initialize(data);
// here
int temp = item.getvalue();
x.push(temp);
x.print();
}
instream.close();
}
cout<<"--------\n";
// here
x.print_reverse(5/*maybe 5*/);
cin.get();
return 0;
}
Post ItemType.h
Maybe this can help..
// ..
cin.getline(data[i].name,30);
// ...
what's wrong with
x.push(item); and x.print_reverse(); ????
1. Item is ItemType, not int..Get int from ItemType first then Push..
2. x.print_reverse(int) rite!. The arg must int..
I mean..Add this on ItemType.h
int ItemType::getval()
{return value;}
then
outstream<<unsortedList.ReturnLastItem().getval();
std::cout<<static_cast<int>(a[0]); // n next
outstream<<'get last item here';
Because you did not initialize it..Example..
// declare n init
unsigned char a='a';
// display
std::cout<<a;
Is it succesfully compile?..
You guyz talk to much..She just want the codes..So!!...
100% rite!..In this case he use DRAW_H..
Add this on the top
#if !defined DRAW_H
//...
Maybe..It's intention is..
#include<draw.h>//old
#include"draw.h"//new
you should try it..
Then you can call anything you need..But private..Example..
draw *p_draw = new draw;
p_draw->rope;
//...
I assume that draw is not a reference class..So you must declare it first..Example
draw p_draw = new draw;
That's cool..
Are u sure there is no error..
Cause i can't fix it..
Dont forget to use code tag..
Thanks..
Wow that's cool, i'll take it, are u sure there is no error?..
Don't forget to use code tag..
My bad..Sorry..
You opened file that already open
int main(){
//...
rawdata.open("story.txt");
//...
}
binarySearchTree(node *r){
//...
sorted.open("story.txt");
//...
I'm not sure..
char c = 'Y';
while (c == 'Y')
{//...}
Sorry i did not see '
Initialize Continue='Y' first..
choice is char
1 would be 49 decimal..
x += 0 ???
If second coord x = 2,
never touch x2..
Should be..
if(payrate < 10 && hours > 40)
{ // begin if
//-- your code here
} // end if
else
//...Else
Simple example..
Open a files,
while ch = getc(files)
{
ary[i] = ch << 2;
display ary[i]
}
What's a problem?..Detail please..
Check you destructor
Try to insert val at pos 4 without insert val at pos 2..Is it work?..
Use getch() inside a thread..
//...
switch(i)
{
case 11: //old
case 10: //new
//...
}
//...
I don't test it yet :)..Try it..
setfillstyle(SOLID_FILL,level);
// or
fillpoly(level,poly);
There is event named onmouseenter..Make your implements there
1. The limit is 10..Make it 11,12,...,n
2. Avoiding goto..Use break (loop)..Or return..If any func that you want to call..Call it first then break or return..
If you want to sharing your global variables, use 'static' on them..
Example:
static int myArray[2][2];
1. Always define you vars.
2. Array index always begin with 0.
3. I always can't write English better..Sorry
So what's the problems. Declare the method before using them..Example..
// CODE TAG
// [code]
// your code here
// [/code]
void matpro(int,int,int);
void main()
{
// call matpro
matpro(1,2,3);
}
void matpro(int a,int b, int c)
{
// implm. here
}
Remove ';' at mathpro
int mathpro(int,int,int)
{
// math operation
}
struct Event
{
void addEvent();
tm startTime, endTime;
string eventItem;
string eventNotes;
char allDay;
nodePtr *head, *tail; //-- a pointer!, maybe...
};
struct Node
{
Event *eventNode; //-- a pointer!, maybe.
Node *next;
};
typedef Node* nodePtr;
1. DYNAMIC : Nop...must be constant...
2. ICON : try to use Windows API, or embeded it to your resource
OK, we love to see you code...
Sorry for my bad English :)