cikara21 37 Posting Whiz

path going to..?

cikara21 37 Posting Whiz

Show me the input n output..

cikara21 37 Posting Whiz

In the main func

while (!x.isfull())

carrying in

while(!instream.eof())
{
   if (x.isfull())
      break;
   // ...
}
cikara21 37 Posting Whiz

In the main func

// try
   x.print_reverse(9);
   // not data
cikara21 37 Posting Whiz

Have you delete the outstream from main function..

cikara21 37 Posting Whiz

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();
   }
}
cikara21 37 Posting Whiz
void print_reverse(int i)
{
   if(i<MAX)
   {
      for(int j=i;j>=0;j--)
         cout<<st[j];
   }
}
cikara21 37 Posting Whiz
// what's this
ITEM_atribut getAtribut();
cikara21 37 Posting Whiz

Semicolon is missing..
Example..

class Cmy
{
   //...
}; // here
cikara21 37 Posting Whiz
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;
}
cikara21 37 Posting Whiz

Post ItemType.h

cikara21 37 Posting Whiz

Maybe this can help..

// ..
cin.getline(data[i].name,30);
// ...
cikara21 37 Posting Whiz

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..

cikara21 37 Posting Whiz

No problem

cikara21 37 Posting Whiz

I mean..Add this on ItemType.h

int ItemType::getval()
{return value;}

then

outstream<<unsortedList.ReturnLastItem().getval();
cikara21 37 Posting Whiz

X

cikara21 37 Posting Whiz
std::cout<<static_cast<int>(a[0]); // n next
cikara21 37 Posting Whiz
outstream<<'get last item here';
cikara21 37 Posting Whiz

Because you did not initialize it..Example..

// declare n init
unsigned char a='a';
// display
std::cout<<a;
cikara21 37 Posting Whiz

Is it succesfully compile?..

cikara21 37 Posting Whiz

You guyz talk to much..She just want the codes..So!!...

cikara21 37 Posting Whiz

100% rite!..In this case he use DRAW_H..

cikara21 37 Posting Whiz

Add this on the top

#if !defined DRAW_H
//...
cikara21 37 Posting Whiz

Maybe..It's intention is..

#include<draw.h>//old
#include"draw.h"//new

you should try it..

cikara21 37 Posting Whiz

Then you can call anything you need..But private..Example..

draw *p_draw = new draw;
p_draw->rope;
//...
cikara21 37 Posting Whiz

I assume that draw is not a reference class..So you must declare it first..Example

draw p_draw = new draw;
cikara21 37 Posting Whiz

That's cool..
Are u sure there is no error..
Cause i can't fix it..
Dont forget to use code tag..
Thanks..

cikara21 37 Posting Whiz

Wow that's cool, i'll take it, are u sure there is no error?..
Don't forget to use code tag..

mrboolf commented: lol good answer :) +1
cikara21 37 Posting Whiz

My bad..Sorry..

cikara21 37 Posting Whiz

You opened file that already open

int main(){
//...
rawdata.open("story.txt");
//...
}
binarySearchTree(node *r){
//...
sorted.open("story.txt");
//...
cikara21 37 Posting Whiz

I'm not sure..

char c = 'Y';
while (c == 'Y')
{//...}
cikara21 37 Posting Whiz

Sorry i did not see '
Initialize Continue='Y' first..

cikara21 37 Posting Whiz

choice is char
1 would be 49 decimal..

cikara21 37 Posting Whiz

x += 0 ???
If second coord x = 2,
never touch x2..

cikara21 37 Posting Whiz

Should be..

if(payrate < 10 && hours > 40)
{ // begin if
   //-- your code here
} // end if
else
   //...Else
cikara21 37 Posting Whiz

Simple example..

Open a files,
while ch = getc(files)
{
  ary[i] = ch << 2;
  display ary[i]
}
cikara21 37 Posting Whiz

What's a problem?..Detail please..

cikara21 37 Posting Whiz

Check you destructor

cikara21 37 Posting Whiz

Try to insert val at pos 4 without insert val at pos 2..Is it work?..

cikara21 37 Posting Whiz

Use getch() inside a thread..

cikara21 37 Posting Whiz
//...
switch(i)
{
   case 11: //old 
   case 10: //new
   //...
}
//...
cikara21 37 Posting Whiz

I don't test it yet :)..Try it..

setfillstyle(SOLID_FILL,level);
// or
fillpoly(level,poly);
cikara21 37 Posting Whiz

There is event named onmouseenter..Make your implements there

cikara21 37 Posting Whiz

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..

cikara21 37 Posting Whiz

If you want to sharing your global variables, use 'static' on them..
Example:

static int myArray[2][2];
cikara21 37 Posting Whiz

1. Always define you vars.
2. Array index always begin with 0.
3. I always can't write English better..Sorry

cikara21 37 Posting Whiz

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  
}
cikara21 37 Posting Whiz

Remove ';' at mathpro

int mathpro(int,int,int)
{
    // math operation
}
cikara21 37 Posting Whiz
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;
cikara21 37 Posting Whiz

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 :)